JBoss Community

client lookup EJB method in JBoss AS 7.0,but return **$$$view1

created by Icey Thomas in JNDI and Naming - View the full discussion

Hi,Everyone,

     I have a problem.thank you for your kind attention!

     I create a EJB Local bean with just one  method.I lookup the method in a servet ,then a ClassCastException is threw:

     com.multiable.loginBean.login$$$view1  cannot cast to com.multiable.LoginBean.Login.

    

    With the lookup ,I want it to bu com.multiable.loginBean.login,but the result has something more “$$$view1”.

     Here is my way to do look up:

           login=(Login)InitialContext.doLookup("java:global/testEJB/LoginBean!com.multiable.loginBean.Login");

 

     how can be like this? Does anyBody know something about this?

Reply to this message by going to Community

Start a new discussion in JNDI and Naming at Community