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 » Is there a way I can read Broker start time in ESQL/JAVA

Post new topic  Reply to topic
 Is there a way I can read Broker start time in ESQL/JAVA « View previous topic :: View next topic » 
Author Message
CuriCAT
PostPosted: Tue Nov 18, 2008 3:29 pm    Post subject: Is there a way I can read Broker start time in ESQL/JAVA Reply with quote

Voyager

Joined: 26 Sep 2006
Posts: 82

Is there a way I can read Broker start time in ESQL/JAVA ?

I don't see that in the list "Broker properties that are accessible from ESQL and Java"

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak01012_.htm

Any one have an idea.?
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
marcin.kasinski
PostPosted: Wed Nov 19, 2008 2:05 am    Post subject: Re: Is there a way I can read Broker start time in ESQL/JAVA Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

CuriCAT wrote:
Is there a way I can read Broker start time in ESQL/JAVA ?

I don't see that in the list "Broker properties that are accessible from ESQL and Java"

http://publib.boulder.ibm.com/infocenter/wmbhelp/v6r0m0/index.jsp?topic=/com.ibm.etools.mft.doc/ak01012_.htm

Any one have an idea.?


You can use Timer node to write somewhere system date.
Flows are started with broker so it could be "Broker start time".

Is this precision OK for you ?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
JLRowe
PostPosted: Wed Nov 19, 2008 8:09 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

In java, You can obtain the JVM startup time from the platform MBeans:

http://java.sun.com/j2se/1.5.0/docs/api/java/lang/management/RuntimeMXBean.html

This should almost certainly indicate when the execution group was started.

Just use the code:
Code:

RuntimeMXBean runtime = ManagementFactory.getRuntimeMXBean();
long startTime = runtime.getStartTime();
Back to top
View user's profile Send private message Send e-mail
CuriCAT
PostPosted: Sat Nov 22, 2008 4:27 pm    Post subject: Reply with quote

Voyager

Joined: 26 Sep 2006
Posts: 82

JVM could die if any problem and start right, in that case it will not be same as broker start time. I am just gussing.
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
JLRowe
PostPosted: Mon Nov 24, 2008 11:10 am    Post subject: Reply with quote

Yatiri

Joined: 25 May 2002
Posts: 664
Location: South East London

CuriCAT wrote:
JVM could die if any problem and start right, in that case it will not be same as broker start time. I am just gussing.


No, the JVM should never die
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Is there a way I can read Broker start time in ESQL/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.