users@glassfish.java.net

ejb: cant call any method from class containing timer after using endpoints

From: <glassfish_at_javadesktop.org>
Date: Wed, 04 Feb 2009 02:54:56 PST

Hi again!

I have a stateless class User and there is timer in it.When i want to run ejb client calling any method from this class without using endpoints everything is ok.

But i need to use load balancing and when i set:
-Dcom.sun.appserv.iiop.endpoints=ip1:port1,ip2:port2

i get this errors:

javax.ejb.EJBException: nested exception is: java.rmi.ServerException: RemoteException occurred in server thread; nested exception is:
        java.rmi.RemoteException: nested exception is: javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB; nested exception is:
        javax.ejb.EJBException: nested exception is: javax.ejb.CreateException: Could not create stateless EJB
        at pl.karolik.michal.interfejsy._UserRemote_Wrapper.getIpUzytkownika(pl/karolik/michal/interfejsy/_UserRemote_Wrapper.java)
        at karolik.TestClient.runTest(TestClient.java:34)
        at karolik.TestClient.main(TestClient.java:42)


Anything is ok when i run method from other class which doesnt contain timer so i guess there is problem.. What can I do with it?
[Message sent by forum member 'freeq1986' (freeq1986)]

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