[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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.MessageListener onMessage(). | I do not use any support for JMS from Spring, because my trust in their JMS code vanished when I found out how terribly inefficient is their JmsTemplate. So I have studied the JMS 1.1 specification and wrote the necessarry code myself - it was not difficult, and I got a code which performs much better. rkapur123 wrote : | I have the class and specified the following in applicationContext.xml file | | | | bean id=messageListener class=com.acme.SpringMDP / | | | | bean id=listenerContainer | | class=org.springframework.jms.listener.DefaultMessageListenerContainer | | property name=concurrentConsumers value=5 / | | property name=destination ref=destination / | | property name=connectionFactory ref=connectionFactory / | | property name=messageListener ref=messageListener / | | /bean | | | | but how should I define connectionFactory and destination in spring context file. | There are more possibilities, but the most versatile one seems to be to use JNDI - that actually makes your code compatible with most JMS providers, not only JBoss Messaging. Check the chapter 5.3. JNDI configuration of the JBoss Messaging documentation and use something like this (not tested): | bean name=jbmJndiEnv | props | prop key=java.naming.factory.initialorg.jnp.interfaces.NamingContextFactory/prop | prop key=java.naming.provider.urljnp://myhost:1099/prop | prop key=java.naming.factory.url.pkgsorg.jboss.naming:org.jnp.interfaces/prop | /props | /property | | bean id=connectionFactory class=org.springframework.jndi.JndiObjectFactoryBean | property name=jndiEnvironment ref=jbmJndiEnv / | property name=lookupOnStartup value=false/ | property name=proxyInterface value=javax.jms.ConnectionFactory/ | property name=jndiName value=ConnectionFactory / | /bean | | bean id=destination class=org.springframework.jndi.JndiObjectFactoryBean | property name=jndiEnvironment ref=jbmJndiEnv / | property name=lookupOnStartup value=false/ | property name=proxyInterface value=javax.jms.Destination / | property name=jndiName value=/queue/ExampleQueue / | /bean | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243200#4243200 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243200 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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.Configuration; | import org.jboss.messaging.core.config.TransportConfiguration; | import org.jboss.messaging.core.config.impl.ConfigurationImpl; | import org.jboss.messaging.core.remoting.impl.invm.InVMAcceptorFactory; | import org.jboss.messaging.core.remoting.impl.invm.TransportConstants; | import org.jboss.messaging.core.server.Messaging; | import org.jboss.messaging.core.server.MessagingServer; | import org.jboss.messaging.jms.JBossQueue; | import org.jboss.messaging.jms.JBossTopic; | import org.jboss.messaging.utils.SimpleString; | | public class EmbeddedServer { | | private final MessagingServer server; | | public EmbeddedServer() { | final SetTransportConfiguration transports = new HashSetTransportConfiguration(); | transports.add(new TransportConfiguration(InVMAcceptorFactory.class.getName())); | server = createMessagingServer(transports); | } | | public EmbeddedServer(int serverID) { | final MapString,Object params = new HashMapString,Object(); | params.put(TransportConstants.SERVER_ID_PROP_NAME, serverID); | final SetTransportConfiguration transports = new HashSetTransportConfiguration(); | transports.add(new TransportConfiguration(InVMAcceptorFactory.class.getName(), params)); | server = createMessagingServer(transports); | } | | public static MessagingServer createMessagingServer(SetTransportConfiguration transports) { | final Configuration configuration = new ConfigurationImpl(); | configuration.setPersistenceEnabled(false); | configuration.setSecurityEnabled(false); | configuration.setAcceptorConfigurations(transports); | return Messaging.newMessagingServer(configuration); | } | | public void start() throws Exception { | server.start(); | } | | public void stop() throws Exception { | server.stop(); | } | | public JBossQueue createQueue(String name, boolean temporary) throws Exception { | final SimpleString q = JBossQueue.createAddressFromName(name); | server.createQueue(q, q, null, false, temporary); | return new JBossQueue(name); | } | | public JBossQueue createQueue(String name) throws Exception { | return createQueue(name, false); | } | | public JBossQueue createTemporaryQueue(String name) throws Exception { | return createQueue(name, true); | } | | public JBossTopic createTopic(String name, boolean temporary) throws Exception { | final SimpleString t = JBossTopic.createAddressFromName(name); | server.createQueue(t, t, new SimpleString(__JBMX=-1), false, temporary); | return new JBossTopic(name); | } | | public JBossTopic createTopic(String name) throws Exception { | return createTopic(name, false); | } | | public JBossTopic createTemporaryTopic(String name) throws Exception { | return createTopic(name, true); | } | } | You need javax.jms.(XA)ConnectionFactory, too: | import java.util.HashMap; | import java.util.Map; | import org.jboss.messaging.core.config.TransportConfiguration; | import org.jboss.messaging.core.remoting.impl.invm.InVMConnectorFactory; | import org.jboss.messaging.core.remoting.impl.invm.TransportConstants; | import org.jboss.messaging.jms.client.JBossConnectionFactory; | | public class InVMConnector { | | public static final String DEFAULT_NAME = InVMConnectorFactory.class.getName(); | | public static JBossConnectionFactory createJBossConnectionFactory() { | return createJBossConnectionFactory(DEFAULT_NAME); | } | | public static JBossConnectionFactory createJBossConnectionFactory(String className) { | final TransportConfiguration transportConfiguration = | new TransportConfiguration(className); | return new JBossConnectionFactory(transportConfiguration); | } | | public static JBossConnectionFactory createJBossConnectionFactory(int serverID) { | return createJBossConnectionFactory(serverID, DEFAULT_NAME); | } | | public static JBossConnectionFactory createJBossConnectionFactory(int serverID, String className) { | final MapString,Object connectionParams = new HashMapString,Object(); | connectionParams.put(TransportConstants.SERVER_ID_PROP_NAME, serverID); | final TransportConfiguration transportConfiguration = | new
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 ?xml version=1.0 encoding=UTF-8? | beans xmlns=http://www.springframework.org/schema/beans; |xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; |xsi:schemaLocation=http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd; | |bean name=messagingServer class=org.jboss.messaging.core.server.impl.MessagingServerImpl init-method=start destroy-method=stop | constructor-arg ref=Configuration/ | constructor-arg ref=JBMSecurityManager/ |/bean | |bean name=Configuration class=org.jboss.messaging.core.config.impl.FileConfiguration init-method=start destroy-method=stop/ | |bean name=JBMSecurityManager class=org.jboss.messaging.core.security.impl.JBMSecurityManagerImpl/ | | | /beans View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243233#4243233 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243233 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 Microcontainer by Spring Framework. Your example is missing the JMS objects needed at the client side, though - at least javax.jms.(XA)ConnectionFactory and some javax.jms.Destination (Queue or Topic) would be needed, unless you want to use your core API directly. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243239#4243239 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243239 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 the client side, though - at least javax.jms.(XA)ConnectionFactory and some javax.jms.Destination (Queue or Topic) would be needed, unless you want to use your core API directly. These are defined in the jbm-configuration, jbm-jms.xml and jbm-users.xml files. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243241#4243241 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243241 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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. Other dependency injection framework and we want JBM to be flexible enough to work with all those :) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243244#4243244 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243244 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 the omission of JBoss Microcontainer in your example would be most probably considered a mistake by most RedHat-employed people. :-) ataylor wrote : | anonymous wrote : Your example is missing the JMS objects needed at the client side, though - at least javax.jms.(XA)ConnectionFactory and some javax.jms.Destination (Queue or Topic) would be needed, unless you want to use your core API directly. | | These are defined in the jbm-configuration, jbm-jms.xml and jbm-users.xml files. Sure, but that is where the server picks them. I wrote that your example (unlike mine) does not show how the client is supposed to reach these objects. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4243251#4243251 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4243251 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 the class and specified the following in applicationContext.xml file | | bean id=messageListener class=com.acme.SpringMDP / | | bean id=listenerContainer | class=org.springframework.jms.listener.DefaultMessageListenerContainer | property name=concurrentConsumers value=5 / | property name=destination ref=destination / | property name=connectionFactory ref=connectionFactory / | property name=messageListener ref=messageListener / | /bean but how should I define connectionFactory and destination in spring context file. Earlier you wrote: anonymous wrote : My application uses the ApplicationContext from Spring Framework, so I already have an XML configuration file, and it is easy to add few lines there to create the necessarry JMS queues and topics, using my simple class which calls your core API. The same is true for creating the JMS (XA)ConnectionFactory - no JNDI needed. I would really appreciate if you can tell how you configure connection with Jboss. kind regards, rishi View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4242905#4242905 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4242905 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 different server instance and therefore must not be used. Second is that it registers the queues and topics into JNDI (passing null as the secong argument to createTopic leads to NullPointerException) and I am trying to avoid JNDI in this case. So I have just borrowed a bit of your code from JMSServerManagerImpl.java and this works fine for me: final SimpleString t = JBossTopic.createAddressFromName(name); server.createQueue(t, t, new SimpleString(__JBMX=-1), true, false); It would be nice if you could make the String __JBMX=-1 available somewhere from your code. Maybe just change the private static final field REJECT_FILTER in JMSServerManagerImpl from private to public? Regarding using the core API directly instead of JMS - that is a possibility, of course. However, I am trying to stick with JMS, because that makes my code compatible with many other messaging implementations, too, instead of binding it tightly to JBoss Messaging. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241082#4241082 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241082 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 should rename them to deployTopic or bindTopic or something similar). | As soon as I was pointed to JMSServerManager I read the source code, suspected that I could live without JMSServerManager and it seems that it is really true. My application uses the ApplicationContext from Spring Framework, so I already have an XML configuration file, and it is easy to add few lines there to create the necessarry JMS queues and topics, using my simple class which calls your core API. The same is true for creating the JMS (XA)ConnectionFactory - no JNDI needed. timfox wrote : | If you're not using JNDI and don't need them in JMX then you shouldn't need to use it. | Yes, I do not use JNDI - I feel that for an embedded server JNDI is not necessary. I am not sure what do you mean by in JMX - the way I create the JMS queue and topic I can see them in JMX with all the cool stuff like message counts, etc. timfox wrote : | If you're using JMS you should just be able to instantiate the JMS queue and topic instances directly on the client side, e.g. | | Topic myTopic = new JBossTopic(myTopic); | | ... do stuff with the topic. | Sure, that is documented nicely and I do that. timfox wrote : | Can you tell me if that works? | No problem, I can send you my sample code if you let me know how - should I just paste in into this forum? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241099#4241099 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241099 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 deployTopic or bindTopic or something similar). If you're not using JNDI and don't need them in JMX then you shouldn't need to use it. If you're using JMS you should just be able to instantiate the JMS queue and topic instances directly on the client side, e.g. Topic myTopic = new JBossTopic(myTopic); ... do stuff with the topic. Can you tell me if that works? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241086#4241086 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241086 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 belongs to a different server instance and therefore must not be used. Second is that it registers the queues and topics into JNDI (passing null as the secong argument to createTopic leads to NullPointerException) and I am trying to avoid JNDI in this case. | 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? For JNDI, you could pass a no-op Context implementation to JMServerManager.setContext() to disable JNDI. Do not hesitate to fill JIRA issues for this kind of improvements. Thanks for the feedback, jeff View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241087#4241087 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241087 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
also you can use | session.createTopic(topicName); | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241089#4241089 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241089 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 the possibilities which JBoss Messaging provides. The real production deployment would be different for sure. jmesnil wrote : | For JNDI, you could pass a no-op Context implementation to JMServerManager.setContext() to disable JNDI. | Thanks for the hint. jmesnil wrote : | Do not hesitate to fill JIRA issues for this kind of improvements. | I will, as soon as I understand JBM a bit more. At this point I have only one small improvement to suggest: it the second argument of createQueue and createTopic of JMSServerManagerImpl would be null, simply do not register the object to JNDI instead of throwing a NullPointerException. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241104#4241104 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241104 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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=bbop=viewtopicp=4241107#4241107 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241107 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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=bbop=viewtopicp=4241110#4241110 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241110 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 method is not for creating the physical topic. The physical creation of topics is an administrative task and is not to be initiated by the JMS API. The one exception is the creation of temporary topics, which is accomplished with the createTemporaryTopic method. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241113#4241113 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241113 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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=bbop=viewtopicp=4241115#4241115 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241115 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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 specific code and no JNDI View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4241121#4241121 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4241121 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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.setSecurityEnabled(false); | configuration.setAcceptorConfigurations(transports); | server = Messaging.newMessagingServer(configuration); | JMSServerManager manager =new JMSServerManagerImpl(server); | | manager.createQueue(...); | manager.createTopic(...); | | manager.start(); // will also start the underlying MessagingServer | View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4240983#4240983 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240983 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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, you could do something like: [codeJMSServerManager ]jmsServer = new JMSServerManagerImpl(server); jmsServer.createTopic(. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4240985#4240985 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240985 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Messaging] - Re: Embedded server - how to create JMS Topic?
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/jbossmessaging/freezone/docs/usermanual-2.0.0.beta3/html/architecture.html Now, the question I would ask is, if embedding do you really want JMS? Why not just use the core API? It's simpler and it can do everything that JMS does (and more) View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4240987#4240987 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240987 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user