[Clustering/JBoss] - 2 instances/machine; redhat init script
by alpheratz-jb
I have looked at $JBOSS_HOME/bin/jboss_init_redhat.sh.
This seems inadequate if one wants to have 2 JBoss instances/machine...
It can easily be copied/hacked to run $JBOSS_HOME/bin/run.sh -c config for each separate instance.
BUT I can't see how the code for stop/status can relate to WHICH instance to stop/report status on.
Is this a bug/need for enhancement?
Has there anyone out there who has solved this and is willing to contribute their solution?
I have a REALLY BAD/hacky solution (can't post now...code is at work, I'm at home) I use twiddle.sh/probe.sh.
I probably could use something like kill `ps axw | grep config | cut ...` for 'stop' but not for 'status'...
This applies to 4.0.5GA and 4.2...., as far as I can see.
Thoughts/comments/suggestions gratefully accepted.
Cheers,
Alph
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033516#4033516
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033516
17 years, 1 month
[JBoss Seam] - Entity Property Not Up-To-Date
by xtia004
It looks like a hibernate related topic, but I encountered it when developing using Seam and easy to describe with it. So I'd like to put it on here first.
I have two SFSB, say A and B, both have an extended EntityManager em. A retrieves a list of entity Invoice. B retrieve a list of entity InvoiceMail. InvoiceMail has a property invoice that can navigate to Invoice by many-to-one.
First a list of invoice is retrieved. If any invoices are in "To Post" status, then the list of InvoiceMail is retrieved. There is a button say "Already Sent" beside an InvoiceMail, for any invoices have already been posted, click the button and navigate to the invoice and update its status to "Sent" with a method at SFSB B.
The problem is that when the query to retrieve Invoice at SFSB A is executed again, the invoices are still in "To Post" status. Now we temporary solve it by using em.clear() at SFSB A before executing the query. It seems that the Invoices were cached but not updated accordingly within the same session. We hope the invoices either cached and updated to the latest status or not cached at all. How to work around this? We are on jboss-4.0.5.GA and jboss-sean-1.1.0.GA.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033514#4033514
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033514
17 years, 1 month