Author |
Message
|
sudeepm |
Posted: Fri Jul 09, 2010 1:42 am Post subject: Access Java variables across Execution group |
|
|
Acolyte
Joined: 31 Jan 2008 Posts: 57
|
Is there any variable exist that can be accessed across execution group.
I know that each Execution group has its own JVM.Is there any way to access variables across JVM |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Jul 09, 2010 1:47 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Is this by any chance related to
http://www.mqseries.net/phpBB2/viewtopic.php?t=54339
If so, please do not double post.
Your questions have been asked before in this forum. A simple search on "Broker Java Share" would have given you
http://www.mqseries.net/phpBB/viewtopic.php?t=38354
Did you do this? It really does help to know what efforts you have made to solve the problem for yourself. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
sudeepm |
Posted: Fri Jul 09, 2010 2:11 am Post subject: |
|
|
Acolyte
Joined: 31 Jan 2008 Posts: 57
|
Acutally I have two req
1) Accessing variable from different flows but within same execution group
2)I also have another requirement to access database cache across JVM(Execution group).I have gone thru various post from this forum and found that there is Cache node.I cannot use Cache node because It dosnot have IBM support.
So i really want to know if there any way in java to access a variable across JVM |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jul 09, 2010 2:29 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
So it's not okay for you to use category 2 support pacs that are well and thoroughly tested by the community, because they aren't officially supported by IBM...
But it's just fine for you to use your own code that only you support...
interesting.
As to how to do this: what happens when you try it? |
|
Back to top |
|
 |
sudeepm |
Posted: Fri Jul 09, 2010 2:41 am Post subject: |
|
|
Acolyte
Joined: 31 Jan 2008 Posts: 57
|
We had proposed Cache node to client but they are relectuant to use.
Thats why I am looking for some other solution. |
|
Back to top |
|
 |
mqjeff |
Posted: Fri Jul 09, 2010 2:43 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
sudeepm wrote: |
We had proposed Cache node to client but they are relectuant to use.
Thats why I am looking for some other solution. |
Yes, I understand that.
What have you tried? What happens? |
|
Back to top |
|
 |
sudeepm |
Posted: Fri Jul 09, 2010 2:46 am Post subject: |
|
|
Acolyte
Joined: 31 Jan 2008 Posts: 57
|
right now I have tried only static variable and I am able to use them across flows with in same execution group.
Now I will try to access them across JVM, which I doubt will work.. |
|
Back to top |
|
 |
mqmatt |
Posted: Fri Jul 09, 2010 2:54 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
Conceptually, I'm not sure this is a good idea. The whole point of execution groups is that they provide isolation from each other. |
|
Back to top |
|
 |
Gaya3 |
Posted: Fri Jul 09, 2010 5:14 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
mqmatt wrote: |
Conceptually, I'm not sure this is a good idea. The whole point of execution groups is that they provide isolation from each other. |
i agreee...the whole concept is to make loosly coupled system....
why cant he deploy the required flows in to the same execution group itself. _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
fjb_saper |
Posted: Fri Jul 09, 2010 11:50 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
sudeepm wrote: |
So i really want to know if there any way in java to access a variable across JVM |
This is really Java 101 and has nothing to do with the broker.
Look up the concepts of RMI in a good java tutorial...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|