[jboss-user] [EJB 3.0] - Re: How can i access ejb3.0 from backing bean in jboss 4.0.5

waynebaylor do-not-reply at jboss.com
Thu May 31 16:55:34 EDT 2007


With JBoss 4.0.5 you have to use a JNDI lookup from the web layer.

Suppose you have:

  | @Local
  | public interface MyLocalIfc
  | {
  |    ...
  | }
  | 

and


  | @Stateless
  | public class MyLocalBean implements MyLocalIfc
  | {
  |     ...
  | }
  | 

Then try:

  | MyLocalIfc bean = (new InitialContext()).lookup("myEAR/MyLocalBean/local");
  | 

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

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



More information about the jboss-user mailing list