Forwarding to users_at_glassfish.dev.java.net.
Jeff, have you searched the users_at_glasfish archive[1]? There are a
number of emails related to clustering that may help you.
Paul
[1]
https://glassfish.dev.java.net/servlets/SearchList?listName=users
-------- Original Message --------
Subject: To cluster or not to cluster for management purposes
Date: Thu, 23 Oct 2008 12:49:05 -0400
From: John Stalker <jrs.developer_at_gmail.com>
To: users-owner_at_glassfish.dev.java.net
References: <3a093ef80810230916l703cf756k9115e5dc111a2b56_at_mail.gmail.com>
Hello,
I am using v2u2 to set up a management only cluster, meaning I'm not
trying to load-balance or have HA enabled for any of the services (web,
ejb, jms), just the ability to deploy an EAR to a single location and
push to a bunch of server instances, as well as having the ability to
monitor all the instances from a single place...at least I think I need
a cluster.
I have a DAS set up and several node agents (one per physical host) all
in the same domain, I've also set up a single server instance per node
agent that reference the same server configuration.
In this configuration, I have set all the Availability Services enabled
to false (Availability Service, Web Container Availability, EJB
Container Availability, and JMS Availability). I have also configured
the Java Message Service type to LOCAL. Also, I have left the
default_JMS_host as is and have not added any other hosts to the list.
As far as JMS resources go, I have created a single ConnectionFactory
and a single Queue both set to target the cluster.
Here's where I get in trouble.
The cluster (and all server instances) start up just fine, except that I
appear to be getting MQ clustering for free, even though I don't want
it. I'm trying to have a single MQ per server instance without
clustering. Thus, I'm trying to have messages sent to an MQ instance
processed via MDB by only the co-located server instance. As it stands,
I send a message to a queue on one instance and it's processed by the
MDB of one of the other server instances.
Looking at this:
http://docs.sun.com/app/docs/doc/819-3679/abdbk?a=view
WRT the LOCAL Java Message Service setting, it mentions that I could
"set the type to LOCAL and give each Application Server instance a
different default JMS host" but I'm not sure how to accomplish that
given that the server configuration is shared across all the instances
in the cluster.
Hopefully that is enough information.
Thanks so much for any input,
John