[jboss-user] [JNDI and Naming] - Re: How to add a resource-adapter programatically?

Ramesh Reddy do-not-reply at jboss.com
Thu Jun 27 13:47:48 EDT 2013


Ramesh Reddy [https://community.jboss.org/people/rareddy] created the discussion

"Re: How to add a resource-adapter programatically?"

To view the discussion, visit: https://community.jboss.org/message/825334#825334

--------------------------------------------------------------
*try*

Admin admin = AdminFactory.getInstance().createAdmin("localhost",9999,"admin","admin".toCharArray());
final Properties p = new Properties();
p.setProperty("class-name","org.teiid.resource.adapter.file.FileManagedConnectionFactory");
p.setProperty("ParentDirectory", "../data/");
p.setProperty("AllowParentPaths", "true");
admin.createDataSource("java:/marketdata-file","teiid-connector-file.rar",p);




*
*
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/825334#825334]

Start a new discussion in JNDI and Naming at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2083]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20130627/78dc47d5/attachment.html 


More information about the jboss-user mailing list