-
1. Re: EJB3RC3, @MessageDriven, and HAJMS
bill.burke Feb 25, 2006 4:16 PM (in response to jjklappenbach)HAJMS does not work with RC3. I had to fix a bug within it for RC5. it was not handling disconnects very well. Sorry....The Wiki has a bunch of information for migrating, or you can just answer questions here.
-
2. Re: EJB3RC3, @MessageDriven, and HAJMS
jjklappenbach Mar 1, 2006 12:53 PM (in response to jjklappenbach)OK, ported code. I used the installer to throw 4.0.4RC1:ejb-cluster on two machines.
Q: Does this server config support HA-JMS? I had assumed HA-Singleton was necessary for the deployment, but I don't see anything in ejb-cluster that would appear to support it.
I suppose I should specify what I'm going after here:
I have a cluster of nodes, each with a pool of MDBs. Each MDB is pointed to a queue. I need HA on the queue, such that if I lose any node, the queue is still available, and I don't lose data. From what I understand, a JBoss cluster will elect a single node to be the "Master", upon which it will start up a JMS server available via HA-JNDI. The MDB on each node will attach to that central queue, and all is fine. Rip out the Master node, and each remaining node will elect a new one to take its place. After this, each MDB will query HA-JNDI for a new queue, and off the system goes again. Of course, central to this is establishing a central datasource for JMS so that the new JMS instance can pick up where the old one left off.
Can this be done with 4.0.4, and if so, what profile do I need to achieve this? Do I need to download the zipped version and patch it with EJB3RC5?
I've been dealing with this issue for several days, and have even coded a work around using a thread-pool and database for simple load balancing. The MDB approach is much more desirable...
-jjk -
3. Re: EJB3RC3, @MessageDriven, and HAJMS
starksm64 Mar 1, 2006 12:58 PM (in response to jjklappenbach)No, the installer does not have an ha-jms configuration. The all configuration from the zip distribution does.
-
4. Re: EJB3RC3, @MessageDriven, and HAJMS
bill.burke Mar 1, 2006 1:11 PM (in response to jjklappenbach)I swear there is an ejb3-clustered option.
-
5. Re: EJB3RC3, @MessageDriven, and HAJMS
jjklappenbach Mar 1, 2006 1:21 PM (in response to jjklappenbach)A little more info might help:
Can I use @Consumer? Or do I need to create messages on my own using an explicit HA-JNDI lookup in order to write out to the remote queue, and use @MessageDriven? Or is the container smart enough to invoke an HA-JNDI lookup?
-jjk -
7. Re: EJB3RC3, @MessageDriven, and HAJMS
jjklappenbach Mar 1, 2006 1:30 PM (in response to jjklappenbach)Yes, Bill, there is an ejb-clustered option in the installer. That option, however, does not appear to include HA-Singleton (at least it doesn't include the sub-deployment directory).
Can HA-Singleton be achieved w/o?