[jboss-user] [JBoss Seam] - Re: + JBoss EJB 3.0 and JSF (MyFaces) +

sisepago do-not-reply at jboss.com
Mon Oct 30 20:06:47 EST 2006


Thanks Gavin,

this means in JBossas 4, JSF Managed Beans can only use JNDI ENC to lookup the session's interface components:

+ In JSF Managed Bean (in WAR File)
  |   InitialContext jndiCtx = new InitialContext();
  |   ServiceInterface sI = (ServiceInterface)jndiCtx.lookup(SessionBean-Klasse-Name/remote);

+ in JSF Managed Bean (in EAR File)
  |   InitialContext jndiCtx = new InitialContext();
  |   ServiceInterface sI = (ServiceInterface)jndiCtx.lookup(EAR-File-Name/SessionBean-Klasse-Name/remote);
  | 

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

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



More information about the jboss-user mailing list