-
1. Re: Clustering Jboss and deploying SLSB's
marlig Jul 20, 2004 4:05 AM (in response to chirock)Make sure you don't create the remote interface before each call. Instead create it once, and use it for all subsequent calls.
Cheers
Martin -
2. Re: Clustering Jboss and deploying SLSB's
chirock Jul 20, 2004 1:40 PM (in response to chirock)That worked! Thanks for the quick reply...
-
3. Re: Clustering Jboss and deploying SLSB's
chirock Jul 21, 2004 1:20 PM (in response to chirock)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?
-
4. Re: Clustering Jboss and deploying SLSB's
marlig Jul 21, 2004 1:44 PM (in response to chirock)I can't tell you about a preferred way, but I don't see why it could become a bottleneck.
Regards -
5. Re: Clustering Jboss and deploying SLSB's
pytaghoras Jul 14, 2005 3:32 AM (in response to chirock)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:
<?xml version="1.0"?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
"http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<!-- moet gewijzigd worden -->
<ejb-jar>
<enterprise-beans>
<display-name>test.ServicesGenerator</display-name>
<ejb-name>test_ServicesGenerator</ejb-name>
< home >com.test.service.generator.GeneratorHome</ home >
< remote >com.test.service.generator.GeneratorRemote< /remote >
<ejb-class>com.test.service.generator.GeneratorEJB</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<security-identity>
<use-caller-identity></use-caller-identity>
</security-identity>
</enterprise-beans>
</ejb-jar>
my jboss.xml:
<?xml version="1.0"?>
<enterprise-beans>
<ejb-name>test_ServicesGenerator</ejb-name>
<jndi-name>test/ServicesGenerator</jndi-name>
<configuration-name>Clustered Stateless SessionBean</configuration-name>
True
</enterprise-beans>
Regards!