Author |
Message
|
kevin.shen |
Posted: Tue Sep 18, 2007 7:51 am Post subject: Initializing Message Broker |
|
|
Novice
Joined: 05 Sep 2007 Posts: 18
|
Hi,
I want to run user defined java classes when broker starts up to initialize the environment for all message flows deployed in the broker , can anyone tell me how to do that?
Thanks! |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 18, 2007 7:54 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Can't be done.
The best you can get is a constructor on a JCN or a custom-plugin. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kevin.shen |
Posted: Tue Sep 18, 2007 9:06 am Post subject: |
|
|
Novice
Joined: 05 Sep 2007 Posts: 18
|
jefflowrey wrote: |
Can't be done.
The best you can get is a constructor on a JCN or a custom-plugin. |
Can I use java classloader, or static initializer in a referenced java class from JCN (Java Compute Node) ?
Thanks! |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 18, 2007 10:18 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
What do you think you want to do, by using one of these mechanisms?
I'm sure there's a better way. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kevin.shen |
Posted: Tue Sep 18, 2007 10:28 am Post subject: |
|
|
Novice
Joined: 05 Sep 2007 Posts: 18
|
jefflowrey wrote: |
What do you think you want to do, by using one of these mechanisms?
I'm sure there's a better way. |
I have a broker with many message flows deployed in it, I want to load information from database at broker startup, and cache it in memory, so all message flows in the broker can share and access the information without visiting the database every time
What better way do you think?
Thanks! |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 18, 2007 10:30 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Use IA91.
Also, remember that each ExecutionGroup is it's own JVM. So there's no way - without using IA91! - to share data between ALL message flows. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|