JBoss Community

Problem with NotEligibleForDirectInvocationException

reply from jaikiran pai in EJB 3.0 - View the full discussion

Which exact version of JBoss AS is this? And since this is EJB3, you don't have to do PortableRemoteObject.narrow:

 

 

 Object ref1 = jndiContext.lookup(className);
                T session =  (T) new PortableRemoteObject().narrow( ref1, classOfT);
                return session;
 
 
 
 

 

 

Change that to directly return the object that was looked up. Also please post the relevant EJB3 code/configs.

Reply to this message by going to Community

Start a new discussion in EJB 3.0 at Community