문제

Any idea what class is "objectX"? Please see below code snippet.

<jdbc-ee:mssql-data-source name="sqlServerDataSource" user="yyy" 
         password="xxx" url="jdbc:sqlserver://xxxyyy.com;databaseName=testDB" 
         transactionIsolation="UNSPECIFIED" doc:name="MS SQL Data Source"/>

.
.
.

<scripting:component doc:name="Groovy">
            <scripting:script engine="Groovy"><![CDATA[

objectX = muleContext.getRegistry().lookupObject("sqlServerDataSource");
return objectX.getUrl();

]]></scripting:script>

The result of this is:

jdbc:sqlserver://xxxyyy.com;databaseName=testDB

After going through the entire Mule API doc, it seems to be Class AbstractDataSourceFactoryBean ==> refer to Mule API. Am I correct?

도움이 되었습니까?

해결책

You have object there, just ask it to print its class, like so:

Something like

objectX.getClass().getName()
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top