voyent
AHS JBOSS 4.2.2.GA Clustering  XML
Forum Index -> Async HTTP Server
Author Message
welchie

Joined: 06/Apr/2007 00:00:00
Messages: 3
Offline


I am having trouble setting up a load balanced environment for ice faces.

I have the following set up:

Apache 2.2.8 Server

2 servers with Jboss 4.2.2.GA installed - app1 and app2. (The Jboss servers are configured to RMI port 2099).

Icefaces 1.7.0

Myfaces 1.1.5

I think I have the Appache configuration correct based on the Icefaces Developer Guide.

It is when I try to start the Jboss server I get into problems.

The first Jboss server starts up ok and the AHS servlet starts and our icefaces appliaction starts up and connects to the JMS service.

When I start up the second Jboss server I see that both Jboss servers talk to each other but when the Icefaces application attempts to connect to the JMS service "localhost:2099" then I get the following exception:

17:36:30,801 INFO [JMSAdapter] JMS Environment:
java.naming.provider.url = localhost:2099
java.naming.factory.initial = org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs = org.jboss.naming:org.jnp.interfaces

17:36:30,804 FATAL [MessagingContextEventPublisher]

Failed to subscribe to topic: icefacesContextEventTopic
Exception message: javax.naming.NameNotFoundException: ConnectionFactory not bound
Exception cause: javax.naming.NameNotFoundException: ConnectionFactory not bound


Is there something I have to do to allow both Jboss servers to have the JMS service running concurrently?

Thanks

Chris.
jack.van.ooststroom


Joined: 26/Oct/2004 00:00:00
Messages: 223
Offline


Hi Chris,

Are you using JBoss' HA (High Availability) JMS? JBoss by default can be started in three ways: all, default and minimal. all in this case is pre-configured to use HA JMS. Are you using this or a derivative of this?

Regards,

Jack van Ooststroom
Senior Developer
ICEsoft Technologies, Inc.
[Email]
welchie

Joined: 06/Apr/2007 00:00:00
Messages: 3
Offline


Hi I have got further with my set up.

I am running Jboss HA (-c all command line option).

After reading further into the Jboss documentation I found that by default my Jboss servers were clustered and that when the second application server was started the JMS topics were unbound from the first server and bound to the second server.

Configuring Jboss to use different multicast ports for each each server solved this.

I now have a load balanced ICEFaces application.

Chris.
jack.van.ooststroom


Joined: 26/Oct/2004 00:00:00
Messages: 223
Offline


Hello Chris,

That's good to hear! Thanks for posting this.

Regards,

Jack van Ooststroom
Senior Developer
ICEsoft Technologies, Inc.
[Email]
 
Forum Index -> Async HTTP Server
Go to:   
Powered by JForum 2.1.7ice © JForum Team