Connect to Jboss Topic(Jboss messaging 1.4 )
Hi,
I am working on Spring3.1 on standalone env.
I am trying to consume messages remotely from a jboss4 machine(having Jboss messaging 1.4 as a the jms provider)
After searching in the net I am kind of lost.
what I have done so far is to config my applicationContext with this:
Code:
<bean id="tgwTopic" class="org.springframework.jndi.JndiObjectFactoryBean"
depends-on="jmsServerManagerImpl">
<property name="jndiName" value="/topic/feedTopicRealTime" />
<property name="jndiEnvironment">
<props>
<prop key="java.naming.provider.url">remove.server.url:1099</prop>
<prop key="java.naming.factory.initial">org.jnp.interfaces.NamingContextFactory</prop>
<prop key="java.naming.factory.url.pkgs">org.jboss.naming:org.jnp.interfaces</prop>
<!-- other key=values here -->
</props>
</property>
</bean>
and this is my java bean:
Code:
@Service("TGWMDB")
public class TGWMDB implements MessageListener
{
@Autowired Topic tgwTopic;
public void onMessage(Message message)
{
}
}
{
How should I continue my configuration in the applicationContext and in the java code.
thanks,
ray.