[jboss-user] [JBoss Seam] - Using an EJB3 in seam

german.castro do-not-reply at jboss.com
Thu Nov 8 11:06:32 EST 2007


I have 3 projects in RH studio:
- A seam project
- An ejb project
- ear project that contains the others.

I need call an ejb from seam project but when i do the jndi lookup it returns a null pointer.

I use:

@EJB TheBeanLocal bean

and 

bean = (TheBeanLocal)ctx.lookup("project/TheBean/local");

The lookup don't fails, but in both cases 'bean' is null.

What could be wrong?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102968#4102968

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102968



More information about the jboss-user mailing list