Bonjour,

J'essaye de configurer mon application pour manipuler des messages JMS via MQSeries v6.
J'utilise Spring 2.5.6

J'obtiens l'erreur suivante lors d'un simple essai d'envoi:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
10 juil. 2009 13:41:58 org.springframework.context.support.AbstractApplicationContext prepareRefresh
INFO: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@ec16a4: display name [org.springframework.context.support.ClassPathXmlApplicationContext@ec16a4]; startup date [Fri Jul 10 13:41:58 CEST 2009]; root of context hierarchy
10 juil. 2009 13:41:58 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from class path resource [applicationContext.xml]
10 juil. 2009 13:41:58 org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.ClassPathXmlApplicationContext@ec16a4]: org.springframework.beans.factory.support.DefaultListableBeanFactory@a8c488
10 juil. 2009 13:41:58 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from class path resource [MQResources.properties]
10 juil. 2009 13:41:58 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@a8c488: defining beans [propertyConfigurer,jmsFactory,jmsQueue,jmsTemplate,jmsReceiver,jmsSender,jmsService]; root of factory hierarchy
Exception in thread "main" org.springframework.jms.UncategorizedJmsException: Uncategorized exception occured during JMS processing; nested exception is javax.jms.JMSException: MQJMS2005: Impossible de créer MQQueueManager pour 'nomDeMonHost
					:queueManager'; nested exception is com.ibm.mq.MQException: MQJE001 : MQException : Code achèvement 2, raison 2059
MQJE010 : Hôte inconnu : nomDeMonHost
 
	at org.springframework.jms.support.JmsUtils.convertJmsAccessException(JmsUtils.java:308)
	at org.springframework.jms.support.JmsAccessor.convertJmsAccessException(JmsAccessor.java:168)
	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:474)
	at org.springframework.jms.core.JmsTemplate.send(JmsTemplate.java:539)
	at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:617)
	at org.springframework.jms.core.JmsTemplate.convertAndSend(JmsTemplate.java:609)
	at org.home.test.JmsSender.sendMesage(JmsSender.java:17)
	at org.home.test.JmsServiceImpl.process(JmsServiceImpl.java:26)
	at org.home.test.App.main(App.java:14)
Caused by: javax.jms.JMSException: MQJMS2005: Impossible de créer MQQueueManager pour 'nomDeMonHost
					:queueManager'
	at com.ibm.mq.jms.services.ConfigEnvironment.newException(ConfigEnvironment.java:586)
	at com.ibm.mq.jms.MQConnection.createQM(MQConnection.java:2082)
	at com.ibm.mq.jms.MQConnection.createQMNonXA(MQConnection.java:1496)
	at com.ibm.mq.jms.MQQueueConnection.<init>(MQQueueConnection.java:150)
	at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:185)
	at com.ibm.mq.jms.MQQueueConnectionFactory.createQueueConnection(MQQueueConnectionFactory.java:112)
	at com.ibm.mq.jms.MQQueueConnectionFactory.createConnection(MQQueueConnectionFactory.java:1050)
	at org.springframework.jms.connection.SingleConnectionFactory.doCreateConnection(SingleConnectionFactory.java:343)
	at org.springframework.jms.connection.SingleConnectionFactory.initConnection(SingleConnectionFactory.java:290)
	at org.springframework.jms.connection.SingleConnectionFactory.createConnection(SingleConnectionFactory.java:227)
	at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:184)
	at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:461)
	... 6 more
Mon fichier de config est le suivant:

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
 
	<!-- ConnectionFactory -->
	<bean id="jmsFactory"
		class="org.springframework.jms.connection.SingleConnectionFactory">
		<property name="targetConnectionFactory">
			<bean class="com.ibm.mq.jms.MQQueueConnectionFactory">
				<property name="hostName">
					<value>nomDeMonHost
					</value>
				</property>
				<property name="port">
					<value>numPort</value>
				</property>
				<property name="queueManager">
					<value>queueManager</value>
				</property>
				<property name="channel">
					<value>channel</value>
				</property>				
				<property name="transportType">
					<value>1</value>
				</property>
			</bean>
 
		</property>
	</bean>
 
	<bean id="jmsQueue" class="com.ibm.mq.jms.MQQueue">
		<property name="baseQueueName">
			<value>nomQueue
			</value>
		</property>
	</bean>
 
	<!-- template -->
	<bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate">
		<property name="connectionFactory">
			<ref bean="jmsFactory" />
		</property>
		<property name="defaultDestination" ref="jmsQueue"></property>
	</bean>
 
	<!-- Receiver -->
	<bean id="jmsReceiver" class="org.home.test.JmsReceiver">
		<property name="jmsTemplate">
			<ref bean="jmsTemplate" />
		</property>
	</bean>
 
	<!-- Sender -->
	<bean id="jmsSender" class="org.home.test.JmsSender">
		<property name="jmsTemplate">
			<ref bean="jmsTemplate" />
		</property>
	</bean>
 
 
	<bean id="jmsService" class="org.home.test.JmsServiceImpl">
		<property name="sender">
			<ref bean="jmsSender" />
		</property>
		<property name="receiver">
			<ref bean="jmsReceiver" />
		</property>
	</bean>
J'ai cherché des solutions sur le net.
Aussi, je me suis assurée que les bibliothèques ibm sont bien pr la version 6.
Que mes autres jars son compatibles avec mon JDK 1.5....
J'ai bien vérifié que la Queue fonctionne à travers un simple exemple d'envoi/réception utilisant la même Queue,au sein de la même application (==>mêmes jars,même config d'accès Queue)

Par contre je débute avec Spring, est ce qu'il y aurait un souci avec mon fichier de config?
Any other idea??

Merci pour toute aide !