[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

MDB 3.0 Queue Names

Posted on 2009-05-04
2
Medium Priority
?
348 Views
Last Modified: 2013-12-02
Hi,

I am using MDB 3.0 using annotations to define queue names and deploying using JBOSS AS 4.2.3.
I am looking for a way to define these queue names in some configuration files so that to change the queue names no change in code should be required.

TIA.

Thanks,
sri
0
Comment
Question by:srinitin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 19

Accepted Solution

by:
ramazanyich earned 500 total points
ID: 24306054
you can do it in ejb-jar.xml file inside META-INF folder.


<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
                            http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
	version="3.0">
 
	<description>
		<![CDATA[No Description.]]>
	</description>
	<display-name>My MDB bean</display-name>
 
	<enterprise-beans>
		<message-driven>
			<ejb-name>MDBName</ejb-name>
			<ejb-class>
				yout.mdb.full.class.name
			</ejb-class>
			<transaction-type>Container</transaction-type>
			<activation-config>
				<activation-config-property>
					<activation-config-property-name>
						destinationType
					</activation-config-property-name>
					<activation-config-property-value>
						javax.jms.Queue
					</activation-config-property-value>
				</activation-config-property>
				<activation-config-property>
					<activation-config-property-name>
						acknowledgeMode
					</activation-config-property-name>
					<activation-config-property-value>
						AUTO_ACKNOWLEDGE
					</activation-config-property-value>
				</activation-config-property>
				<activation-config-property>
					<activation-config-property-name>
						destination
					</activation-config-property-name>
					<activation-config-property-value>
						queueName
					</activation-config-property-value>
				</activation-config-property>
			</activation-config>
		</message-driven>
		
	</enterprise-beans>
 
 
</ejb-jar>

Open in new window

0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Upgrading Tomcat – There are a couple of methods to upgrade Tomcat is to use The Apache Installer is to download and unzip and run the services.bat remove|install Tomcat6 Because of the App that we are working with, we can only use Tomcat 6.…
Introduction This article is the first of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article explains our test automation goals. Then rationale is given for the tools we use to a…
The viewer will learn how to implement Singleton Design Pattern in Java.
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question