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 » FileInput node - Directory path separator Windows/Unix

Post new topic  Reply to topic
 FileInput node - Directory path separator Windows/Unix « View previous topic :: View next topic » 
Author Message
fszostak
PostPosted: Fri Mar 18, 2011 10:36 am    Post subject: FileInput node - Directory path separator Windows/Unix Reply with quote

Acolyte

Joined: 09 Feb 2011
Posts: 64
Location: Curitiba, Brazil

Hi All!

My development environment is Windows and production is Unix.

Devel Directory: C:\myapp\files\input
Production Directory: /myapp/files/input

I would like to set FileInput node only the Directory property with "/myapp/files/input" and Windows environment recognize the path with "C:\myapp\files\input". It's possible?

Sometimes I forget to change for deploy.

Thanks
Szostak.
_________________
WMB 6.1.005


Last edited by fszostak on Fri Mar 18, 2011 10:38 am; edited 1 time in total
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Mar 18, 2011 10:38 am    Post subject: Reply with quote

Jedi Knight

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

Yes, Windows accepts / as a separator. Drop the "C:" as it is unneeded in Windows. The nyour paths will be identical between both environments.
_________________
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
fszostak
PostPosted: Fri Mar 18, 2011 10:44 am    Post subject: Reply with quote

Acolyte

Joined: 09 Feb 2011
Posts: 64
Location: Curitiba, Brazil

lancelotlinc wrote:
Yes, Windows accepts / as a separator. Drop the "C:" as it is unneeded in Windows. The nyour paths will be identical between both environments.


I did try, but don't work here.

Must I configure something?
_________________
WMB 6.1.005
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Mar 18, 2011 11:14 am    Post subject: Reply with quote

Jedi Knight

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

No config is needed. Do something simple for a quick test to prove to your brain that it will work.

Such as put the log in the root" "/"

Remember to omit the "C:"
_________________
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
fszostak
PostPosted: Fri Mar 18, 2011 11:48 am    Post subject: Reply with quote

Acolyte

Joined: 09 Feb 2011
Posts: 64
Location: Curitiba, Brazil

lancelotlinc wrote:
No config is needed. Do something simple for a quick test to prove to your brain that it will work.

Such as put the log in the root" "/"

Remember to omit the "C:"



I put Trace node with output to File (/app/log/test.log) .. works!
_________________
WMB 6.1.005
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Mar 18, 2011 11:52 am    Post subject: Reply with quote

Jedi Knight

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

Congratulations. You are now a ''SME''.
_________________
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
fszostak
PostPosted: Fri Mar 18, 2011 11:59 am    Post subject: Reply with quote

Acolyte

Joined: 09 Feb 2011
Posts: 64
Location: Curitiba, Brazil

lancelotlinc wrote:
Congratulations. You are now a ''SME''.


Sorry, I was not clear. Trace node works.... but FileInput not yet.


Look the manual description:

Element Name Element Data Type Description
Directory CHARACTER Absolute directory path of the input directory in the form used by the file system of the broker. For example, on Windows systems, this starts with the drive letter prefix (such as C.
_________________
WMB 6.1.005


Last edited by fszostak on Fri Mar 18, 2011 12:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Mar 18, 2011 12:02 pm    Post subject: Reply with quote

Jedi Knight

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

Since you are now the ''SME''. you will be able to figure it out. I'm going now for the weekend. Back to work on Monday. ''SME'' stands for ... ??
_________________
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
fszostak
PostPosted: Fri Mar 18, 2011 12:03 pm    Post subject: Reply with quote

Acolyte

Joined: 09 Feb 2011
Posts: 64
Location: Curitiba, Brazil

lancelotlinc wrote:
Since you are now the ''SME''. you will be able to figure it out. I'm going now for the weekend. Back to work on Monday. ''SME'' stands for ... ??


I dont know SME.... have a nice weekend!

Thanks
_________________
WMB 6.1.005


Last edited by fszostak on Fri Mar 18, 2011 12:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
fszostak
PostPosted: Fri Mar 18, 2011 12:23 pm    Post subject: Reply with quote

Acolyte

Joined: 09 Feb 2011
Posts: 64
Location: Curitiba, Brazil

Partially resolved.

If i set "c:/app/files/input" works fine in windows environment.

Before deploy to production, make a "Search and Replace" in all files.

Search: c:/app
Replace: /app
_________________
WMB 6.1.005
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Mar 18, 2011 12:31 pm    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

SME stands for "Subject Matter Expert".

You are resolving this in the wrong way.

You can override these properties in the BAR File Editor in Toolkit or Broker Explore before you deploy. You can write scripts to run mqsiapplybaroverride to override these properties before the script runs mqsideploy.

You should do this in this manner, not by doing search/replace.
Back to top
View user's profile Send private message
fszostak
PostPosted: Sat Mar 19, 2011 11:03 am    Post subject: Reply with quote

Acolyte

Joined: 09 Feb 2011
Posts: 64
Location: Curitiba, Brazil

mqjeff wrote:
SME stands for "Subject Matter Expert".

You are resolving this in the wrong way.

You can override these properties in the BAR File Editor in Toolkit or Broker Explore before you deploy. You can write scripts to run mqsiapplybaroverride to override these properties before the script runs mqsideploy.

You should do this in this manner, not by doing search/replace.


Hi mqjeff!

I agree! Override properties is the better alternative.

Thanks!
Szostak
_________________
WMB 6.1.005
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 » FileInput node - Directory path separator Windows/Unix
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.