JBoss Community

Re: How to add a resource-adapter programatically?

created by Ramesh Reddy in JNDI and Naming - View the full discussion

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

Start a new discussion in JNDI and Naming at Community