[jboss-user] [EJB 3.0] - Context lookup

2007-11-12 Thread rotten_ritz
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

[jboss-user] [EJB 3.0] - Context "java:comp/env/ejb" empty

2007-10-10 Thread axismundi
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

[jboss-user] [EJB 3.0] - context

2007-06-25 Thread vege
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

[jboss-user] [EJB 3.0] - Context Lookup

2006-12-18 Thread aslocal
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