Author |
Message
|
EAI_GURU |
Posted: Wed Oct 24, 2007 1:33 am Post subject: Fetching Hostnme thru msg flow |
|
|
Newbie
Joined: 18 Jul 2007 Posts: 9
|
Hi ,
How can we fetch the host name of the machine through message flows (esql/java) |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Oct 24, 2007 1:45 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Hi
Which OS you are using. are you using WBIMB 6
Through java you can fetch the host name.
you can use system executable command.
Regards
Gayathri _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die |
|
Back to top |
|
 |
Vitor |
Posted: Wed Oct 24, 2007 1:48 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Do a Java node & use a System function?
(Whilst I'm certain that such a function exists in Java, I'm equally certain the Easter Bunny exists. More competent Java people may wish to correct me). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Gaya3 |
Posted: Wed Oct 24, 2007 1:58 am Post subject: |
|
|
 Jedi
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
|
Hi
Look this site.....
Using java.net package you can achieve the host name details.
http://www.devx.com/tips/Tip/13284
Sorry for confusing with the word System executable , the above is what i meant.
Regards
Gayathri |
|
Back to top |
|
 |
Vitor |
Posted: Wed Oct 24, 2007 2:07 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Gaya3 wrote: |
Sorry for confusing with the word System executable , the above is what i meant.
|
Hey, I can confuse myself with Java quite easily, any efforts on your part will not make things noticably worse.
(Whatever happened to C? Damn progress!)
 _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
bower5932 |
Posted: Wed Oct 24, 2007 2:40 am Post subject: |
|
|
 Jedi Knight
Joined: 27 Aug 2001 Posts: 3023 Location: Dallas, TX, USA
|
hostname would be a great broker attribute that you could get from ESQL. |
|
Back to top |
|
 |
EAI_GURU |
Posted: Wed Oct 24, 2007 5:13 am Post subject: |
|
|
Newbie
Joined: 18 Jul 2007 Posts: 9
|
Thanks !!!! it works  |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Oct 24, 2007 8:06 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
bower5932 wrote: |
hostname would be a great broker attribute that you could get from ESQL. |
Who needs the host name when the associated name of the broker's qmgr is just as specific if not even more so... You can have multiple brokers on the same machine but only 1 per qmgr... so the qmgr name will identify both the machine and the broker...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Thu Oct 25, 2007 4:46 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Of course, you can also just ask for the Broker name from ESQL. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|