Hi You can put a lib in tomee or the ear and use resources.xml in meta-inf of the ear for that i think. Le 9 août 2015 19:14, "dorwin" <[email protected]> a écrit :
> Hello, > > I'm working with some old j2ee code that I can't change to javaee. The code > wants to load a bunch of mbeans and use jndi for service location. > > When I try to put mbeans into java:/global and get them out, I can't see > them. As soon as I create a new InitialContext, it's as if everything has > been wiped. I've tried the default InitialContext(), and I've tried using > the Remote factory. > > To complicate matters, I'm using an ear. I would like to initialize the > JNDI > tree as part of the application startup and retrieve items as singletons > from each module. > > If I put something into context.xml it'll try and create everything for all > applications. Is there somewhere I can specify an objectfactory for the ear > and not in a module? > > > > > -- > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/JNDI-woes-tp4675799.html > Sent from the TomEE Users mailing list archive at Nabble.com. >
