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 » JmsTemplate Spring and queueManagerName

Post new topic  Reply to topic
 JmsTemplate Spring and queueManagerName « View previous topic :: View next topic » 
Author Message
langrand
PostPosted: Tue Oct 02, 2007 12:56 am    Post subject: JmsTemplate Spring and queueManagerName Reply with quote

Newbie

Joined: 31 Aug 2007
Posts: 7

Hi,

I'm using WAS6.1 with Spring.
I declare a ressource jndi for the QueueconnectionFactory, and I work with the sping class JmsTemplate.

In a class java, I would like to retrieve the QueueManagerName of the QueueconnectionFacotry.
When I cast mu connextionFactory to a MqQueueconnectionFactory, I'v got a ClassCastException.

could someone help me

Best Regard
Ludovic
Back to top
View user's profile Send private message
JLRowe
PostPosted: Wed Oct 03, 2007 2:30 am    Post subject: Reply with quote

Yatiri

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

Dump the connectionFactory class to see what it acually is, e.g.
System.out.println(connectionFactory.getClass().getName());

It's probably some internal spring proxy class and so you will be unable to cast down to the specific type of connection factory. You may want to inject the connection factory as a seperate property of the bean and cast this.
Back to top
View user's profile Send private message Send e-mail
langrand
PostPosted: Wed Oct 03, 2007 3:19 am    Post subject: Reply with quote

Newbie

Joined: 31 Aug 2007
Posts: 7

Hi,

It's not a connection QueueConenctionFacory but a specific IBM connectionFactoryHandler.

I could not find the jar to cast it propely.

I find a another solution to retrieve My quemeManager name.

thanks a lot

Best regards

Ludovic
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » JmsTemplate Spring and queueManagerName
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.