Author |
Message
|
AkankshA |
Posted: Tue Nov 20, 2007 8:50 pm Post subject: Weblogic 9.2 & MQ6 |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
Hiye,
Kindly forgive my ignorance as java is completely alien to me..
I have a requirement where in my application would be sending messages on weblogic queue and the receiving application needs it on MQ queue.
I presume we can achieve this using local bindings as i have both weblogic and MQ server on the same machine. Am i correct in saying that???
Is that the best way to achieve this or do i need to go for bridges ?? (not sure of things again )
Kindly provide me some inputs in this regard....  _________________ Cheers |
|
Back to top |
|
 |
RogerLacroix |
Posted: Tue Nov 20, 2007 9:00 pm Post subject: Re: Weblogic 9.2 & MQ6 |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
AkankshA wrote: |
I have a requirement where in my application would be sending messages on weblogic queue and the receiving application needs it on MQ queue.
I presume we can achieve this using local bindings as i have both weblogic and MQ server on the same machine. Am i correct in saying that???
Is that the best way to achieve this or do i need to go for bridges ?? (not sure of things again) |
Just setup your app to use MQ as a foreign JMS provider. Do a search here and you will find lots of hits.
Regards,
Roger Lacroix
Capitalware Inc. _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
Back to top |
|
 |
AkankshA |
Posted: Tue Nov 20, 2007 9:17 pm Post subject: Re: Weblogic 9.2 & MQ6 |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
[quote="RogerLacroix]Just setup your app to use MQ as a foreign JMS provider. Do a search here and you will find lots of hits.
[/quote]
That does not seem possible... My app is deployed on weblogic and understand weblogic q and qcf.. etc etc
i have to do something at my end ... _________________ Cheers |
|
Back to top |
|
 |
PeterPotkay |
Posted: Wed Nov 21, 2007 6:47 am Post subject: Re: Weblogic 9.2 & MQ6 |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
|
Back to top |
|
 |
RogerLacroix |
Posted: Wed Nov 21, 2007 9:57 am Post subject: Re: Weblogic 9.2 & MQ6 |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
|
Back to top |
|
 |
AkankshA |
Posted: Mon Dec 10, 2007 3:51 am Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
back to issue and still stuck
i created q, qcf using jmsadmin n mq explorer and hence .binding file is generated
at weblogic end i am facing issues while putting the message using sample mdb....
now i understand this is a concern with weblogic but unfortunately weblogic guys could not gimme an answer so i am back here
To those of you who have tried / worked with weblogic..
The exception is as below:
Code: |
JNDI Problem:
javax.naming.NameNotFoundException: While trying to look up comp/env/jms/WLSenderQCF in /app
/ejb/WLSampleMDB.jar#SampleMDBBean.; remaining name 'comp/env/jms/WLSenderQCF'
at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.j
ava:1139)
at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:14
2)
at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:269)
at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:362)
at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper
.java:45)
at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.ibm.WLSampleMDB.SampleMDBBean.putMessage(SampleMDBBean.java:93)
at com.ibm.WLSampleMDB.SampleMDBBean.onMessage(SampleMDBBean.java:76)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java
:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:861)
at com.ibm.mq.jms.contact admin.run(contact admin.java:401)
at java.lang.Thread.run(Thread.java:595)
Exception:
java.lang.NullPointerException
at com.ibm.WLSampleMDB.SampleMDBBean.putMessage(SampleMDBBean.java:105)
at com.ibm.WLSampleMDB.SampleMDBBean.onMessage(SampleMDBBean.java:76)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java
:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:861)
at com.ibm.mq.jms.contact admin.run(contact admin.java:401)
at java.lang.Thread.run(Thread.java:595)
Closing Connection
Exception:
java.lang.NullPointerException
at com.ibm.WLSampleMDB.SampleMDBBean.putMessage(SampleMDBBean.java:121)
at com.ibm.WLSampleMDB.SampleMDBBean.onMessage(SampleMDBBean.java:76)
at weblogic.ejb.container.internal.MDListener.execute(MDListener.java:429)
at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(MDListener.java
:335)
at weblogic.ejb.container.internal.MDListener.onMessage(MDListener.java:291)
at com.ibm.mq.jms.MQQueueReceiver.receiveAsync(MQQueueReceiver.java:861)
at com.ibm.mq.jms.contact admin.run(contact admin.java:401)
at java.lang.Thread.run(Thread.java:595) |
It says name not found but i find my JNDI mapping correct ..
provide me directions to look into.. _________________ Cheers |
|
Back to top |
|
 |
ling_71_99 |
Posted: Mon Dec 10, 2007 11:14 am Post subject: How is your weblogic-ejb-jar.xml? |
|
|
 Novice
Joined: 19 Nov 2007 Posts: 11 Location: Canada
|
|
Back to top |
|
 |
AkankshA |
Posted: Mon Dec 10, 2007 7:45 pm Post subject: |
|
|
 Grand Master
Joined: 12 Jan 2006 Posts: 1494 Location: Singapore
|
that referes to weblogic 8 and i am with 9.2
with weblogic 8.1 i could successfully execute the tutorial but am facing concerns with 9.2
Moreover this tutorial refers for MQ weblogic transactional communication  _________________ Cheers |
|
Back to top |
|
 |
atheek |
Posted: Tue Dec 11, 2007 1:38 am Post subject: |
|
|
 Partisan
Joined: 01 Jun 2006 Posts: 327 Location: Sydney
|
Have you configured the foreign jms server in admin console?
If so, Goto Console -><JMS Module Name>->ForeignJmsServer Name ->ConnectionFactories
comp.env.jms.WLSenderQCF should be listed under Local JNDI Name column.
If not found, that is the problem. Create a new connection factory with local jndi name comp.env.jms.WLSenderQCF and remote jndi name , the name of the connection factory you have defined with def qcf() command in jmsadmin.
Also ensure that the JNDI Connection URL in Foreign jms server configuration page is set to the location of .bindings file.
(e.g. file:\\C:\JNDI-Directory)
-Atheek |
|
Back to top |
|
 |
|