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 » Using 3rd party jars in IIB

Post new topic  Reply to topic
 Using 3rd party jars in IIB « View previous topic :: View next topic » 
Author Message
archana123
PostPosted: Mon Jul 27, 2015 5:53 am    Post subject: IIB: How to add 3rd party jars ? Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Jul 27, 2015 6:26 am    Post subject: Re: IIB: How to add 3rd party jars ? Reply with quote

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
View user's profile Send private message
zpat
PostPosted: Mon Jul 27, 2015 7:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Jul 27, 2015 7:31 am    Post subject: Reply with quote

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
View user's profile Send private message
ganesh
PostPosted: Mon Jul 27, 2015 2:02 pm    Post subject: Reply with quote

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
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 » Using 3rd party jars in IIB
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.