This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Maximillien Robespierre
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 128
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 128
Eclipse IDE Java Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic