I created an EJB3 test application running on the GlassFish Opensource Edition.
I connect to GlassFish from the same host (both the client and the application server are running on "localhost").
I retrieve the remote (stateful) object using InitialContext.lookup (), and then I interact with it like a regular Java object.
The only problem is that this single call takes 15 seconds :
FooRemoteService foors = (FooRemoteService)
context.lookup("java:global/FooApp/FooService!test.FooRemoteService");
I understand that there must be some kind of “handshake” and “initialization”, but this is so darn slower.
The rest of the interaction (several remote calls with many exchanged serial objects) takes only about 0.1 seconds!
How can I find out the reason why it took so long?
source
share