Author |
Message
|
mqmatt |
Posted: Mon Dec 20, 2010 6:03 am Post subject: PATTERN DOWNLOAD AVAILABLE: Generate Message Flow |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
A new pattern:
has been added to the WMB Pattern Repository forum.
Please use this thread to discuss the pattern. |
|
Back to top |
|
 |
mqjeff |
Posted: Mon Dec 20, 2010 6:16 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
So this is the answer to "How do I uncompile a bar file?"?
Use this pattern to run against your deployed flow..
But it says it only creates the .msgflow file, which implies that it doesn't create any .esql files... (and obviously not any .java or .php files either...) |
|
Back to top |
|
 |
mqmatt |
Posted: Mon Dec 20, 2010 6:43 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
Yes, that's it Jeff (though the pattern works against a running broker, rather than a BAR file). The message flow regeneration is done only using public APIs; there's no internal shenanigans going on.
Unfortunately as a result, the pattern can't get back ESQL or dictionary contents. However, JARs, XSLT and the like are stored directly on the broker's filesystem, so they're pretty accessible already. |
|
Back to top |
|
 |
zpat |
Posted: Mon Dec 20, 2010 7:17 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
Doesn't mqsireportbroker list the ESQL? |
|
Back to top |
|
 |
mqmatt |
Posted: Mon Dec 20, 2010 7:44 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
zpat wrote: |
Doesn't mqsireportbroker list the ESQL? |
Yes, I believe it may well do. It was specifically left out of the CMP flows for performance reasons. |
|
Back to top |
|
 |
dstorey |
Posted: Wed Dec 22, 2010 3:54 am Post subject: |
|
|
 Novice
Joined: 25 Mar 2002 Posts: 15 Location: UK
|
This is excellent!
I can now retrieve something resembling message flow source after I've deployed a BAR to a broker
The amount of times I see BARs with the source 'lost' and the BAR's in production!!
Thanks Matt. |
|
Back to top |
|
 |
deepak_paul |
Posted: Mon Sep 05, 2011 7:57 pm Post subject: |
|
|
Centurion
Joined: 04 Oct 2008 Posts: 147 Location: US
|
Matt, this is really a good feature.
I am trying to test to see how this really works in my local broker and remote. Local, i am able to retrieve message flow design but i create an instance for remote broker/message flow, i am getting following message on my canvas as in a note.
Quote: |
Could not create the message flow because the queue manager is not available. |
Quote: |
The supplied port is not a valid integer (true) |
I double checked the port/broker QM and tried but no success and tried for another remote broker with its respective port/broker QM but no success. [Note: I am able to connect to these brokers with those conn params (QM and Port) from Broker Toolkit]
Am i missing anything here or do i need to configure anything on the remote broker in order to get this working?
Thanks in advance. _________________ Regards
Paul |
|
Back to top |
|
 |
deepak_paul |
Posted: Mon Sep 05, 2011 9:18 pm Post subject: |
|
|
Centurion
Joined: 04 Oct 2008 Posts: 147 Location: US
|
mqmatt wrote: |
zpat wrote: |
Doesn't mqsireportbroker list the ESQL? |
Yes, I believe it may well do. It was specifically left out of the CMP flows for performance reasons. |
Zpat/Matt - Can you please advise me how we can use this command to list the ESQL because when i executed this command on my Windows machine, i am getting below result as per the help page,
Quote: |
C:\>mqsireportbroker BROKER_BPMS_RAJ
BIP8927I: Broker Name 'BROKER_BPMS_RAJ'
Install path = 'C:\Program Files (x86)\IBM\MQSI\7.0'
Work path = 'C:\ProgramData\Application Data\IBM\MQSI'
Broker UUID = '02bd9d8d-986a-4735-8969-be0e13884daf'
Process id = '11856'
Queue Manager = 'QM_BPMS_RAJ'
User lil path = ''
User exit path = ''
Active user exits = ''
LDAP principal = ''
LDAP credentials = ''
ICU converter path = ''
Trusted (fastpath) Queue Manager application = 'false'
Configuration change timeout = '300' seconds
Internal configuration timeout = '60' seconds
Statistics major interval = '60' minutes
Operation mode = 'enterprise'
Fixpack capability level = 'all' (effective level '7.0.0.3')
Broker registry format = 'v7.0'
Administration security = 'inactive'
Multi-instance Broker = 'false'
Shared Work Path = 'none'
Start as WebSphere MQ Service = 'undefined'
HTTP listener port = '7080'
BIP8071I: Successful command completion. |
Thanks in advance. _________________ Regards
Paul |
|
Back to top |
|
 |
mqmatt |
Posted: Wed Nov 23, 2011 7:10 am Post subject: |
|
|
 Grand Master
Joined: 04 Aug 2004 Posts: 1213 Location: Hursley, UK
|
This pattern's just been updated to support both WMB V7 and WMB V8. |
|
Back to top |
|
 |
