then something else is wrong, can you share a project with a unit test reproducing it on github please?
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:58 GMT+02:00 Svetlin Zarev <svetlin.angelov.za...@gmail.com>: > Nope, it behaves the same way - the DataSource type is missing in the > ResourceInfo > > 2016-07-21 13:25 GMT+03:00 Romain Manni-Bucau <rmannibu...@gmail.com>: > > > 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 ? > > > > > >