Hi,

I need to get an instance of DataSource object. While going through
the JDBCPersistenceManager
class<http://svn.wso2.org/repos/wso2/carbon/platform/branches/turing/components/identity/org.wso2.carbon.identity.core/4.2.3/src/main/java/org/wso2/carbon/identity/core/persistence/JDBCPersistenceManager.java>in
org.wso2.carbon.identity.core/4.2.3 module I have found following code
block. Can I use this way to access the DataSource object?

                String dataSourceName = dataSourceNameElem.getText();
                Context ctx = new InitialContext();
                dataSource = (DataSource) ctx.lookup(dataSourceName);


Thanks,


Best Regards,

Lakshitha Harshan
Software Engineer
Mobile: *+94724423048*
Email: [email protected]
Blog : http://harshanliyanage.blogspot.com/
*WSO2, Inc. :** wso2.com <http://wso2.com/>*
lean.enterprise.middleware.
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to