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 » MDB in oc4j

Post new topic  Reply to topic
 MDB in oc4j « View previous topic :: View next topic » 
Author Message
sriram
PostPosted: Tue Jul 22, 2008 12:55 pm    Post subject: MDB in oc4j Reply with quote

Newbie

Joined: 27 Jun 2008
Posts: 9

Hi,
My environement details

App server : OC4J 10.1.3 JMS Provider : Websphere MQ (installed in the same server where my app server is located)

From servlet using JMS i can able to send a message to my queue my.sample and connection factory my.cf
I am using com.sun.jndi.fscontext.RefFSContextFactory as context and file:/opt/mqm/java/bin/JNDI-Directory as provider url to get the jndi look up for above mentioned queue and connection factory.

I also having one MDB to listen for the message in the queue my.sample. Though i can able to deploy that ejb jar in OC4j, the onMessage() inside my MDB is not getting called. Infact ejbCreat(), setMessageDrivenContext() methods are also not getting called. So basically though my mdb is active and present in the server, the container is not recongnizing my MDB. Let me know the step by step procedure to configure my MDB.

Note : I am not using JCA, ra.xml here, as i don't want to use resource provider. By using the JNDI binding file under file:/opt/mqm/java/bin/JNDI-Directory itself i got the connection to websphere MQ and can able to send the message to my queue using servlet. So I would like to use the same way for my MDB also.

Let me know is this approach is correct. if not adivce me what to do?
Back to top
View user's profile Send private message
sriram
PostPosted: Tue Jul 22, 2008 1:08 pm    Post subject: MDB in oc4j Reply with quote

Newbie

Joined: 27 Jun 2008
Posts: 9

Hi,
i would like to include this also to my above question. In my error log i am getting the below exception. Not sure why?

WARNING J2EE EJB-02009 [my-ejb:my-ejb:MYMDB] Unexpected exception by JMS provider: javax.jms.MessageEOFException: initializeConnection.

2008-07-22 15:58:44.486 WARNING J2EE EJB-02014 [my-ejb:my-ejb:MYMDB] All message consumer threads have terminated due to provider errors, stopping MDB.
Back to top
View user's profile Send private message
George Carey
PostPosted: Tue Jul 22, 2008 2:32 pm    Post subject: oc4j sample Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Have you checked this sample to make sure all that is required has been done:

http://www.oracle.com/technology/tech/java/oc4j/1003/how_to/jcajmsmq/doc/readme.html
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
George Carey
PostPosted: Tue Jul 22, 2008 2:53 pm    Post subject: MQ RA Reply with quote

Knight

Joined: 29 Jan 2007
Posts: 500
Location: DC

Also might want to read here.

http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj40010_.htm
_________________
"Truth is ... grasping the virtually unconditioned",
Bernard F. Lonergan S.J.
(from book titled "Insight" subtitled "A Study of Human Understanding")
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » MDB in oc4j
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.