aspose file tools*
The moose likes BEA/Weblogic and the fly likes Regarding JMS Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Regarding JMS Server" Watch "Regarding JMS Server" New topic
Author

Regarding JMS Server

Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
I have created and configure a JMS server and target it to one Managed server. Now I want to monitor this via Admin console whether that is working properly or not,for that what I have to do to put/get some messages?
Shikhar Madhok
Ranch Hand

Joined: Dec 18, 2006
Posts: 95
I think you would need to write a code which connects to this JMS server and posts messages on it. Do not have a consumer initially, so that you can see the count of messages increasing through the weblogic console.
Then you can start your consmer and print the message in the onMessage method to make sure it is receiving the messages. At the same time the number of message in the Admin console will decrease (asssuming you are not posting any new messages).

Not sure if this answered your question.

Shikhar


He who asks a question is a fool for five minutes; he who does not ask a question remains a fool forever - Chinese proverb
Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
Yes Shikhar , You got the thing.
And you are right I have that code that send messages.That I have written in simple a public static void main class.
Now when I am running it as a java aplication from eclipse.its throwing exception as:

javax.naming.CommunicationException [Root exception is java.net.ConnectException: http://localhost:7001: Destination unreachable; nested exception is:
java.net.ProtocolException: Tunneling result unspecified - is the HTTP server at host: 'localhost' and port: '7001' a WebLogic Server?; No available router to destination]
at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:49)
at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:765)
at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:362)
at weblogic.jndi.Environment.getContext(Environment.java:307)
at weblogic.jndi.Environment.getContext(Environment.java:277)
at weblogic.jndi.Environment.createInitialContext(Environment.java:200)
at weblogic.jndi.Environment.getInitialContext(Environment.java:184)
at weblogic.jndi.Environment.getInitialContext(Environment.java:162)
at ServerStopper.stop(ServerStopper.java:43)
at ServerStopper.main(ServerStopper.java:20)


Where I am making a mistake.
Shikhar Madhok
Ranch Hand

Joined: Dec 18, 2006
Posts: 95
Are you sure your server was up and running when you tried to send the messages from your standalone program?

Shikhar
Anand Bhatt
Ranch Hand

Joined: May 30, 2007
Posts: 189
Yes Shikhar .It was .
Shikhar Madhok
Ranch Hand

Joined: Dec 18, 2006
Posts: 95
Can you post the code you are using to send messages? Also try to post the settings you have specified while creating the jms queue.

Shikhar
 
jQuery in Action, 2nd edition
 
subject: Regarding JMS Server