missing_link |
Posted: Wed Nov 23, 2011 8:35 am Post subject: |
|
|
 Acolyte
Joined: 08 Jan 2004 Posts: 60
|
Yes, mqsireportproperties will list the full messageflow configuration including the ESQL if you use the correct parameters. Have you lost the source?
As a starter;
mqsireportproperties <brokername> -o AllMessageFlows -e <execgroup> -r
should list the details for all of the flows in the provided execution group. I'm sure if you try a bit more with the options you may be able to get it for the flow that you want. Failing that, a decent text editor should do the job!!  |
|
Back to top |
|
 |
wbisantosh |
Posted: Wed Jan 15, 2014 1:06 pm Post subject: |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
Hello,
I am trying to get a MessageFlow built out of a .cmf file deployed to a EG. WMB v8 is used to develop the Messagflow(the message flow is inside the application).
The Messagflow atrifacts I am trying to retrieve/uncompile
Application Name - 'Application'
MessageFlow Name - 'MessageFlow'
I tried these two,
1. I deployed WSRR sample from toolkit(which is a MessageFlow Project) and I was able to pull up the Message flow from the EG
2. I tried doing the same with my messageflow and this is the text i have in the Label inside the message flow that is created -
Code: |
Could not create the message flow because a message flow called 'MessageFlow' does not exist in execution group 'A'. |
I tried referring the message flow as - Messageflow or Application/MessageFlow or Application.MessageFlow
Either way it is the same.
The only difference I can see between WSRR sample and my Messageflow is,
For WSRR, I can see the Messageflow right under the Execution Group. where as for my Messageflow, There is 'Application' In between EG and MessageFlow
Please suggest how would I achieve this
Thanks
Santosh |
|
Back to top |
|
 |
Pratish |
Posted: Wed Feb 05, 2014 6:23 am Post subject: |
|
|
Newbie
Joined: 24 Jul 2007 Posts: 3
|
I am having the same issue, I did some testing and found that it does work for a messageFlow but not for a messageflow inside an Application.
So the question is are msgFlows that are part of an Application supported by the pattern.
---------- Update 02/12/2014 ----------
I have since successfully updated and tested the code to support flows within Applications. I am going to send it to Matt for review and publish. |
|
Back to top |
|
 |
wbisantosh |
Posted: Mon May 12, 2014 12:56 pm Post subject: |
|
|
Apprentice
Joined: 12 Nov 2012 Posts: 47
|
Thanks for the Update Pratish and Matt.
Can you help me install the updated Pattern. I have a local copy of the Pattern(hopefully source - which I got from the Download Link - http://www.mqseries.net/files/ibm/PVP_Updated_GenerateFlowSource.zip)
I tried download(in the pattern Explorer)and it seem to accept only .patternzip
your help would be appreciated
WMB v8.0.0.3
Windows 7
Thanks
Santosh |
|
Back to top |
|
 |
t603 |
Posted: Tue Jul 01, 2014 12:09 am Post subject: |
|
|
Voyager
Joined: 16 Oct 2012 Posts: 88 Location: Prague, the Czech Republic, Europe
|
Hello,
I have the very same problem like "deepak_paul PostPosted: Tue Sep 06, 2011 2:57 am". I do not see any answer to his problem, so I am trying to ask again.
I tried this tool, which sounds very promising, on Toolkit "Build id: 7.0.0.6-IFix-20140225_1125" and "Build id: 10.0.0-20140506-1859" and both of them returned me the error
Code: |
The supplied port is not a valid integer (true) |
It looks like the Pattern generator does not read port setting in XML, because I have the value "1414" inside XML and the debug says the value "true".
The config XML is
Code: |
<?xml version="1.0" encoding="UTF-8"?>
<p:root xmlns:p="org.mqmatt.generateflow.GenerateFlow.pattern">
<instanceName>test_2014-07-01c</instanceName>
<isLocalBroker>false</isLocalBroker>
<brokerName>BK1</brokerName>
<host>batch11.unix.myCompany.myDomain</host>
<qmgr>BK1.QM</qmgr>
<port>1414</port>
<egName>ConnODBC_1</egName>
<flowName>CONN_CMDB_ODBC</flowName>
<debugEnabled>true</debugEnabled>
<debugFilename>C:\temp\temp\test_2014-07-01c.trc</debugFilename>
</p:root> |
and the full debug log is
Code: |
I: Starting Java refinement
I: Pattern parameters: host=batch11.unix.myCompany.myDomain, qmgr=BK1.QM, port=true, brokerName=MB8BROKER, egName=ConnODBC_1, flowName=CONN_CMDB_ODBC, isLocalBroker=false
S: The supplied port is not a valid integer (true)
S: Could not create the message flow because the queue manager is not available. |
Also the value for brokerName looks like ignored, but in case remote broker it does not matter, I hope. I saved XML before running "Generate" button. I am running Toolkit on MS Windows 7 64bit.
Can someone point me, where I am making the error? Thank You in advance, Stepan |
|
Back to top |
|
 |
|