[jboss-user] [EJB 3.0] - Context "java:comp/env/ejb" empty
axismundi
do-not-reply at jboss.com
Wed Oct 10 07:33:03 EDT 2007
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 object is not type-compatible with the local interface (MyBeanLocal).
Any hint why "java:comp/env/ejb" is not existing, and how to obtain the type-compatile object?
Marc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4093431#4093431
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4093431
More information about the jboss-user
mailing list