File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss/WildFly and the fly likes Configuring an External JMS datasource provider by queuemanager queue...on JBoss AS 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "Configuring an External JMS datasource provider by queuemanager queue...on JBoss AS 5.0" Watch "Configuring an External JMS datasource provider by queuemanager queue...on JBoss AS 5.0" New topic
Author

Configuring an External JMS datasource provider by queuemanager queue...on JBoss AS 5.0

Maximillien Robespierre
Greenhorn

Joined: Jan 19, 2011
Posts: 5
Hi to all!

I have some problems about set up a configuration that points to existing queue.

I have to do the porting of my back-end architecture from websphere as to jboss as 5.0.

I have just set up the oracle-ds without any particular problem.

I have this xml configuration files about my queue and relative queue manager.

Queue:
queue.manager=XYZ
queue.name=ABC.PQR
queue.target.isjms=true
queue.msg.priority=-1
queue.msg.timetolive=-1
queue.msg.receivetimeout=2000
queue.jndi=jms/myQUEUE_1

QueueManager:
queuemgr.name=ABCDE
queuemgr.host=name of the host
queuemgr.port=1416
queuemgr.channelname= name of the channel
queuemgr.jndi=jndi name

Is there anyone than can suggest to me how i can port this configuration to jboss as 5.0?

how can i configure destinations-service.xml with the informations listed above???

Thanks in advance!!
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

destinations-service.xml is used to tell JBoss the queues/topics need to be created in order to deploy the applications. Go through the xml file and see how a queue/topic has been created and create your own queue/topic in the same manner.
Maximillien Robespierre
Greenhorn

Joined: Jan 19, 2011
Posts: 5
uttam kumar wrote:destinations-service.xml is used to tell JBoss the queues/topics need to be created in order to deploy the applications. Go through the xml file and see how a queue/topic has been created and create your own queue/topic in the same manner.


I have just see the contents of xml file, but there aren't any examples that can explain me what i have to do for configuring a queue.

I don't know how to set attributes in mbean...

<mbean code="org.jboss.jms.server.destination.QueueService"
name="jboss.messaging.destination:service=Queue,name=MyQueue"
xmbean-dd="xmdesc/Queue-xmbean.xml">
<depends optional-attribute-name="ServerPeer">
jboss.messaging:service=ServerPeer
</depends>
<depends>jboss.messaging:service=PostOffice</depends>
<attribute name="JNDIName">queue/MyQueue</attribute>
<attribute name="RedeliveryDelay">10000</attribute>
<attribute name="MaxDeliveryAttempts">3</attribute>
</mbean>

This example does not explain how to configure a queue like mine.

Can you write me an example where you put my custom attribute (listed in the previous post above) in the mbean?

Thanks
uttam kumar
Ranch Hand

Joined: Jan 27, 2009
Posts: 128

destination-service.xml is just to tell the name and JNDI of queue/topic. Rest all configurations you need to check in other files inside <JBOSS_HOME>\server\<SERVER_TYPE>\deploy\messaging folder.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10033
    
163

Also remember that there may not be a one-to-one mapping between the JBoss messaging implementation and the Websphere one. So you'll have to figure out what each attribute is meant to do and then check (or ask) for the equivalent attribute in JBoss Messaging implementation.

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Configuring an External JMS datasource provider by queuemanager queue...on JBoss AS 5.0