You have object there, just ask it to print its class, like so:
Something like
objectX.getClass().getName()
Frage
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?
Lösung
You have object there, just ask it to print its class, like so:
Something like
objectX.getClass().getName()