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 » import java code in WMB

Post new topic  Reply to topic
 import java code in WMB « View previous topic :: View next topic » 
Author Message
Harshalw
PostPosted: Fri Aug 24, 2012 2:24 am    Post subject: import java code in WMB Reply with quote

Voyager

Joined: 23 Jul 2008
Posts: 77

Hello all ,

I am new to WMB and Java. I have a Java code for which I am using RAD. Can I import this Java code into WMB and with some required change can we use this code for executing through WMB.

Thanks
Back to top
View user's profile Send private message
Vitor
PostPosted: Fri Aug 24, 2012 2:53 am    Post subject: Re: import java code in WMB Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

Harshalw wrote:
I have a Java code for which I am using RAD. Can I import this Java code into WMB and with some required change can we use this code for executing through WMB.


The WMB Java Compute Node (JCN) runs any Java. This is its strength and its weakness; many people (especially new to WMB people) start out thinking WMB is an application server like WAS and write JCN code like it's an MDB.

Or take an existing MDB and fit it in with a few changes.

This always leads to problems. Don't do it. Write Java that conforms to the expectations and framework WMB exposes.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
zpat
PostPosted: Fri Aug 24, 2012 2:55 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

You don't need Java in 95% of cases. Look at all the WMB nodes and ask an expert (in WMB) how to use the standard WMB features.

Don't use Java unless there is no other choice. WMB is meant to be a non or low programming solution. It is not meant to be a place to host java code.

WMB existed for 10 years without hosting any user-definable Java code - are you really sure that your requirement can't be done in the standard way - I seriously doubt it.

Advice from an experienced WMB developer is essential for those new to WMB and who (in our modern world) have been given no training (how did we come to this terrible amateurish approach?).
Back to top
View user's profile Send private message
Harshalw
PostPosted: Fri Aug 24, 2012 3:26 am    Post subject: Reply with quote

Voyager

Joined: 23 Jul 2008
Posts: 77

WMB is not the only option.
I need to do it in a standard way only however since I know WMB (somewhat) better and find it more easy than Java so I thought of this approach.

Thanks all for suggestions.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Aug 24, 2012 5:05 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

If you attended the training class, you would find out that RAD is not the same as WMB and therefore you cannot wholesale import Java code from RAD into WMB:


IBM WebSphere Message Broker V8 Application Development I:

http://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_description&includeNotScheduled=y&courseCode=WM664


IBM WebSphere Message Broker V8 Application Development II:

http://www-304.ibm.com/jct03001c/services/learning/ites.wss/us/en?pageType=course_description&includeNotScheduled=y&courseCode=WM674



Have you taken these classes? If not, why not?
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Fri Aug 24, 2012 5:07 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

RAD provides no functions for working with WMB.

WMB Toolkit provides functions for working with Java code.

The place you need to start is to make sure you understand what the Java code actually does. Once you know that, you can consider whether to run it in a JCN or rewrite it in other functions of MB (esql, mapping, etc.), or not run it in Broker at all.

If the code is primarily designed to support user interface actions, you should not run it in Broker.
Back to top
View user's profile Send private message
rekarm01
PostPosted: Sun Aug 26, 2012 5:01 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 1415

zpat wrote:
WMB existed for 10 years without hosting any user-definable Java code

Maybe not quite that long. MQSI had Java custom nodes long before WMB introduced Java Compute nodes, and many developers were equally happy to abuse those at the time.

zpat wrote:
Advice from an experienced WMB developer is essential for those new to WMB and who (in our modern world) have been given no training (how did we come to this terrible amateurish approach?).

Perhaps in part because:

zpat wrote:
WMB is meant to be a non or low programming solution.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Sun Aug 26, 2012 7:20 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

rekarm01 wrote:
zpat wrote:
WMB existed for 10 years without hosting any user-definable Java code

Maybe not quite that long. MQSI had Java custom nodes long before WMB introduced Java Compute nodes, and many developers were equally happy to abuse those at the time.
[/quote]

Well, it were considerably more messy to write them before v5 came along and gave us eclipse-y things to play with.

It's always nice to look back on things like that and be thankful for the opportunities to have made mistakes and twice as thankful that they are no longer in production.
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 » import java code in WMB
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.