users@glassfish.java.net

jndi lookup of local session bean

From: <glassfish_at_javadesktop.org>
Date: Wed, 03 Oct 2007 00:35:12 PDT

I want to look up a local stateless session bean inside my container by another stateless session bean...



basically I have one interface (stateless session bean) that is implemented by 3 otheres
so OpeartorResolver interface which is alocal stateless session bean is implemented by AuResolver
USResolver CAResolver now I need to lookup AuResolver dynamically ...so basically do a context.lookup of AUResolver any idea how I can do that
so
package com.bla.bla.bean;
public class WhichResolver implements OperatorResolver{
@Resource private javax.ejb.SessionContext ejbContext;
public String returnStuff(String args)
{
Object obj=ejbContext.lookup("com.bla.bla.bean.AUResolver");

}

Cheers
PRiya
[Message sent by forum member 'priyasubu' (priyasubu)]

http://forums.java.net/jive/thread.jspa?messageID=238198