Hi,
I am working with Serviceimix (4.3) vfs component and my usecase flow is
like below.
VFS Poller(In only MEP) ---> Servicemix bean (In only MEP to In-out MEP)
---> camel su ---> servicemix http su(In-out MEP) --->external service
1. VFS Poller endpoint gets the xml file from inbox directory,posts it to
Servicemix bean component
2. Bean Handler does below tasks
---> Gets the file from exchange and read the xml string.
---> Prepares New messaeg exchange using Inout pattern and cretaes
message with xml. (In-only MEP to In-out MEP)
---> Will be posted to camel su endpoint
3. Camel Su endpoint:
--> forwards the message to HTTP SU
4. HTTP SU:
--> It gets the xml string and send it to External service
--> get the response from external service
Poller Config:
<vfs:poller service="picf:bulkImportGetFile"
endpoint="pollerEndpoint"
path="file:///C:/vfs/inbox"
targetService="picf:beanLogger"
period="1000"
deleteFile="false">
<property name="marshaler">
<bean
class="org.apache.servicemix.components.util.BinaryFileMarshaler" />
</property>
</vfs:poller>
As per the expected behaviour every 1000 ms poller endpoint should read the
same file [deleteFile value is false] and post the message to external
service.
However i am able to send the message once to external service successfully.
Next iteration onwards poller component unable to get the file from inbox.
Please suggest me is there any issue with my configuration or In-out MEP
Creation in the bean handler.
Please find attached bean handler code along with config,servicemix log
files.
Regards,
Praveen Chakinala
http://servicemix.396122.n5.nabble.com/file/n4448225/CONFIG.zip CONFIG.zip
--
View this message in context:
http://servicemix.396122.n5.nabble.com/vfs-poller-component-tp4448225p4448225.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.