• 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

Running JMS in JBoss

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello All,
I have installed JBoss App server 4.0 on my system. I have a sample Pub/Sub program, which I have compiled by putting JNDI and JMS JAR files in my CLASSPATH.

Before running the programs, I need to create the ConnectionFactory and Destination administered objects and place them in the JNDI namespace.

I have gone thru JBoss documentation in vain.
Can anybody help here.

Thanks!
Reema
 
Ranch Hand
Posts: 8945
Firefox Browser Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Go to server\default\deploy\jms\jbossmq-destinations-service.xml. You find some Q and topics already defined.
 
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
This is an extract from the QuickStart guide of JBoss(i dont remember the url from where i downloaded this, from the jboss sites):

Configuring JBoss JMS Objects:
All JBoss JMS object such as the ConnectionFactorys, Topics and Queues are configured via a JMX MBean10. In addition to the
standard JMS objects, there are also JMX MBean that let you configure the JBossMQ kernel. The core, kernel level, MBeans are
configured in the JBossMQ-service.xml file. Unless you are an advanced user, you should not have to edit this file. If you
undeploy the JBossMQ-service.xml file, you in effect shutdown JBossMQ.
The deployed JBossMQ-destinations-service.xml file exists for you to define the destinations that your applications need. Most users
will have to edit this file to create new Queues or Topics. An example of a destination definition in the JBossMQ-destinationsservice.
xml is shown in Listing 11-3, the definition for a Queue Named "testQueue" and in Listing 11-4, the definition for a Topic
Named "testTopic". As you can see from the examples, role bases security authorization can be assigned on a Destination by
destination basis.

Listing 11-3,
the definition for a Queue Named "testQueue"

<mbean code="org.jboss.mq.server.QueueManager" name="jboss.mq.destination:service=Queue,name=testQueue">
<depends optional-attributename="JBossMQService">jboss.mq:service=Server</depends>
<depends optional-attributename="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="noacc" read="false" write="false" create="false"/>
</security>
</attribute>
</mbean>
Topic config, is VERY similar to the Queue config

Listing 11-4,
the definition for a Topic Named "testTopic"
<mbean code="org.jboss.mq.server.TopicManager"name="jboss.mq.destination:service=Topic,name=testTopic">
<depends optional-attributename="JBossMQService">jboss.mq:service=Server</depends>
<depends optional-attributename="SecurityManager">jboss.mq:service=SecurityManager</depends>
<attribute name="SecurityConf">
<security>
<role name="guest" read="true" write="true"/>
<role name="publisher" read="true" write="true" create="false"/>
<role name="durpublisher" read="true" write="true" create="true"/>
</security>
</attribute>
</mbean>


[ March 21, 2006: Message edited by: jaikiran pai ]
 
Reema Patel
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
To begin with, I wud like to thank the ppl who replied 2 my query.
Well 2 b honest all the replies posted here where of no use cause it all went over my head
I have tried Sun's JMS tutorial, its gud but when it comes 2 practial implementation even it diddn't work out.

I have a very simple prob I have complied the Pub/Sub files and want to run inside a container. It's that simple, I have no idea abt the XML files ppl pointed out. I'm just a beginner. Can anybody help.
 
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
May be you'll have better luck in the JBoss forum. I'm tossing this thread over there...
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic