resource.setType("DataSource"); should be fine I think
Romain Manni-Bucau @rmannibucau <https://twitter.com/rmannibucau> | Blog <https://blog-rmannibucau.rhcloud.com> | Old Wordpress Blog <http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> | LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber <http://www.tomitribe.com> | JavaEE Factory <https://javaeefactory-rmannibucau.rhcloud.com> 2016-07-21 12:20 GMT+02:00 Svetlin Zarev <svetlin.angelov.za...@gmail.com>: > >Ok then just set the type of the resource on the openejb resource you > >created, should be enough > > Actually I;m already doing that, but the resulting ResourceInfo does not > preserve the type. Or maybe I just misunderstood you. > What I'm doing is: > > Resource resource = new Resource(id); > resource.setType("javax.sql.DataSource"); > > Where Resource is org.apache.openejb.config.sys.Resource > Is that what you mean ? >