-
1. Re: Load Balancing in Jboss 5.1 , not able to test it !
steppi Jun 17, 2009 7:27 AM (in response to leonets)Hello...
Did you work through a guide or documentation?
I also try to set up JBoss + the booking example of the seam-framework... up to this point everything is ok.
My next step was to start the Jboss with -c -b x.x.x.x Option.
The both nodes form a cluster and the blank Node got the booking-app from the prepared app.
My Problem is the next step... create a failover.
In my cluster every Node has its own database and own booking-application (reachable by the ip-address of each node)
What I have to do create redundancy/ failover... can you help me Step-by-Step ? (what configs I have to edit and what I have to do?)
Please its urgent!
Sorry that I could help you about your question. -
2. Re: Load Balancing in Jboss 5.1 , not able to test it !
leonets Jun 17, 2009 8:03 AM (in response to leonets)"steppi" wrote:
Hello...
Did you work through a guide or documentation?
have a look at
JBoss Application Server 5
2
Clustering Guide
Authors
Brian Stansberry
Galder Zamarreno
Publication date: Nov 2008
I used that for my configurations -
3. Re: Load Balancing in Jboss 5.1 , not able to test it !
steppi Jun 17, 2009 8:15 AM (in response to leonets)"Leonets" wrote:
"steppi" wrote:
Hello...
Did you work through a guide or documentation?
have a look at
JBoss Application Server 5
2
Clustering Guide
Authors
Brian Stansberry
Galder Zamarreno
Publication date: Nov 2008
I used that for my configurations
OK :(
I used this guide...
I tryed to use this guide.
I noticed that many of the information are outdated.
Some of the inforamtion doesn't fit on JBoss AS 5.x
The next Problem is the mass of information, the english.
A focused step-by-step Guide would help me much more. -
4. Re: Load Balancing in Jboss 5.1 , not able to test it !
brian.stansberry Jun 19, 2009 3:16 PM (in response to leonets)Leonets: is your webapp continuing to use the same connection to the JMS server? Or are you closing connections and creating new ones?
Per JBoss Messaging docs[1] connection creation is load balanced, but once a connection is created it will stick to one server (unless failover happens).
[1] http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.4.GA/html/configuration.html#conf.connectionfactory.attributes.supportsloadbalancing -
5. Re: Load Balancing in Jboss 5.1 , not able to test it !
leonets Jun 25, 2009 11:18 AM (in response to leonets)"bstansberry@jboss.com" wrote:
Leonets: is your webapp continuing to use the same connection to the JMS server? Or are you closing connections and creating new ones?
Per JBoss Messaging docs[1] connection creation is load balanced, but once a connection is created it will stick to one server (unless failover happens).
[1] http://www.jboss.org/file-access/default/members/jbossmessaging/freezone/docs/userguide-1.4.4.GA/html/configuration.html#conf.connectionfactory.attributes.supportsloadbalancing
Hi brian, I am using this code inside a servletConnectionFactory cf = (QueueConnectionFactory)ServiceLocator.getService("JmsConnectionFactory"); Connection conn = cf.createConnection(); session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE); Message textMessage = Session.createTextMessage(messaggioXml); ServiceLocator.getService("JmsPosizioneDebitoriaInput"); producer = session.createProducer(dest); producer.send(textMessage);
I don't have any conn.close() really !!
Anyway Connection conn is an istance variable in the doGet servlet method, so I don't see anything that could be a sort of 'jms connection pool'
I'll add this conn.close() and try again -
6. Re: Load Balancing in Jboss 5.1 , not able to test it !
brian.stansberry Jun 25, 2009 12:44 PM (in response to leonets)Anyway Connection conn is an istance variable in the doGet servlet method
You mean a local variable?
If so, yeah, you're not caching it, so new connection creation should be load balanced. If closing the connection doesn't resolve your problem I suggest you post on the JBoss Messaging user forums. The folks who know the deep details of how the connection factories work are more likely to see your issue there. -
7. Re: Load Balancing in Jboss 5.1 , not able to test it !
vids Sep 9, 2009 10:16 AM (in response to leonets)Hey...any luck with this? Were u able to get the load balanced queues running?
-
8. Re: Load Balancing in Jboss 5.1 , not able to test it !
vids Sep 9, 2009 12:15 PM (in response to leonets)I got it working by creating the conn every time , but is there any way to load balance the queues without having to create a new conn every time ???
-
9. Re: Load Balancing in Jboss 5.1 , not able to test it !
brian.stansberry Sep 24, 2009 4:46 PM (in response to leonets)I suggest you ask on the JBoss Messaging user forum. The docs referenced above indicate that a connection will stick to one server unless a failover event occurs. If there's some mechanism to change that (from the docs, it sounds unlikely) the folks on the messaging forum are the ones to tell you what it is.