[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-13 Thread Leos.Bitto
"ataylor" wrote : anonymous wrote : Cool, it is nice to see that you guys from JBoss are willing to suggest a straight replacement of JBoss Microcontainer by Spring Framework | | I wouldnt say that, this is just something i was messing round with. | Well, I have actually suspected that

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-13 Thread timfox
"Leos.Bitto" wrote : | Cool, it is nice to see that you guys from JBoss are willing to suggest a straight replacement of JBoss Microcontainer by Spring Framework. Well.. we're not recommending a replacement of JBoss MC by Spring. But we also realise that a lot of people use Spring, or A.N.

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-13 Thread ataylor
anonymous wrote : Cool, it is nice to see that you guys from JBoss are willing to suggest a straight replacement of JBoss Microcontainer by Spring Framework I wouldnt say that, this is just something i was messing round with. anonymous wrote : Your example is missing the JMS objects needed at t

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-13 Thread Leos.Bitto
"ataylor" wrote : or If you want to run a full standalone server in spring use something like the following and make sure the JBM config files are available on the classpath | Cool, it is nice to see that you guys from JBoss are willing to suggest a straight replacement of JBoss Microcontain

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-13 Thread ataylor
or If you want to run a full standalone server in spring use something like the following and make sure the JBM config files are available on the classpath | http://www.springframework.org/schema/beans"; |xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; |xsi:schemaLoc

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-13 Thread Leos.Bitto
Because I have started this thread about embedding the JBoss Messaging server, here is my solution for everybody who would need it: | import java.util.HashMap; | import java.util.HashSet; | import java.util.Map; | import java.util.Set; | import org.jboss.messaging.core.config.Configura

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-13 Thread Leos.Bitto
"rkapur123" wrote : Hi Leos.bitto | | I have jboss SOA 4.3 ESB which has Jboss Messaging as messaging provoder. | | Using Spring framework's MDP (message driven pojo) - I want to listen on "sampleQueue". As per springframework 2.5 guide - MDP is a simple class which implements javax.jms

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-10 Thread rkapur123
Hi Leos.bitto I have jboss SOA 4.3 ESB which has Jboss Messaging as messaging provoder. Using Spring framework's MDP (message driven pojo) - I want to listen on "sampleQueue". As per springframework 2.5 guide - MDP is a simple class which implements javax.jms.MessageListener onMessage(). I have

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread ataylor
anonymous wrote : We are misunderstood in this case. I need to create the topic, which this method does not accomplish - let me quote the specification: Yeah i know the spec :), i was assuming you had previously created the destination, this was so you could look it up with out using vendor spe

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread timfox
OK fine, you should just be able to instantiate it directly as mentioned previously :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241115#4241115 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241115 ___

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread Leos.Bitto
"timfox" wrote : "Leos.Bitto" wrote : | | Nice, but what is "session"? | | http://java.sun.com/javaee/5/docs/api/javax/jms/Session.html We are misunderstood in this case. I need to create the topic, which this method does not accomplish - let me quote the specification: Note that this

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread timfox
"Leos.Bitto" wrote : | Nice, but what is "session"? http://java.sun.com/javaee/5/docs/api/javax/jms/Session.html View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241110#4241110 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=re

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread Leos.Bitto
"ataylor" wrote : also you can use | | | | session.createTopic(topicName); | | Nice, but what is "session"? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241107#4241107 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread Leos.Bitto
"jmesnil" wrote : | Regarding jbm-jms.xml, it will be picked up if it is in the classpath. Could you place it in a separate directory and add it to the classpath of the other server instance instead? | Sure, I could do that. My setup was a bit messy, because I was just experimenting with

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread ataylor
also you can use | session.createTopic(topicName); | View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241089#4241089 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241089 ___

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread jmesnil
"Leos.Bitto" wrote : Thanks a lot for all the quick answers! Navigating me to JMSServerManagerImpl was exactly what I needed. I do not like JMSServerManagerImpl much for embedding, though, because of two reasons. First is that it somehow automagically picks the file jbm-jms.xml, which in my case

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread timfox
Hi Leos- JMSServerManager is only really used for loading JMS queue, topic and connection factory descriptions from jbm-jms.xml into JNDI and also registering them with JMX. The JMX call to createTopic in JMSServerManager basically just does that. (Actually I think we should rename them to "dep

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread Leos.Bitto
Hi Tim, "timfox" wrote : | JMSServerManager is only really used for loading JMS queue, topic and connection factory descriptions from jbm-jms.xml into JNDI and also registering them with JMX. The JMX call to createTopic in JMSServerManager basically just does that. (Actually I think we shoul

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-07-01 Thread Leos.Bitto
Thanks a lot for all the quick answers! Navigating me to JMSServerManagerImpl was exactly what I needed. I do not like JMSServerManagerImpl much for embedding, though, because of two reasons. First is that it somehow automagically picks the file jbm-jms.xml, which in my case belongs to a differ

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-06-30 Thread timfox
To clarify Jeff's answer a bit: The MessagingServer you created is a "core" server. A core server knows nothing about JMS - it's completely JMS agnostic, therefore it knows nothing about topics. This is discussed in the user manual: http://www.jboss.org/file-access/default/members/jbossmessagi

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-06-30 Thread ataylor
When using the core API there i s no such thing as a topic, we only deal with queues. Basically a topic consists of an address with multiple queues bound to it where each queue will have a consumer(subscriber). If you are using JMS then i would recommend taking a look at the JMSServerManager, y

[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?

2009-06-30 Thread jmesnil
The queue you created is a core queue. The preferred way to create JMS destinations is using the JMSServerManagerImpl on top of the MessagingServer you created: | Configuration configuration = new ConfigurationImpl(); | configuration.setPersistenceEnabled(false); | configuration.setSecu