• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JMS resources lookup from simple java Client in WAS6.0

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

In WAS 5.1 we could lookup JMS resources from the simple java client and also send messages to destinations. I am not able to do the same in WAS 6.0. I am getting the following Exception:

Nov 22, 2005 3:17:45 PM com.ibm.ws.naming.util.Helpers
WARNING: jndiGetObjInstNoop
java.lang.ClassCastException: javax.naming.Reference

Have anyone faced similar problem and solved it. Please help.

Thanks in advance,
Suttan
 
author
Posts: 4335
39
jQuery Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure what you mean by "simple java client" but if you refer to a JSP/Servlet calling an EJB/Messaging service, I've never had any problems with JNDI lookups.

It sounds like a server configuration issue to me, likely related to class-path.
 
Suttan Pym
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Scott,
What I mean by a simple java client is that a client JVM, not at all running in a container or any server environment. From there I am doing a lookup to a Topic or Queue Connection Factory in WAS 6.0. When I do lookup I get an Object which if type javax.naming.Reference. I am not getting any Objects of ConnectionFactories.
I had the same problem with Queuea and Topics and adding couple of jar files in the CLASSPATH solved the problem. But for this I tried each and every jar file but still the problem persists. If you could tell me what are things which are required to be added in the classpath then it would be helpfull.

Regards and Thanks,
Sutttan
 
Ranch Hand
Posts: 286
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm having the same problem:

Jun 6, 2006 8:16:36 PM com.ibm.ws.naming.util.Helpers
WARNING: jndiGetObjInstNoop
java.lang.ClassCastException: javax.naming.Reference
at com.test.jms.Sender.main(Sender.java:33)

I've found another solution: adding <WAS_HOME>/lib/dynacache.jar into the classpath.

My environment is: WAS 6.0.0.1, WebSphere MQ 6.0, JMS Client Java Application running in RAD 6.0

I also found another more intuitive solution by adding messagingClient.jar.
 
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You guys might want to read about WAS thin clients:

http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/topic/com.ibm.websphere.nd.iseries.doc/info/iseriesnd/ae/ccli_thinclient.html
[ June 08, 2006: Message edited by: Ryan Zezeski ]
 
Liar, liar, pants on fire! refreshing plug:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic