The TransformComponentSupport purpose is to receive
an incoming JBI message, transform it, and send the
transformed output message.  The output will be sent
as the Out message if the exchange is an InOut, or a
new  InOnly exchange.  In the last case, you need to
specify a target service.
Makes sense ?

On 4/19/07, Srivatsan <[EMAIL PROTECTED]> wrote:


Hi,

Environment details: JBoss 4.0.4-GA, servicemix-3.0.1-incubating,
deployment using servicemixweb.war with in JBoss.

In our project, we have POJOs extend TransformComponentSupport for them to
be used in servicemix lw service units.

One of the requirements in our project is file poller component
(implemented
using servicemix file poller). The poller polls for a txt file and if its
present calls the validateService (implemented by POJO extending
TransformComponentSupport) specified as the targetService. validateService
reads the txt file and csv file from the same location and validates if
the
count in the text file and count of records in the csv file match. This
processing is done correctly. But, we notice the following DEBUG message.

2007-04-13 09:59:16,158 DEBUG
[org.apache.servicemix.jbi.messaging.DeliveryChannelImpl] Sent: InOnly[
  id: ID:D111JAV03-4535-1176412744275-10:3
  status: Error
  role: provider
  service: {http://abc.test.com/emplist/}validateService
  endpoint: validateService
  in: Unable to display: java.io.IOException: Stream closed
  error: javax.jbi.messaging.MessagingException: Could not find route for
exchange: InOnly[
  id: ID:D111JAV03-4535-1176412744275-11:3
  status: Active
  role: provider
  in: null
] for service: null and interface: null
]

We found that not having targetService for the validateService was the
reason for the message. When servicemix TraceComponent was specified as
the
targetService, the debug message was not logged.

Do we need to always specify a targetService when POJOs extending
TransformComponentSupport are used? Or could this DEBUG message be
ignored?

Thanks
Srivatsan
--
View this message in context:
http://www.nabble.com/Issue-with-POJOs-extending-TransformComponentSupport-tf3604290s12049.html#a10069927
Sent from the ServiceMix - User mailing list archive at Nabble.com.




--
Cheers,
Guillaume Nodet
------------------------
Principal Engineer, IONA
Blog: http://gnodet.blogspot.com/

Reply via email to