[Clustering/JBoss] - Configuration for redundant ethernets
by alpheratz-jb
I have two multihomed boxes.
Each box is running two instances of JBoss 4.0.5GA, configured using
the ServiceBindingManager. This all works very nicely as I have it at the moment.
Now, Each box has 4 Ethernet NICs.
I intend to use two NICs for HTTP service traffic and two for intra-cluster housekeeping.
The question is: how do I configure this?
* For the configuration of the service interfaces...
I am currently allowing each instance to bind to 0.0.0.0 -- ie all interfaces.
This is OK but it would be nice to be able to say "bind to ONLY interfaces A and B"
instead of "bind to all interfaces."
Is there a way to do this?
* For the configuration of the intra-cluster housekeepting traffic...
I am looking at ...deploy/cluster-service.xml and can see that I can establish
the <UDP bind_addr attrribute. Presumably, this tells the JBoss instance to
listen on this address for intra-cluster housekeeping 'chatter' and of course,
the address used will correspond to a given interface.
Can I configure a list of addresses in bind_addr? Ie:
| <UDP bind_addr="192.168.10.1,192.168.11.1" ...
|
This would enable me to loose an individual link but not loose the cluster.
I have had a look through the Wiki and this forum, but I can't see anybody dealing
with redundancy, as I have to.
Thoughts/suggestions gratefully accepted.
Cheers
Alph
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034379#4034379
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034379
19 years
[Messaging, JMS & JBossMQ] - What tools are available for debugging JMS in JBoss?
by tonylmai
Hello all,
I have a problem in my client application in receiving messages published by a SessionBean. I am using JBoss MQ came with JBoss 4.0.5GA.
None of the messages published by my SessionBean (to a queue) would end up in my client's application. My SessionBean had no problem looking up the destination using the JNDI name and created a MessageProducer for the channel. My client had no problem looking up the channel and created a MessageConsumer for the queue.
To be sure it was not my client, I'd created another test app (MessageProducer) to publish messages to this queue. These messages ended up in my client's application without any problem. It had got to be my SessionBean publishing to the wrong channel. The funny thing is, the same name was used and no exception was thrown. No other queue were declared in the *-destination-service.xml.
How would one go about debugging this kind of problem in JBoss? jmx-console does not seem to provide message count for a queue. What other tools are available to help us?
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034370#4034370
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034370
19 years
[EJB 3.0] - Re: Need some help with mapping
by MikeDougherty
Yeah, you're right it is a ManyToOne relationship. I was thinking a Store has one (and only one) "type" Type associated with it at any given time. Completely spaced looking at it from the Type's perspective.
I think using a @ManyToOne annotation will give me what I need. After playing around with @PostLoad and @PrePersist in another part of the app. I think I can use this to ensure that the right Type's are being set in the right fields.
BTW, yes, I do agree having a "table_name" column is a bit much, and in the case of this app not used at all (except as part of the PK). In fact, it would have likely been quicker and easier to just use a enum. But alas the tables are what they are, and I do what I am told (most of the time anyway).
Thanks again for letting me work through this with you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034369#4034369
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4034369
19 years