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&...]