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 » crerating bar file in command line

Post new topic  Reply to topic
 crerating bar file in command line « View previous topic :: View next topic » 
Author Message
jeevan
PostPosted: Sun Jun 12, 2011 6:39 pm    Post subject: crerating bar file in command line Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

I am having an issue in creating a bar file at command line. I followed this site:

http://publib.boulder.ibm.com/infocenter/wmbhelp/v7r0m0/index.jsp

This is my bat file to create bar file

set ws=C:\Users\jeevan\IBM\wmbt70\workspace
set msgFlowDir=%ws%\MyApplication
set msgSetDir=%ws%\MyApplicationMessageSet\MyApplicationMessageSet

set msgFlow=%msgFlowDir%\Flows\MyApplicationFlow.msgflow

mqsicreatebar -data %ws% -b mySet.bar -p MyApplication -o %msgFlow% -o %msgSetDir%\messageSet.mset

I tried different variations:

-p msgflow project/message set project

-o only msgflow path
-o only message set path
-o msflow -o msgset path

None of these combination worked.


can any one help me what am missing here


thanks
J
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Sun Jun 12, 2011 7:26 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Looks like you're missing some concepts...
I would only supply to mqsicreatebar the following:
WS= workspace directory
MF = message flow directory
MS = message set directory.

What ever brought to your mind that you wanted the .mset file, when all you give a reference is the MSET project in the toolkit??

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jeevan
PostPosted: Mon Jun 13, 2011 4:37 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

fjb_saper wrote:
Looks like you're missing some concepts...
I would only supply to mqsicreatebar the following:
WS= workspace directory
MF = message flow directory
MS = message set directory.

What ever brought to your mind that you wanted the .mset file, when all you give a reference is the MSET project in the toolkit??

Have fun


I tried everything possible, but still does not work

my workspace dir is :C:\Users\jeevan\IBM\wmbt70\workspace
my msflow project is :MyApplication
my msgflow dir is :MyApplication (relative to ws)
my msgsetDir is : MyApplicationMessageSet\MyApplicationMessageSet


my create bar batch is this:

@ECHO OFF
set ws=C:\Users\jeevan\IBM\wmbt70\workspace
set msgFlowDir=%ws%\MyApplication
set msgSetDir=MyApplicationMessageSet\MyApplicationMessageSet


mqsicreatebar -data %ws% -b mySet.bar -p MyApplication -o MyApplication -o %msgSetDir%

I tried without -p, it gives an error, I tried with -p, it gives an error, i tried only with message flow dir, it gives an error, and i tried with both msgflow and msgset dir, it gives an error.

Not sure what I missed.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jun 13, 2011 9:16 pm    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

so what does trying it without the MessageSet do?
so what does trying it without the MessageFlow do?

Have you tried
dir %ws%\myapplication etc in your .bat file? Do the same for the messageset.
Do they work. Do they show the results as expected?
_________________
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
View user's profile Send private message
fjb_saper
PostPosted: Tue Jun 14, 2011 12:58 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

jeevan wrote:

my create bar batch is this:

@ECHO OFF
set ws=C:\Users\jeevan\IBM\wmbt70\workspace
set msgFlowDir=%ws%\MyApplication
set msgSetDir=MyApplicationMessageSet\MyApplicationMessageSet


mqsicreatebar -data %ws% -b mySet.bar -p MyApplication -o MyApplication -o %msgSetDir%

I tried without -p, it gives an error, I tried with -p, it gives an error, i tried only with message flow dir, it gives an error, and i tried with both msgflow and msgset dir, it gives an error.

Not sure what I missed.

what happens if you try this
set msgSetDir = %ws%\MyApplicationMessageSet
??
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
jeevan
PostPosted: Tue Jun 14, 2011 6:47 pm    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

fjb_saper wrote:
jeevan wrote:

my create bar batch is this:

@ECHO OFF
set ws=C:\Users\jeevan\IBM\wmbt70\workspace
set msgFlowDir=%ws%\MyApplication
set msgSetDir=MyApplicationMessageSet\MyApplicationMessageSet


mqsicreatebar -data %ws% -b mySet.bar -p MyApplication -o MyApplication -o %msgSetDir%

I tried without -p, it gives an error, I tried with -p, it gives an error, i tried only with message flow dir, it gives an error, and i tried with both msgflow and msgset dir, it gives an error.

Not sure what I missed.

what happens if you try this
set msgSetDir = %ws%\MyApplicationMessageSet
??


After severla trial, I got it working. The follwing is the working msgflow

================working ====================
@ECHO OFF

set ws=C:\Users\KIRAN\IBM\wmbt70\workspace
set MFP=MyApplication
set MS=MyApplicationMessageSet\MyApplicationMessageSet\messageSet.mset

set msgFlow= MyApplication\MyApplicationFlow.msgflow
set ws=C:\Users\KIRAN\IBM\wmbt70\workspace

mqsicreatebar -data %ws% -b mybar.bar -p %MFP% -o %msgFlow%
mqsicreatebar -data %ws% -b mySet.bar -o %MS%

I am not sure why, i have to give complete msgflow and msgset name as well not only directory,

Thanks a lot for input
Back to top
View user's profile Send private message
jeevan
PostPosted: Wed Jun 15, 2011 11:37 am    Post subject: Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

jeevan wrote:
fjb_saper wrote:
jeevan wrote:

my create bar batch is this:

@ECHO OFF
set ws=C:\Users\jeevan\IBM\wmbt70\workspace
set msgFlowDir=%ws%\MyApplication
set msgSetDir=MyApplicationMessageSet\MyApplicationMessageSet


mqsicreatebar -data %ws% -b mySet.bar -p MyApplication -o MyApplication -o %msgSetDir%

I tried without -p, it gives an error, I tried with -p, it gives an error, i tried only with message flow dir, it gives an error, and i tried with both msgflow and msgset dir, it gives an error.

Not sure what I missed.

what happens if you try this
set msgSetDir = %ws%\MyApplicationMessageSet
??


After severla trial, I got it working. The follwing is the working build bar script.

================working ====================
@ECHO OFF

set ws=C:\Users\KIRAN\IBM\wmbt70\workspace
set MFP=MyApplication
set MS=MyApplicationMessageSet\MyApplicationMessageSet\messageSet.mset

set msgFlow= MyApplication\MyApplicationFlow.msgflow
set ws=C:\Users\KIRAN\IBM\wmbt70\workspace

mqsicreatebar -data %ws% -b mybar.bar -p %MFP% -o %msgFlow%
mqsicreatebar -data %ws% -b mySet.bar -o %MS%

I am not sure why, i have to give complete msgflow and msgset name as well not only directory,

Thanks a lot for input
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 » crerating bar file in command line
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.