Author |
Message
|
Pats21 |
Posted: Wed Dec 10, 2014 10:19 am Post subject: Best practice to place jar files referenced in messageflows |
|
|
Disciple
Joined: 08 Sep 2006 Posts: 154
|
Hi,
I would like to know what is the best practice to maintain external jar files that are being used as part of the messageflow, say in a JavaCompute node.
Is it good to keep it inside the bar file or in the 'shared-classes' folder?
Thanks in advance. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Dec 10, 2014 10:28 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
It's best to keep them in a location pointed to by a JavaClassloader configurable service. |
|
Back to top |
|
 |
Pats21 |
Posted: Wed Dec 10, 2014 8:37 pm Post subject: |
|
|
Disciple
Joined: 08 Sep 2006 Posts: 154
|
Thanks for your guideline. |
|
Back to top |
|
 |
zpat |
Posted: Thu Dec 11, 2014 1:56 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
BUT - any use of JAR files suggests you are not using the built-in capabilities of the message broker.
Please explain why you think you need to use JAR files?
Running non-IBM code inside WMB/IIB can cause problems - especially if you access external resources. _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
prabhu_s1177 |
Posted: Fri Dec 12, 2014 12:27 am Post subject: |
|
|
Apprentice
Joined: 26 Nov 2007 Posts: 34
|
If in case of external jars, usually it will be placed in the Shared-classes.
If those jars are specific to some flows running on a particular execution group. It is advisable to keep in the execution group level shared classes.
If those jars are used by flows used by one or more execution group. Keep them in broker level shared-classes. |
|
Back to top |
|
 |
zpat |
Posted: Fri Dec 12, 2014 12:40 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Don't use external JAR files other than in truly exceptional cases where the product cannot do what you need. Always ask a broker expert first, before deciding that you have to use any JAR files.
What is this exceptional case? _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
prabhu_s1177 |
Posted: Fri Dec 12, 2014 12:52 am Post subject: |
|
|
Apprentice
Joined: 26 Nov 2007 Posts: 34
|
Again external jars are based on the requirement and where product itself cannot do what we need, as you mentioned  |
|
Back to top |
|
 |
zpat |
Posted: Fri Dec 12, 2014 12:57 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
How about you tell us what this requirement is and we can see if you are right or not? _________________ Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error. |
|
Back to top |
|
 |
|