[JBoss Messaging] - Messaging bridge question
by chip_schoch
I am trying to set up a couple of bridges on one server (s1) whereas messages arriving on a queue are posted to a queue on a remote server (s2), That server processes the message and puts a response on its local response queues. I want another bridge to take that response and move it to my original server response queue.
On s1 I configured the bridges so that the first bridge had s1 as the source provoder and the second bridge had s2 as the source provider. It seems that only bridge one is able to make the connection. For bridge two I get a no a such destination exception even though the destination is valid on s2.
Am I not allowed to configure a bridge such that the source is the remote server?
<?xml version="1.0" encoding="UTF-8"?>
| <server>
|
| <!-- Bridge 1. Send messages to remote input queue -->
| <mbean code="org.jboss.jms.server.bridge.BridgeService"
| name="jboss.messaging:service=Bridge,name=Conversion.In.Bridge"
| xmbean-dd="xmdesc/Bridge-xmbean.xml">
|
| <depends>jboss:service=Naming</depends>
| <depends>jboss.messaging.destination:service=Queue,name=File.Conversion.In</depends>
| <depends>jboss.messaging:service=ServerPeer</depends>
| <depends optional-attribute-name="SourceProviderLoader">jboss.mq:service=JMSProviderLoader,name=JMSProvider</depends>
| <depends optional-attribute-name="TargetProviderLoader">jboss.mq:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
|
| <attribute name="SourceDestinationLookup">/queue/File.Conversion.In</attribute>
| <attribute name="TargetDestinationLookup">/queue/Remote.Conversion.In</attribute>
|
| <attribute name="MaxBatchSize">5</attribute>
| <attribute name="MaxBatchTime">-1</attribute>
| <attribute name="FailureRetryInterval">5000</attribute>
| <attribute name="MaxRetries">-1</attribute>
|
| </mbean>
|
| <!-- Bridge 2. Get messages from remote output queue -->
| <mbean code="org.jboss.jms.server.bridge.BridgeService"
| name="jboss.messaging:service=Bridge,name=Conversion.Out.Bridge"
| xmbean-dd="xmdesc/Bridge-xmbean.xml">
|
| <depends>jboss:service=Naming</depends>
| <depends>jboss.messaging.destination:service=Queue,name=File.Conversion.Out</depends>
| <depends>jboss.messaging:service=ServerPeer</depends>
| <depends optional-attribute-name="SourceProviderLoader">jboss.mq:service=JMSProviderLoader,name=RemoteJMSProvider</depends>
| <depends optional-attribute-name="TargetProviderLoader">jboss.mq:service=JMSProviderLoader,name=JMSProvider</depends>
|
| <attribute name="SourceDestinationLookup">/queue/Remote.Conversion.Out</attribute>
| <attribute name="TargetDestinationLookup">/queue/File.Conversion.Out</attribute>
|
| <attribute name="MaxBatchSize">5</attribute>
| <attribute name="MaxBatchTime">-1</attribute>
| <attribute name="FailureRetryInterval">5000</attribute>
| <attribute name="MaxRetries">-1</attribute>
|
| </mbean>
|
| </server>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067120#4067120
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067120
18Â years, 9Â months
[JBoss jBPM] - Re: create task at runtime
by massimiliano_cuccia
"syngolis" wrote : I think the null pointer exception is correct. AFAIK if you create a task, there is no task controller created automatically. (Think of a processdefinition; there you have to declare the controller as well)
| And the get operation results in a null pointer because no controller exists.
|
thanks syngolis
I think that you are right: it is possible.
So I want to list all and only the variables linked to the task (not the "all task of the process"). At now I'm doing this
TaskController taskController = ti.getTask().getTaskController();
| if (taskController!=null)
| {
| List variableAccesses = taskController.getVariableAccesses();
| Iterator i = variableAccesses.iterator();
| while (i.hasNext())
| {
| // do something
| }
| }
but the first row gives the null pointer exception (this means that ti.getTask() is null)
so if you are right, the question is
how to list the variables of the task?
regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067103#4067103
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067103
18Â years, 9Â months