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 and EAP 6 (JBoss 7) without annotations?

Post new topic  Reply to topic
 MDB and EAP 6 (JBoss 7) without annotations? « View previous topic :: View next topic » 
Author Message
camauz
PostPosted: Mon Jul 16, 2012 5:59 am    Post subject: MDB and EAP 6 (JBoss 7) without annotations? Reply with quote

Acolyte

Joined: 20 Aug 2007
Posts: 52
Location: Mojan, Italy

Dear all,
the official documentation of Red Hat Enterprise Application Platform 6 (JBoss 7.1.2)
https://access.redhat.com/knowledge/docs/en-US/JBoss_Enterprise_Application_Platform/6/html/Administration_and_Configuration_Guide/Deploy_the_WebSphere_MQ_Resource_Adapter.html
explains how to configure a Message Driven Bean inside Red Hat EAP 6 using WebSphere MQ and Java annotations.
Unfortunately Java annotations are static information and a JNDI lookup of the same values would be better from a management point of view; our tests shown the JNDI lookup - specifying the values in "standalone.xml"/"domain.xml" - does not work properly.
Is there anyone out there with the same issue?
Is there anyone with a similar issue using a different JEE container?
Thanks in advance
Ch.
Back to top
View user's profile Send private message
camauz
PostPosted: Mon Jul 16, 2012 6:46 am    Post subject: Reply with quote

Acolyte

Joined: 20 Aug 2007
Posts: 52
Location: Mojan, Italy

There are two useful links:
the "solution" for JBoss 5.1 (EAP 5) https://community.jboss.org/message/620792
the "lack of a solution" for JBoss 7 (EAP 6) https://community.jboss.org/message/737377

The issue seems to be really tough, but it might be some clever guy of this forum found out a different solution to the problem...

Ch.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Mon Jul 16, 2012 6:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
Location: LI,NY

Set it up as a foreign JMS with a file based JNDI provider...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
camauz
PostPosted: Tue Jul 17, 2012 2:17 am    Post subject: Reply with quote

Acolyte

Joined: 20 Aug 2007
Posts: 52
Location: Mojan, Italy

fjb_saper wrote:
Set it up as a foreign JMS with a file based JNDI provider...

Could you point me to some specific documentation? I was not able to find how I could configure a WSMQ MDB to point a specific (file based) JNDI.
Thanks in advance
Ch.
Back to top
View user's profile Send private message
camauz
PostPosted: Tue Jul 17, 2012 5:44 am    Post subject: Reply with quote

Acolyte

Joined: 20 Aug 2007
Posts: 52
Location: Mojan, Italy

This interesting thread https://community.jboss.org/message/715738 asserts:

To my knowledge, there is no way to force the MDB to use activation configuration parameters which are somehow populated from standalone.xml. Remember, the MDB uses the IBM WebSphereMQ JCA RA which knows nothing about JBoss AS implementation details. It simply uses JCA, and the only standard ways to set activation configuration properties for an MDB are with annotations or ejb-jar.xml.
(ejb-jar.xml, in some environments, does have the same drawbacks of the annotations because it's versioned in the same way of the source code)

fjb_saper wrote:
Set it up as a foreign JMS with a file based JNDI provider...

Do you think there is a different, WebSphere MQ specific way, to pick-up the configuration from a file based JNDI provider?

Thanks in advance
Ch.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Jul 18, 2012 7:53 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

You create the QCF to point to a file based JNDI, you use MQ to create the file that contains the JNDI information.

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/jm10790_.htm
Back to top
View user's profile Send private message
camauz
PostPosted: Wed Jul 18, 2012 10:38 pm    Post subject: Reply with quote

Acolyte

Joined: 20 Aug 2007
Posts: 52
Location: Mojan, Italy

mqjeff wrote:
You create the QCF to point to a file based JNDI, you use MQ to create the file that contains the JNDI information.

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/jm10790_.htm

Thanks!
We will try it and I will report the results.
Ch.
Back to top
View user's profile Send private message
camauz
PostPosted: Mon Aug 27, 2012 7:22 am    Post subject: Reply with quote

Acolyte

Joined: 20 Aug 2007
Posts: 52
Location: Mojan, Italy

camauz wrote:
mqjeff wrote:
You create the QCF to point to a file based JNDI, you use MQ to create the file that contains the JNDI information.

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/jm10790_.htm

Thanks!
We will try it and I will report the results.
Ch.


The magic seems to be in utility command "JMSAdmin" (JMSAdmin.bat) and JMSAdmin.config.

Some more useful links:
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/jm10810_.htm
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/jm10850_.htm
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/jm10840_.htm
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/jm10870_.htm
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/jm10880_.htm
and last but not least, all the configurable properties:
http://publib.boulder.ibm.com/infocenter/wmqv7/v7r1/topic/com.ibm.mq.doc/jm10910_.htm

There's a chance we will reach the target!
Ch.F.
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 » MDB and EAP 6 (JBoss 7) without annotations?
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.