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 » Weblogic 9.2 & MQ6

Post new topic  Reply to topic
 Weblogic 9.2 & MQ6 « View previous topic :: View next topic » 
Author Message
AkankshA
PostPosted: Tue Nov 20, 2007 8:50 pm    Post subject: Weblogic 9.2 & MQ6 Reply with quote

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
View user's profile Send private message Visit poster's website
RogerLacroix
PostPosted: Tue Nov 20, 2007 9:00 pm    Post subject: Re: Weblogic 9.2 & MQ6 Reply with quote

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
View user's profile Send private message Visit poster's website
AkankshA
PostPosted: Tue Nov 20, 2007 9:17 pm    Post subject: Re: Weblogic 9.2 & MQ6 Reply with quote

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
View user's profile Send private message Visit poster's website
PeterPotkay
PostPosted: Wed Nov 21, 2007 6:47 am    Post subject: Re: Weblogic 9.2 & MQ6 Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

AkankshA wrote:
Kindly forgive my ignorance as java is completely alien to me..


Read this:
http://www.elink.ibmlink.ibm.com/publications/servlet/pbi.wss?CTY=US&FNC=SRX&PBL=SC34659102

Use the JMS Admin tool (explained in the above doc) to create a .bindings file that contains all the q and qcf details that point to the MQ objects.

Your JMS app will reference this .bindings file.
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Wed Nov 21, 2007 9:57 am    Post subject: Re: Weblogic 9.2 & MQ6 Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

AkankshA wrote:
That does not seem possible... My app is deployed on weblogic and understand weblogic q and qcf.. etc etc

RTM

BEA Dev2Dev
http://dev2dev.bea.com/pub/a/2004/01/jmsproviders.html

Using Foreign JMS Providers with WebLogic Server
http://ftpna2.bea.com/pub/downloads/jmsproviders.pdf


Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
AkankshA
PostPosted: Mon Dec 10, 2007 3:51 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ling_71_99
PostPosted: Mon Dec 10, 2007 11:14 am    Post subject: How is your weblogic-ejb-jar.xml? Reply with quote

Novice

Joined: 19 Nov 2007
Posts: 11
Location: Canada

Here is a article reference to this:
http://www-128.ibm.com/developerworks/websphere/library/techarticles/0604_kesavan/0604_kesavan.html

By the way, weblogic 9 need to save the changes before it affect.

Hope it is helpful.
_________________
Mike
Back to top
View user's profile Send private message
AkankshA
PostPosted: Mon Dec 10, 2007 7:45 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
atheek
PostPosted: Tue Dec 11, 2007 1:38 am    Post subject: Reply with quote

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
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 » Weblogic 9.2 & MQ6
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.