ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Initializing Message Broker

Post new topic  Reply to topic
 Initializing Message Broker « View previous topic :: View next topic » 
Author Message
kevin.shen
PostPosted: Tue Sep 18, 2007 7:51 am    Post subject: Initializing Message Broker Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Sep 18, 2007 7:54 am    Post subject: Reply with quote

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
View user's profile Send private message
kevin.shen
PostPosted: Tue Sep 18, 2007 9:06 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Sep 18, 2007 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
kevin.shen
PostPosted: Tue Sep 18, 2007 10:28 am    Post subject: Reply with quote

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
View user's profile Send private message
jefflowrey
PostPosted: Tue Sep 18, 2007 10:30 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Initializing Message Broker
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.