Hi,
The above problem seems to be caused due to loss of the response during
transit from one service to another in the pipeline pattern.
I introduced a wiretap to snoop into the input, output and fault response
of the jsr 181 component.
So the first flow is http---> wiretap---->jsr181. Everything worked
perfectly and I noted the following log of the output from jsr181
11:55:39,250 | INFO | pool-flow.seda.servicemix-jsr181-thread-1 |
CondorWrapper | vice.gridsam.JobSubmissionImpl 292 |
response[org.icenigrid.service.gridsam.jobidentifiert...@13eb5b]
11:55:39,562 | INFO | pool-flow.seda.servicemix-camel-thread-3 | snoop
| .apache.camel.processor.Logger 79 | Exchange[Message:
javax.xml.transform.sax.saxsou...@8fe358]
Then I tried using the pipeline pattern, the flow is as follows
http---->camelpipline------>wiretap--->jsr181--->camelpiplene--->eventprocessor
The log files for the above configuration suggest that the second part(
snoop.apache.camel.processor.Logger ) which is the response of jsr181 is
lost. I have pasted it below
11:56:04,156 | INFO | pool-flow.seda.servicemix-jsr181-thread-4 |
CondorWrapper | vice.gridsam.JobSubmissionImpl 292 |
response[org.icenigrid.service.gridsam.jobidentifiert...@fbbb20]
11:56:04,171 | INFO | pool-flow.seda.servicemix-camel-thread-4 |
eventprocessor | .apache.camel.processor.Logger 79 |
Exchange[Message: javax.xml.transform.sax.saxsou...@1a37b1]
How do I solve the problem?
Regards,
Ganesh
navigator09 wrote:
>
> Hi,
>
> I am trying to configure a camel pipeline component which needs to pipe
> input data to a jsr181 component and the output of this component to a
> eventprocessor. The input sent to the jsr181 component is successfully
> processed and a successful output is obtained but the input to the event
> processor is blank. Because of this the pipeline component resends the
> user input to the eventprocessor also, which is not desired.
>
> I tried testing the jsr 181 component in isolation, exposing it using
> http component and noting the output. It works perfectly well. Only in the
> pipeline pattern its output is null. Is this some kind of a
> incompatability issue between the output of jsr181 and the i/p to
> eventprocessor within the context of pipeline pattern?
>
>
>
>
> from("jbi:endpoint:http://foo.bar.org/PipeLine/Endpoint").
> to("log:routingslip1").
> convertBodyTo(String.class).
>
> pipeline("jbi:endpoint:http://www.icenigrid.org/service/gridsam/JobSubmission/JobSubmission",
>
> "jbi:endpoint:http://foo.bar.org/EventProcessor/MyEndpoint");
>
>
> Regards,
> Ganesh
>
--
View this message in context:
http://www.nabble.com/Camel-pipeline-component-and-jsr181-tp21011542p21028183.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.