Author |
Message
|
mca |
Posted: Tue Aug 23, 2011 9:43 am Post subject: Re-Write old WMB msg Flows in v7 |
|
|
Disciple
Joined: 09 Mar 2005 Posts: 196
|
Hi,
We have two Message Broker Bar files running in Production. One Bar file has message flow that converts IMS Message (Cobol) into XML. Other Bar file contains message flow that converts XML message into IMS (Cobol). Both these flows were written in WMB v5.3. Now my manager wants me to re-write both these flows in WMB v7.
Is it easy for me to import the existing v5.3 Bars into v7 Toolkit, recompile and deploy or start development from scratch?
Any advice will be very appreciated.
Thanks, |
|
Back to top |
|
 |
lancelotlinc |
Posted: Tue Aug 23, 2011 10:00 am Post subject: |
|
|
 Jedi Knight
Joined: 22 Mar 2010 Posts: 4941 Location: Bloomington, IL USA
|
|
Back to top |
|
 |
zpat |
Posted: Tue Aug 23, 2011 10:07 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
First of all BAR files normally contain executable not source code (but they may have source if the option was chosen to include it).
The source for this BAR should be in your source control library. Are you saying that you have lost the source? |
|
Back to top |
|
 |
mca |
Posted: Tue Aug 23, 2011 10:19 am Post subject: |
|
|
Disciple
Joined: 09 Mar 2005 Posts: 196
|
The BAR files have the source code in them. But when i try to import the source in v7, compile it and deploy, it does not work. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 23, 2011 10:26 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mca wrote: |
it does not work. |
Define "does not work". Deploying code as old as v5.3 probably won't work until you've removed references to replaced features.
The migration guides for 6.0 & 6.1 might help if the deploy errors don't _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
smdavies99 |
Posted: Tue Aug 23, 2011 10:42 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Did you 'unzip' the .bar file first to extract the sources before importing them into the toolkt? _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions. |
|
Back to top |
|
 |
mca |
Posted: Tue Aug 23, 2011 11:03 am Post subject: |
|
|
Disciple
Joined: 09 Mar 2005 Posts: 196
|
When i unzip and extract the BAR file, i got 3 folders META-INF, MessageSet_Project and MessageFlow_Project. In addition to these there are 3 files .cmf, .dictionary, .xml that got extracted.
How do you recommend me to import these into v7 Toolkit? |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 23, 2011 11:06 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
There's no such thing as Broker v 5.3.
The only way to "import" a Bar file is to use the Generate Message Flow pattern.
If these message flows are really as simple as you say, it may be easier for you to just rewrite them from scratch.
Unless your flows are significantly more complex than MQInput->Compute->MQOutput. |
|
Back to top |
|
 |
Vitor |
Posted: Tue Aug 23, 2011 11:08 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
mca wrote: |
When i unzip and extract the BAR file, i got 3 folders META-INF, MessageSet_Project and MessageFlow_Project. In addition to these there are 3 files .cmf, .dictionary, .xml that got extracted. |
You said previously that:
mca wrote: |
The BAR files have the source code in them |
It doesn't sound much like it from that description. What leads you to the conclusion that these bar files were built with included source?
mca wrote: |
How do you recommend me to import these into v7 Toolkit? |
Well you don't from the sound of it. They sound like they contain the compiled components. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
mca |
Posted: Tue Aug 23, 2011 11:15 am Post subject: |
|
|
Disciple
Joined: 09 Mar 2005 Posts: 196
|
We have a mandatory procedure in our client to add the source code to the BARS and i can also import it into tool kit and see the flows.
But when i try to compile the imported flows and deploy on server it doesn't work. I feel i am not doing the import of source files correct way into toolkit. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 23, 2011 11:17 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
mca wrote: |
I feel i am not doing the import of source files correct way into toolkit. |
That's correct, you aren't.
I've told you the correct way. |
|
Back to top |
|
 |
mca |
Posted: Tue Aug 23, 2011 11:49 am Post subject: |
|
|
Disciple
Joined: 09 Mar 2005 Posts: 196
|
Our environment is z/Linux and we have 3 BAR's (3 Message flows) running on the server. If i run the generate pattern, how will it differentiate the 3 flows. Will i get the flows in such a way that i can make changes and deploy it in server?
Thanks for your replies... |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 23, 2011 11:54 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
What happens when you try it?
What does the documentation say will happen? |
|
Back to top |
|
 |
mca |
Posted: Tue Aug 30, 2011 7:37 am Post subject: |
|
|
Disciple
Joined: 09 Mar 2005 Posts: 196
|
My Broker is running on Linux. I tried to download the pattern on my desktop and install here, but did not get an executable when i extract the zip.
Can you please help me the install this pattern. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Aug 30, 2011 7:48 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
|