You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by jonasbergstrom <jo...@bwin.org> on 2010/03/03 14:13:11 UTC

Re: Connecting to Tibco RV from ActiveMQ


bsnyder wrote:
> 
> There is no built-in support for integrating with RV built in to
> ActiveMQ, but it can bridge to TIBCO EMS. Here's an example:
> 
> http://activemq.apache.org/jms-bridge-with-remote-tibco-broker.html
> 
That example works well except for initial connection (when Tibco is down,
where the creation of the ActiveMQ broker actually hangs) and reconnecting
to Tibco after network problems. I've configured Tibco's connection factory
with it's proprietary connect/reconnect properties like:
    <bean id="tibco" class="com.tibco.tibjms.TibjmsQueueConnectionFactory">
        <property name="serverUrl" value="tcp://localhost:7222"/>
        <property name="connAttemptCount" value="10"/>
        <property name="connAttemptDelay" value="6000"/>
        <property name="connAttemptTimeout" value="60"/>
        <property name="reconnAttemptCount" value="10"/>
        <property name="reconnAttemptDelay" value="6000"/>
        <property name="reconnAttemptTimeout" value="60"/>
    </bean> 
...but they don't "bite". I'e if I restart Tibco, the bridge between
ActiveMQ and Tibco don't reconnect. 
Do you know where I should look further to get this working, on the ActiveMQ
side or in the Tibco client?

Thnx / Jonas
-- 
View this message in context: http://old.nabble.com/Connecting-to-Tibco-RV-from-ActiveMQ-tp26111003p27768014.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Connecting to Tibco RV from ActiveMQ

Posted by jonasbergstrom <jo...@bwin.org>.
Looks like it's fixed by https://issues.apache.org/activemq/browse/AMQ-2455 .

/ Jonas
-- 
View this message in context: http://old.nabble.com/Connecting-to-Tibco-RV-from-ActiveMQ-tp26111003p27778537.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: Connecting to Tibco RV from ActiveMQ

Posted by jonasbergstrom <jo...@bwin.org>.
Forgot the stacktrace:
ERROR | failed to forward message on attempt: 1 reason:
javax.jms.IllegalStateException: Producer is closed message:
ActiveMQTextMessage {commandId = 14, responseRequired = true, messageId =
ID:longshanks.ongame.com-62594-1267627711097-0:1:1:1:10, originalDestination
= null, originalTransactionId = null, producerId =
ID:longshanks.ongame.com-62594-1267627711097-0:1:1:1, destination =
queue://localqueue, transactionId = null, expiration = 0, timestamp =
1267627722109, arrival = 0, brokerInTime = 1267627722110, brokerOutTime =
1267627722388, correlationId = null, replyTo = null, persistent = true, type
= null, priority = 4, groupID = null, groupSequence = 0, targetConsumerId =
null, compressed = false, userID = null, content =
org.apache.activemq.util.ByteSequence@4b2922f6, marshalledProperties = null,
dataStructure = null, redeliveryCounter = 0, size = 8208, properties = null,
readOnlyProperties = true, readOnlyBody = true, droppable = false, text =
null}
javax.jms.IllegalStateException: Producer is closed
	at
com.tibco.tibjms.TibjmsMessageProducer._publish(TibjmsMessageProducer.java:180)
	at com.tibco.tibjms.TibjmsQueueSender.send(TibjmsQueueSender.java:65)
	at
org.apache.activemq.network.jms.QueueBridge.sendMessage(QueueBridge.java:80)
	at
org.apache.activemq.network.jms.DestinationBridge.onMessage(DestinationBridge.java:130)
	at
org.apache.activemq.ActiveMQMessageConsumer.dispatch(ActiveMQMessageConsumer.java:946)
	at
org.apache.activemq.ActiveMQSessionExecutor.dispatch(ActiveMQSessionExecutor.java:122)
	at
org.apache.activemq.ActiveMQSessionExecutor.iterate(ActiveMQSessionExecutor.java:192)
	at
org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:118)
	at
org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:42)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	at java.lang.Thread.run(Thread.java:637)

Maybe the bridge needs to recreate the producer. Is it possible to configure
it to do so when a mesage-sender fails?


Thnx / Jonas
-- 
View this message in context: http://old.nabble.com/Connecting-to-Tibco-RV-from-ActiveMQ-tp26111003p27769151.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.