Make sure you don't create the remote interface before each call. Instead create it once, and use it for all subsequent calls.
That worked! Thanks for the quick reply...
things work, but now I have another question. In order to avoid re-creating the remote, I made it a static member of my calling class. But could doing so pose a threading bottleneck when we see an increase in load? Is there a preferred way of doing this than what I have done?
I can't tell you about a preferred way, but I don't see why it could become a bottleneck.
I have the some question: how do i have to make sure that i am using Round robin with my clustered SLSB's? Sometimes i see that one jboss server is busy with handeling the requests while the other jboss server is doing nothing. What do i wrong?
Here is my ejb-jar:
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
<!-- moet gewijzigd worden -->
< home >com.test.service.generator.GeneratorHome</ home >
< remote >com.test.service.generator.GeneratorRemote< /remote >
<configuration-name>Clustered Stateless SessionBean</configuration-name>