|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MDB in oc4j |
« View previous topic :: View next topic » |
Author |
Message
|
sriram |
Posted: Tue Jul 22, 2008 12:55 pm Post subject: MDB in oc4j |
|
|
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 |
|
 |
sriram |
Posted: Tue Jul 22, 2008 1:08 pm Post subject: MDB in oc4j |
|
|
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 |
|
 |
George Carey |
Posted: Tue Jul 22, 2008 2:32 pm Post subject: oc4j sample |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
|
Back to top |
|
 |
George Carey |
Posted: Tue Jul 22, 2008 2:53 pm Post subject: MQ RA |
|
|
Knight
Joined: 29 Jan 2007 Posts: 500 Location: DC
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|