[jboss-user] [EJB/JBoss] - problem with local interface lookup

nidhidhamija do-not-reply at jboss.com
Thu Jul 16 06:18:04 EDT 2009

Hi All
  I am calling a stateful session bean from my  action servlet. when i tried to lookup the bean with remote interface .It is working fine .But when i try to lookup with local interface .It is giving me exception Ejb not bound. I
  | try {
  | 				javax.naming.InitialContext initialContext = new javax.naming.InitialContext();
  | 				tr.TrLocalHome home =(TrLocalHome)initialContext.lookup("java:comp/env/ejb/TrLocalHome");
  | 				trNew = home.create();
  | 			} catch (NamingException e1) {
  | 				e1.printStackTrace();
  | 			} catch (CreateException e1) {
  | 				e1.printStackTrace();
  | 			}

Above is my code .I am using both  web part and ejb part in same project .Please tell me where i am getting wrong .Thanx in advance

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

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

More information about the jboss-user mailing list