2011-08-09 5 views
0

내 j2EE 응용 프로그램은 현재 ServiceMix에서 실행 중입니다. 이제 JMS를 내 앱에 추가하려고합니다. 응용 프로그램은 MQSeries에있는 큐로 /에서 JMS 메시지를 보내거나받을 수 있어야합니다. 내가하고 싶은 무엇MQSeries와 함께 작동하도록 serviceMix에서 jndi.xml을 구성하십시오.

mq.hostname=10.3.6.19 
mq.channel=CHANNEL 
mq.queueManager=QManager 
mq.port=1422 

은 다음과 같습니다

1. Create a jndi.xml file and do configuration for jms stuff. 
2. my app will initialize the context, look up jndi name, and create a connection, queueManager, queue. .etc 
3. Develop send and receive methods. 

내 질문은 : 를 어떻게 1, 2 단계를 수행 말해 수 있습니다. (ServiceMix에의 JNDI 내부의 스크립트는 바람둥이의 JNDI 다른 사람과 diffrent입니다. 봄을 기반으로 JNDI 공급자를 사용 ServiceMix에. http://servicemix.apache.org/jndi-configuration.html) 난 그냥 웹 로직과 비슷한으로 실행

답변

1

. 다음 링크는 spring-dm을 사용하여 websphere와 통합합니다. 또한 다음 단계로 넘어가고 낙타를 믹스에 추가합니다.

(이 내가 웹 로직 항아리와 함께 한 문제입니다)는 WebSphere 항아리에서 InitialContextFactory를로드 할 때 스프링 DM을 사용하지 않고 http://lowry-techie.blogspot.com/2010/11/camel-integration-with-websphere-mq.html

, 당신은 클래스 로더 문제로 실행할 수 있습니다