[jboss-user] [EJB 3.0] - Problem with NotEligibleForDirectInvocationException

jaikiran pai do-not-reply at jboss.com
Wed Jul 21 13:27:32 EDT 2010


jaikiran pai [http://community.jboss.org/people/jaikiran] replied to the discussion

"Problem with NotEligibleForDirectInvocationException"

To view the discussion, visit: http://community.jboss.org/message/553796#553796

--------------------------------------------------------------
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
[http://community.jboss.org/message/553796#553796]

Start a new discussion in EJB 3.0 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2029]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20100721/f9ab8540/attachment.html 


More information about the jboss-user mailing list