[Remoting] - Help with HA Remoting with JBoss
by jgamache
I've looked over all the remoting examples and they make sense to me and run no problems. I'm trying to use the "detection" examples that use JNDI. However, I need to use the HA-JNDI instance from with JBoss (4.2.2). I have an MBean, so what do I do? Do I
add the defined instance of HAJNDI as an attribute to my MBean? If so,
does it merely replace the JNDIDetector? Or both the JNDIDetector as
well as the MBeanServer (as the HAJNDI instance must already be
registered as an MBean...)
I think I am creating the JNDIDetector in the standard way, but how do I get it (on the client side obviously) to use the HA-JNDI instance in jboss? Here is the code I have:
// jndi detector will detect new network registries that come online
JNDIDetector detector = new JNDIDetector(getConfiguration());
// set config info for detector and start it.
detector.setPort(detectorPort);
detector.setHost(detectorHost);
detector.setContextFactory(contextFactory);
detector.setURLPackage(urlPackage);
server.registerMBean(detector, new ObjectName("remoting:type=JNDIDetector"));
detector.start();
thanks for any help
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241962#4241962
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241962
16 years, 10 months
[JBoss Messaging] - EnableOrderingGroup attribute in JBM 1.4.1
by jjacobwip
Hi,
JBoss 5.0.1 GA
JBoss Messaging 1.4.1 GA.
I have an ActiveMQ queue which is the Producer and a JBoss Messaging queue (local) which is consuming messages through a Message Bridge. My requirement is that the messages should be consumed in the same order in which they are sent.
For this I have set a Message groupd ID (JMSXGroupID) from the Producer (ActiveMQ) on the messages when I send them. But still I could not get the messages in the same order in which they were sent. After going through the JBM docs, it was understood that the ordering needs to be enabled at the consumer side also. But when I add this attributes to the connection0-factories-service.xml, I am getting the following exception
|
| 6:53:29,375 INFO [ServiceConfigurator] Problem configuring service jboss.messaging.connectionfactory:service=ConnectionFactory
| rg.jboss.deployment.DeploymentException: No Attribute found with name: enableOrderingGroup
| at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:318)
| at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:466)
| at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
|
|
Which version of JBM supports this attribute? Even if I manage to set this attribute, can the messages be consumed at JBM side in the same order in which they are sent from ActiveMQ?
Thanks
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4241960#4241960
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4241960
16 years, 10 months