Author |
Message
|
7207165620 |
Posted: Fri Aug 02, 2013 1:08 am Post subject: Configurable service does not override FileInput node props |
|
|
Apprentice
Joined: 11 Apr 2013 Posts: 37
|
Hi,
I need to fetch file from remote server.I am able to get file when I am defining all properties on FileInput node itself.But I need to fetch file using Configurable service that I have defined with remoteDirectory and serverName properties.But when I am keeping FileInput node properties like server and port,server directory blank under FTP,configurable service is unable to override all this properties and I am unable to fetch file from remote service.
Following are the specification I am working with.
WMB v8
Remote Server - Linux
Host machine - Windows
Quick responses are welcomed.
 |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Aug 02, 2013 1:19 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
Put a trace node in the flow prior to the File Output node.
Set it to output
Code: |
${LocalEnvironment}
|
and post the results here. _________________ 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 |
|
 |
7207165620 |
Posted: Fri Aug 02, 2013 3:02 am Post subject: Configurable service does not override FileInput node props |
|
|
Apprentice
Joined: 11 Apr 2013 Posts: 37
|
Thanks,
smdavies for your response.Here my concern is different.I am trying to read file not write.(with configurable service)
I defined configurable service as follows.
mqsicreateconfigurableservice MB8BROKER -c FtpServer -o server02 -n serverName,scanDelay,transferMode,connectionType,remoteDirectory,securityIdentity -v
host:port,5,BINARY,ACTIVE,/---/--/---/---,secId
But I am able to fetch file when I am configuring these properties on FileInput node.
But while I am trying to fetch file with FileInput node properties "empty", flow is unable to read file from remote server. In this case configurable service should override node properties,but certainly its not happening.
Hope, I am able to present my problem clearly. |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Fri Aug 02, 2013 3:18 am Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
Hi,
Enable and study debug level user trace what really happens when broker can't read files.
--
Marko |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Fri Aug 02, 2013 3:26 am Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
And you have double checked that in "Remote server and port" property you have the same value as in the configurable service ("server02")?
Quote: |
If a configurable service name is specified, any or all the other remote transfer properties on the FTP tab can be overridden by the configurable service. |
--
Marko |
|
Back to top |
|
 |
7207165620 |
Posted: Fri Aug 02, 2013 4:36 am Post subject: Configurable service does not override FileInput node props |
|
|
Apprentice
Joined: 11 Apr 2013 Posts: 37
|
Thanks Marko,
I have rechecked the Host:port in FileInput node and configurable service, it is the same.I am wondering why configurable service is unable to override FileInput node properties.
I have cross checked the configurable service properties as follows :
I have developed one flow to write a file to the same remote server and given the remote server directory path in FileOutput node different from configurable service "remoteDirectory" property value.But its writing file to the path in FileOutput node rather than Configurable service.
This is what I am wondering about following concept.
"If a configurable service name is specified, any or all the other remote transfer properties on the FTP tab can be overridden by the configurable service." |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Fri Aug 02, 2013 4:59 am Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
Sorry for repeating myself, but have you value "server02" in your fileInputNode's "Remote server and port" property?
Have you enabled and studied debug level user trace?
--
Marko |
|
Back to top |
|
 |
smdavies99 |
Posted: Fri Aug 02, 2013 5:00 am Post subject: |
|
|
 Jedi Council
Joined: 10 Feb 2003 Posts: 6076 Location: Somewhere over the Rainbow this side of Never-never land.
|
You have restarted the broker after defining the Configurable Service haven't you? _________________ 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 |
|
 |
7207165620 |
Posted: Fri Aug 02, 2013 6:51 am Post subject: Configurable service does not override FileInput node props |
|
|
Apprentice
Joined: 11 Apr 2013 Posts: 37
|
Hi Marko,
I have restarted broker, I have specified "server02" in my FileInput Node's "server and port" property and followed up user trace .
I have encountered the error as "could not connect to remote ''FTP'' server ''host name''. Reason: ''create ipv4 active:500 Illegal PORT Command.
I tried writing file to same server by specifying "server02" in my FileOutput Node's "server and port" property and got the same error.
Whereas I tried by specifying "host name" on FileInput node and FileOutput node "server and port" property, I was able to read/write file.
I have tried to google that error but could not make a head or tail. |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Fri Aug 02, 2013 7:11 am Post subject: Re: Configurable service does not override FileInput node p |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
7207165620 wrote: |
-v host:port
.
.
.
500 Illegal PORT Command.
.
.
.
Whereas I tried by specifying "host name" on FileInput node and FileOutput node "server and port" property, I was able to read/write file.
|
Did you specify port on your configurable service and not in the node?
--
Marko |
|
Back to top |
|
 |
McueMart |
Posted: Fri Aug 02, 2013 7:13 am Post subject: |
|
|
 Chevalier
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
|
So what output do you get from running:
mqsireportproperties <BROKER_NAME> -c FtpServer -
o AllReportableEntityNames -r
First we need to be sure you have your configurable service set up correctly. Have you also run the mqsisetdbparms command for the SecurityIdentity to set up the username/password for the FTP connection to use? |
|
Back to top |
|
 |
7207165620 |
Posted: Fri Aug 02, 2013 7:49 am Post subject: Configurable service does not override FileInput node props |
|
|
Apprentice
Joined: 11 Apr 2013 Posts: 37
|
Hi Marko,
Ftp server runs on default port '21'. I have specified the port along with 'host name' on Configurable service and on FileInput/FileOutput node it works fine with/without port no.
I have just specified "server02" in my FileInput Node's "server and port" property but still I am facing the same issue.
Wondering where I have gone wrong. |
|
Back to top |
|
 |
7207165620 |
Posted: Fri Aug 02, 2013 7:56 am Post subject: Configurable service does not override FileInput node props |
|
|
Apprentice
Joined: 11 Apr 2013 Posts: 37
|
Hi Mark,
I have run mqsisetdbparms command for security identity, so as I am able to read/write file from/to remote server, but not using configurable service.
I am able to see all the properties that I have configured in configurable service using below command
mqsireportproperties MB8BROKER -c FtpServer -o server02 -r |
|
Back to top |
|
 |
McueMart |
Posted: Fri Aug 02, 2013 8:00 am Post subject: |
|
|
 Chevalier
Joined: 29 Nov 2011 Posts: 490 Location: UK...somewhere
|
What version of WMB are you using?
This capability was included in 8.0.0.1 if i recall correctly. |
|
Back to top |
|
 |
marko.pitkanen |
Posted: Fri Aug 02, 2013 11:34 am Post subject: |
|
|
 Chevalier
Joined: 23 Jul 2008 Posts: 440 Location: Jamsa, Finland
|
One thing you could test is to set connectionType PASSIVE in your configurable service. There are some clues in the internet that your exception could be related to this setting.
--
Marko |
|
Back to top |
|
 |
|