Author |
Message
|
felfel |
Posted: Fri May 11, 2007 10:52 am Post subject: Multi-environment and shared-classes |
|
|
Apprentice
Joined: 02 Nov 2004 Posts: 26
|
Hi all ,
My customer have 2 brokers on the same machine ( Dev & Integration).
He has deployed an entire java application ( more than 100 Mo of jars !) in the shared-classes.
Ok , I know it's not a good idea to design a message flow.
Now he has a problem of versionning the java application.
He wants to manage different versions for each broker.
As the shared-classes folder is common for all brokers , how can we handle this problem ?
Any idea is welcome, thanks. _________________ "Mens sana in corpore sano" |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri May 11, 2007 10:53 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You can't. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
felfel |
Posted: Fri May 11, 2007 11:00 am Post subject: |
|
|
Apprentice
Joined: 02 Nov 2004 Posts: 26
|
And if I ask him to create the brokers with different users ( wmqi1 , wmqi2).
For each user , I set a different classpath.
Could it work ? _________________ "Mens sana in corpore sano" |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri May 11, 2007 11:11 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
shared-classes is shared by both brokers. _________________ Marcin |
|
Back to top |
|
 |
jefflowrey |
Posted: Fri May 11, 2007 11:28 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Changing the CLASSPATH is going to change the classloader used to load the application jars.
Creating your own LIL directory, different for each broker, is going to change the class loader used to load the application jars.
Putting the application in a PAR file, and deploying it to different brokers, is going to change the classloader used to load the application jars.
You see? _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri May 11, 2007 12:23 pm Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
|
Back to top |
|
 |
|