tutorial español java eclipse jar activemq pathing

java - activemq tutorial español



ActiveMQ Broker Factory No se pudo encontrar la clase de fábrica para failover (1)

Recibo este error al intentar crear un intermediario de ActiveMQ con BrokerFactory:

java.io.IOException: Could not load failover factory:java.io.IOException: Could not find factory class for resource: META-INF/services/org/apache/activemq/broker/failover at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:27) at org.apache.activemq.broker.BrokerFactory.createBrokerFactoryHandler(BrokerFactory.java:43) at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:70) at org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54) at ... Caused by: java.io.IOException: Could not find factory class for resource: META-INF/services/org/apache/activemq/broker/failover at org.apache.activemq.util.FactoryFinder$StandaloneObjectFactory.loadProperties(FactoryFinder.java:96) at org.apache.activemq.util.FactoryFinder$StandaloneObjectFactory.create(FactoryFinder.java:58) at org.apache.activemq.util.FactoryFinder.newInstance(FactoryFinder.java:146) at org.apache.activemq.broker.BrokerFactory.createBrokerFactoryHandler(BrokerFactory.java:41) ... 5 more

Parece un error o algo similar, simplemente no puedo entender la causa raíz.

Este es el código que lo causa:

URI brokerUri = new URI(bean.getBrokerConfigUrl()); broker = BrokerFactory.createBroker(brokerUri);

Aquí está la url que estoy llamando:

failover:(tcp://internalUrl.net:port#,tcp://internalUrl.net:port#)?randomize=false&timeout=30000&jms.redeliveryPolicy.maximumRedeliveries=-1&jms.prefetchPolicy.all=0

Entonces, ¿es probable que esto sea un error? ¿No incluyo un frasco requerido? ¿La URL no está formateada correctamente? Estoy perdido aquí.

Editar: Recompensa añadida