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 » Pattern Generate Options

Post new topic  Reply to topic
 Pattern Generate Options « View previous topic :: View next topic » 
Author Message
inMo
PostPosted: Wed Jan 11, 2012 6:44 am    Post subject: Pattern Generate Options Reply with quote

Master

Joined: 27 Jun 2009
Posts: 216
Location: NY

This question is regarding WMB User-Defined Patterns. Is anyone aware of a capability to generate a pattern instance programatically? The goal is to avoid manually going to the toolkit and clicking the 'generate' button.
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Wed Jan 11, 2012 6:53 am    Post subject: Reply with quote

Jedi Knight

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

I, too, dislike manual effort.
_________________
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
Esa
PostPosted: Wed Jan 11, 2012 6:56 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

I know already how to get customers without marketing. Next I would like to know how to generate money without working. Please help
Back to top
View user's profile Send private message
inMo
PostPosted: Wed Jan 11, 2012 7:06 am    Post subject: Reply with quote

Master

Joined: 27 Jun 2009
Posts: 216
Location: NY

The pattern is defining my desired model data flow. I don't mind answering a few config questions and clicking the generate button once or twice. In my scenario, I would need to do this 100+ times (continues to grow). Then I will need to come back and enhance the pattern and apply the enhancement to 100+ instances.

The question is not unreasonable. Manually clicking the generate button kicks off a process that reads parameters and creates a single instance. I just want to call that process, passing it the parameters, and have it generate the same single instance. I'll just call it 100+ times.

Esa - You might find the concept of "interest", well, interesting.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jan 11, 2012 7:18 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Examine V8.
Back to top
View user's profile Send private message
Esa
PostPosted: Wed Jan 11, 2012 7:35 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

inMo wrote:
The pattern is defining my desired model data flow. I don't mind answering a few config questions and clicking the generate button once or twice. In my scenario, I would need to do this 100+ times (continues to grow). Then I will need to come back and enhance the pattern and apply the enhancement to 100+ instances.

The question is not unreasonable. Manually clicking the generate button kicks off a process that reads parameters and creates a single instance. I just want to call that process, passing it the parameters, and have it generate the same single instance. I'll just call it 100+ times.

Esa - You might find the concept of "interest", well, interesting.


I wish I had as many messages as you have flows... America must be a wonderland.

Sorry about the remark. I just couldn't resist and it slipped before I saw that a lot of people are making money out of nothing already. It's just no my thing. Interest, tax evasion or financial derivatives, you name it.

Patterns are a way to develop standardized, productive tools to integration architects, that's how I see it. A bit narrow view, I must admit.

If you need to generate hundreds of instances of a pattern, instantiating them is slow and an overkill. Whi dont you just copy the first instance in the filesystem and modify the copies. It's mostly XML, you know.

And seeing mqjeffs comment after previewing my reply: in Berlin they said that in V8 you can write flows without the toolkit with Message Broker API. You don't need to instantiate patterns. I wasn't sure if I remembered this correcly, so I did not mention it. But I think mqjeff just did.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jan 11, 2012 7:48 am    Post subject: Reply with quote

Grand High Poobah

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

inMo wrote:
In my scenario, I would need to do this 100+ times (continues to grow). Then I will need to come back and enhance the pattern and apply the enhancement to 100+ instances.


If my pattern / design / scenario required me to have 100 almost identical flows (because they can be generated with the same pattern with a few config changes they must be nearly identical) then I'd review my design!
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
inMo
PostPosted: Wed Jan 11, 2012 7:49 am    Post subject: Reply with quote

Master

Joined: 27 Jun 2009
Posts: 216
Location: NY

Quote:
Sorry about the remark. I just couldn't resist ...

I understand, it happens.

Quote:
Whi dont you just copy the first instance in the filesystem and modify the copies. It's mostly XML, you know.

It is an interesting idea. I've actually done that and was looking for something a bit less 1-off. I can't help but feel I am hacking up a fragile solution when doing this. Then if a enahnce the pattern, do I have to re-engineer my hack? I was hoping the pattern would standardize an approach to this.

Quote:
in Berlin they said that in V8 you can write flows without the toolkit with Message Broker API. You don't need to instantiate patterns. I wasn't sure if I remembered this correcly, so I did not mention it. But I think mqjeff just did.

I guess I will be doing some v8 specific research. Thank you for the suggestion.
Back to top
View user's profile Send private message
mqmatt
PostPosted: Wed Jan 11, 2012 8:12 am    Post subject: Reply with quote

Grand Master

Joined: 04 Aug 2004
Posts: 1213
Location: Hursley, UK

For the purposes of pattern generation, you can use the Flow API in V7.0.0.2 as well. It's meant for precisely this purpose.
Don't hand-crank the .CMF XML; it's prone to failure and unsupported by IBM.
Back to top
View user's profile Send private message
Esa
PostPosted: Wed Jan 11, 2012 8:21 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

mqmatt wrote:
For the purposes of pattern generation, you can use the Flow API in V7.0.0.2 as well. It's meant for precisely this purpose.
Don't hand-crank the .CMF XML; it's prone to failure and unsupported by IBM.


But can you skip the pattern step in V8, that's the question for which your answer is still a bit unclear...
Back to top
View user's profile Send private message
mqmatt
PostPosted: Wed Jan 11, 2012 8:35 am    Post subject: Reply with quote

Grand Master

Joined: 04 Aug 2004
Posts: 1213
Location: Hursley, UK

True, thanks! If you have a need for points of variability and an easy distribution mechanism, then use the Patterns framework - either V7 or V8.
For purely algorithmic flow creation/editing, then use the V8 Flow API standalone.
Back to top
View user's profile Send private message
inMo
PostPosted: Mon Jan 16, 2012 6:59 am    Post subject: Reply with quote

Master

Joined: 27 Jun 2009
Posts: 216
Location: NY

Quote:
For the purposes of pattern generation, you can use the Flow API in V7.0.0.2 as well. It's meant for precisely this purpose.


In looking at 7.0.0.2, I see a PatternInstanceManager is passed. I am able to work with it, modify the single pattern instance, and have it generate a single pattern instance in the toolkit under the pattern instance project.

Further, I can modifiy and write multiple unique flows to the file system all under a newly created directory, each flow with its own configuration, using the renderer.

Does anyone have any suggestions as to how to programatically have the multiple generated flows created and recognized under the pattern instance project?
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 » Pattern Generate Options
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.