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 » IBM MQ Java / JMS » jms client (jmsadmin ?) and WSAD 5.1.0

Post new topic  Reply to topic
 jms client (jmsadmin ?) and WSAD 5.1.0 « View previous topic :: View next topic » 
Author Message
patatepoilue
PostPosted: Wed Feb 04, 2004 1:24 pm    Post subject: jms client (jmsadmin ?) and WSAD 5.1.0 Reply with quote

Newbie

Joined: 04 Feb 2004
Posts: 1

Hi everyone.

I am very new to MQ and JMS.

Here is what I have :
Win 2K
WSAD 5.1.0
from the was server config, under JMS -> Embedded Messaging
I have 1 Queue and 1 QCF defined.
My message driven bean is bindded to the ListnerPort defined in the server admin pages.
Everything works fine on my desktop and on a Linux stage WAS 5 server.

Now, I wish to have a standalone application to momitor this queue (mostly in developement). I wish to be able to browse de queue and remove messages in an other jvm from the same server or a remote machine. Will jmsadmin work ? If not, any suggestions ?

I cannot connect to my WSAD WAS server from jmsadmin

I read several post on this forum that suggest using a file as the jndi provider.. what is tis good for ?

My jmsadmin config :

INITIAL_CONTEXT_FACTORY=com.ibm.websphere.naming.WsnInitialContextFactory
SECURITY_AUTHENTICATION=none
PROVIDER_URL=iiop://localhost:2809/

From the jndi properties (universal test client) in WSAD I see :

Initial Factory: (INITIAL_CONTEXT_FACTORY) = com.ibm.websphere.naming.WsnInitialContextFactory
Provider URL: (PROVIDER_URL) = iiop://localhost:2809/

I ran a dumpnamespace. first few lines :

Name Space Dump
Provider URL: corbaloc:iiop:localhost:2809
Context factory: com.ibm.websphere.naming.WsnInitialContextFactory
Requested root context: cell
Starting context: (top)=localhost
Formatting rules: jndi
....
27 (top)/nodes/localhost/servers/server1/jms/AppToAtlasQueue com.ibm.mq.jms.MQQueue
28 (top)/nodes/localhost/servers/server1/jms/AppToAtlasConnectionFactory javax.jms.QueueConnectionFactory

Here is the error a get will trying to connect from jmsadmin :

Message is: javax.naming.ServiceUnavailableException: A communication failure occurred while attempting to obtain an initial context with the provider URL: "iiop://localhost:2809/". Make sure that any bootstrap address information in the URL is correct and that the target name server is running. A bootstrap address with no port specification defaults to port 2809. Possible causes other than an incorrect bootstrap address or unavailable name server include the network environment and workstation network configuration. Root exception is org.omg.CORBA.UNKNOWN: minor code: 0 completed: Maybe

at com.ibm.rmi.corba.ClientDelegate.intercept(ClientDelegate.java:980)

at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:442)

at com.ibm.rmi.corba.ClientDelegate.invoke(ClientDelegate.java:715)

....


a orbtrace files is also generated :

16:20:01.062 com.ibm.rmi.pi.InterceptorManager iterateSendRequest:417 P=600312:O=0:CT ORBRas[default] java.lang.NoClassDefFoundError: Invalid Implementation Key, com.ibm.ws.transaction.TXCurrent java.lang.NoClassDefFoundError: Invalid Implementation Key, com.ibm.ws.transaction.TXCurrent
at com.ibm.ws.util.ImplFactory.loadClassFromKey(ImplFactory.java:104)
at com.ibm.ejs.jts.jts.CurrentFactory.<clinit>(CurrentFactory.java:56)
at com.ibm.ejs.jts.jts.ClientInterceptor.initializeControlSet(ClientInterceptor.java:544)
....

this class is included in my class path.


What am I doing wrong ?

thank you,
tristan.
Back to top
View user's profile Send private message Send e-mail
rehab_desoki
PostPosted: Wed Jan 31, 2007 12:26 am    Post subject: Reply with quote

Novice

Joined: 25 Oct 2005
Posts: 18

Check that the server name which u use to connect remotely is correct and the port is available by the command

telnet (Server ip) (Port number)


if you are sure that it is correctly, if you have windows OS search about file named "hosts" or "HOSTS" and open it by notepad and at the end you will find

127.0.0.1 localhost

add a new line with the server ip and server name and try to connetc again
Back to top
View user's profile Send private message MSN Messenger
jefflowrey
PostPosted: Wed Jan 31, 2007 2:34 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

JMS Admin does not let you look at messages on a queue.

It only defines and controls the JNDI repository.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jan 31, 2007 3:36 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

You'll probably need a J2EE client to access the embedded JMS server for WAS 5.x...

File JNDI is the way to go to access an MQ Server. You're doing fine for the embedded server except you'll probably have to use a J2EE Client...

Enjoy
_________________
MQ & Broker admin
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 » IBM MQ Java / JMS » jms client (jmsadmin ?) and WSAD 5.1.0
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.