A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Refactoring for Software Design Smells: Managing Technical Debt
this week in the
OO, Patterns, UML and Refactoring
EJB and other Java EE Technologies
Inject using @EJB or to do Lookup eachtime in Servlet Filter
Joined: Sep 16, 2006
Sep 24, 2012 22:50:12
I want to inject the
(Local) into the
Filter and the EAR is deployed on Weblogic 11g.
My question is:
Shall the @EJB Annotation will work on Weblogic 11g or it will be ignored?
I have to do look up as below and mention the references in web.xml and weblogic xml file:
Hashtable env = new Hashtable(); env.put( Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory" ); Context ctx = new InitialContext( env ); ctx.lookup( "myejb" );
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Inject using @EJB or to do Lookup eachtime in Servlet Filter
configuring service provider for jndi lookup
New to EJB
Server Side JAAS Question
clearing the ejb cache in Websphere 7 ??????
Server Side JAAS Questions
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015