|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Using 3rd party jars in IIB |
« View previous topic :: View next topic » |
Author |
Message
|
archana123 |
Posted: Mon Jul 27, 2015 5:53 am Post subject: IIB: How to add 3rd party jars ? |
|
|
Novice
Joined: 21 Jul 2015 Posts: 14
|
How can we add third party jars in IIB and use them in Java Compute Node? |
|
Back to top |
|
 |
Vitor |
Posted: Mon Jul 27, 2015 6:26 am Post subject: Re: IIB: How to add 3rd party jars ? |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
archana123 wrote: |
How can we add third party jars in IIB and use them in Java Compute Node? |
By referencing them in your project. Start here.
I do hope you're not loading a 3rd part tool because you couldn't get the native sftp working even after following the advice you were given here.
As a general rule, you should avoid 3rd party jar files unless you're sure you can't achieve the same ends with native functions. You should also be aware that IIB's Java support is not exactly the same as (for example) WAS and the use of a 3rd party jar can cause operational & support issues. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
zpat |
Posted: Mon Jul 27, 2015 7:21 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Are you really sure that this powerful product which has had 14 years development by IBM, can't do what you need?
Using Jar files is usually a failure to understand what the IBM product can do.
If you use Jar files to access any external (to broker) resources then you are going to lose broker transactional control over that flow.
The broker commands etc will fail to work until control is returned - so make sure the jar file does not wait or hang for any reason. _________________ 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 |
|
 |
Vitor |
Posted: Mon Jul 27, 2015 7:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
zpat wrote: |
Are you really sure that this powerful product which has had 14 years development by IBM, can't do what you need? |
A valid use case would be where there is transformation or validation based on business logic that's in use elsewhere (by a WAS MDB or similar) that has to be incorporated into a flow.
I have a sinking feeling that's not what the OP is doing.
zpat wrote: |
Using Jar files is usually a failure to understand what the IBM product can do. |
zpat wrote: |
If you use Jar files to access any external (to broker) resources then you are going to lose broker transactional control over that flow. |
probably
zpat wrote: |
The broker commands etc will fail to work until control is returned - so make sure the jar file does not wait or hang for any reason. |
See my comments above about operational & support issues.
The classic in my experience is where the jar requires custom JVM configuration, or some kind of parameters.
War story (some years ago, and filtered through my lack of Java knowledge):
Had a flow with a JCN that incorporated a jar to perform the kind of validation I mention above, and yes, someone else wrote the JCN for me (!)
It didn't work properly and the problem was traced to the jar code taking a load of default values (like if it was running in Prod or something). When the team responsible for the jar where queried on how to set these values, their response of "just go into the wasadmin console and set them from there" was not immediately helpful...... _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
ganesh |
Posted: Mon Jul 27, 2015 2:02 pm Post subject: |
|
|
Master
Joined: 18 Jul 2010 Posts: 294
|
zpat wrote: |
If you use Jar files to access any external (to broker) resources then you are going to lose broker transactional control over that flow.
|
This is very true.
A response from a java call after your message flow has timed out could cause out of memory exception in broker/IIB. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|