• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!!
 
Ranch Hand
Posts: 128
Eclipse IDE Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
reply
    Bookmark Topic Watch Topic
  • New Topic