I have the following interface and bean
userProfile.java //interface
userProfileBean.java //implementation
and i do the following from a servlet
private userProfile UserProfile;
Context context = new InitialContext();
UserProfile = (userProfile)context.lookup("userProfileBean/remote");
It works
We have an EAR deployed on AS 4.2.1
In the webapp (war-archive), we need to access an SLSB (EJB3).
MyBeanLocal bean = (MyBeanLocal) context.lookup("java:comp/env/ejb");
But this context is not existing! How comes?
We can access the Bean-proxy using JNDI-path "myapp/MyBean/local", but this
obje
Hello,
I have a problem with injection of WebServiceContext.
| @Resource()
| WebServiceContext wsCtx;
|
| MessageContext context = wsCtx.getMessageContext();
| Map attachments = (Map)
context.get(MessageContext.INBOUND_MESSAGE_ATTACHMENTS) ;
|
wsCtx is always null. I'm using
Hello. I have a bean called ListingManagerBean
@Stateless(name="ListingManager")
In order to get the context name in a servlet I always have to define it as:
InitialContext ic = new InitialContext();
ListingManager lmb = (ListingManager) ic.lookup( "proj/ListingManager/local" );
"proj" is the