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 » Node Name+Terminal in JAVA

Post new topic  Reply to topic
 Node Name+Terminal in JAVA « View previous topic :: View next topic » 
Author Message
scravr
PostPosted: Fri Nov 18, 2011 8:52 am    Post subject: Node Name+Terminal in JAVA Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

In WMB V7:
How can JCN find-out the name of sending Node and it's terminal name?

EX:
If NodeA with terminal A1 is connected to JAVA Compute Node:
How can this JAVA get "NodeA" and "A1" as input-node-name and input-terminal-name?
Back to top
View user's profile Send private message Send e-mail MSN Messenger
mqjeff
PostPosted: Fri Nov 18, 2011 9:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You can't do this in ESQL.

Why would you expect to do this in Java?

Whatever reason you have for wanting to do this, you need to rethink it.

You are basically asking the same question as asking "How can a java method know what method called that method?".
Back to top
View user's profile Send private message
scravr
PostPosted: Fri Nov 18, 2011 9:36 am    Post subject: Reply with quote

Partisan

Joined: 03 Apr 2003
Posts: 391
Location: NY NY USA 10021

This generic JCN acts based on input-type: MQInput, FileInput.... Also needs to identify terminals: Out, End-Of-Data terminal(for files), etc....

There are other Process Flow tools that give this info.
Back to top
View user's profile Send private message Send e-mail MSN Messenger
Vitor
PostPosted: Fri Nov 18, 2011 9:49 am    Post subject: Reply with quote

Grand High Poobah

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

scravr wrote:
There are other Process Flow tools that give this info.


WPS is a different product to WMB. It's also a different product to WMQ & WAS. It doesn't make one better or worse than the other, just that they have different capabilities and are used for different things.

WPS (and AFAIK WESB) do store the state & route of a payload through their flows. WMB does not because WMB is designed to be stateless.

You could easily enough tag inbound messages with origin data. How much this decreases the utility of your generic node is a question dependant on your design.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Nov 18, 2011 9:51 am    Post subject: Reply with quote

Jedi Council

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

There is a saying about SAP installations.

1) Don't try to fit SAP to how your organisation works.
2) Change your organistation to fit SAP

Something like your requirement then...

Just like trying to get Broker ESQL code to explicity handle every different type of ODBC connection failure.
_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Node Name+Terminal in JAVA
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.