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 » Dynamically set TCPIP Properties

Post new topic  Reply to topic
 Dynamically set TCPIP Properties « View previous topic :: View next topic » 
Author Message
rohank84
PostPosted: Thu Mar 26, 2009 5:43 am    Post subject: Dynamically set TCPIP Properties Reply with quote

Centurion

Joined: 31 Dec 2008
Posts: 109

Hi guys ,

i have a flow

timer --> Compute --> TCPIPClientOutput --> TCPIPServerReceive

Here the Code works fine when i set the IPAddress and Port Number.

In the Compute I need to set the Port number of both the TCP nodes. Here I am able to set the ClientOutput ipaddress and port number dynamically whereas I am not able to set the port number of receive node.

Is there anyway to set the port number of TCPIPServerReceive node.


Thanks
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Sat Mar 28, 2009 11:17 pm    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

Try this out:

Code:
$LocalEnvironment//TCPIP/Receive/Port

_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Back to top
View user's profile Send private message
rohank84
PostPosted: Mon Mar 30, 2009 1:49 am    Post subject: Reply with quote

Centurion

Joined: 31 Dec 2008
Posts: 109

hi MQEnthu...i read this in toolkit help and did this

InputLocalEnvironment.TCPIP.Receive.Port = portnumber;

but this didnt work ... ..is there any other way of doin this ......

Thanks ....
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Mon Mar 30, 2009 2:04 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

rohank84 wrote:

InputLocalEnvironment.TCPIP.Receive.Port = portnumber;


Try writing to your OutputLocalEnvironment.

Also ensure you have told the compute node that you wish to write to the environment.
Back to top
View user's profile Send private message
rohank84
PostPosted: Mon Apr 06, 2009 2:50 am    Post subject: Reply with quote

Centurion

Joined: 31 Dec 2008
Posts: 109

hi

i tried using this ..but i didnt work as well ....

i tried to change the flow a little

initial flow was

Code:
timer --> Compute --> TCPIPClientOutput --> TCPIPServerReceive


here i was setting the value in Compute node.
Then i changed it to

Code:
timer --> Compute --> TCPIPClientOutput --> Compute1 --> TCPIPServerReceive


and set the value in Compute1 ...but in both case the the exception is thrown at the TCPIPClientOutput.


Is there any way of doing this ....pls help
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Mon Apr 06, 2009 2:57 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

If you trace the environment after the compute nose, can you see the settings set as expected?
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Mon Apr 06, 2009 2:57 am    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi rohank84,

Have you set the compute node to propagate the LocalEnvironment ?

Take a file trace of the LocalEnvironment after the compute and paste it here.

Regards.
Back to top
View user's profile Send private message Send e-mail
rohank84
PostPosted: Mon Apr 06, 2009 3:36 am    Post subject: Reply with quote

Centurion

Joined: 31 Dec 2008
Posts: 109

hi guys ..i solved it ....

Actually the variable that i was setting were shared Varaibles ....so i had to CAST it to CHARACTER and it worked ....

But i dnt understand why i had to do this coz i am setting the shared variables for TCPIPClientOutput node and it works fine ......

what could be the reason for this ....
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 » Dynamically set TCPIP Properties
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.