9 Replies Latest reply on Sep 17, 2008 9:49 AM by edelln

    problem with file binding component

    manish_goyal

      Hi,

      I am trying with first example given in tutorial(Moving file from one directory to another). I am able to build and deploy su, but after copy a XML file into the directory i have configured in the file:poller endpoint, file is not reaching to sender endpoint.

        • 1. Re: problem with file binding component
          edelln

          Can you check in your servicemix.log file that these service units are started.

           

          Also can you see that its polling the directory.

           

          If you can send the xbean.xml files of your poller and sender that would be good.

           

          Edell.

          • 2. Re: problem with file binding component
            manish_goyal

            thanks for your reply.

             

            One more thing i want to ask you..

            In log file it is showing like

             

            Starting service unit: tutorial-file-su

            ServiceMix JBI Container (ServiceMix) started

            Starting service assembly: tutorial-sa.

             

            But file is not getting picked up by target.

             

            Where in log file i can check for polling.

            • 3. Re: problem with file binding component
              edelln

              Well it seems like the assembly is started.

               

              can you send me the contents of the xbean.xml file. how you specify the directory thats polled.

              • 4. Re: problem with file binding component
                manish_goyal

                here is the content of xbean file:-

                 

                 

                 

                • 5. Re: problem with file binding component
                  edelln

                  Hi,

                   

                  Is this a paste error ?

                   

                  if not you need to include some information as regards what directory to poll and what service you wish to send the file to.

                   

                  eg.

                   

                  <f:sender service="proj:fileSender"
                                   endpoint="endpoint"
                                   directory="file:///C:/opensrc/test/myOutbox"
                                   autoCreateDirectory="true">
                      
                    </f:sender>
                  
                  
                    <f:poller
                        service="proj:filePoller"
                        endpoint="poller"
                        file="file:///C:/opensrc/test/myInbox"
                        targetService="proj:fileSender"
                        targetEndpoint="endpoint"
                        period="60000"
                        recursive="true"
                        autoCreateDirectory="true">
                      </f:poller>
                  

                   

                  Edited by: edelln on Sep 17, 2008 7:32 AM

                  • 6. Re: problem with file binding component
                    manish_goyal

                    This is the inner part... previously it was Paste error

                     

                    <file:sender service="tut:file" endpoint="sender"directory="C:\Project\sender" />

                    <file:poller service="tut:file" endpoint="poller" file="C:\Project\pollar" targetService="tut:file" targetEndpoint="sender"/>

                     

                    Edited by: manish_goyal on Sep 17, 2008 7:38 AM

                    • 7. Re: problem with file binding component
                      edelln

                      When you are adding the  xml content do

                       

                      curly bracket code:xml end curly bracket

                      content

                      curly bracket code end curly bracket

                       

                      and it should work.

                       

                      Edited by: edelln on Sep 17, 2008 7:41 AM

                      • 8. Re: problem with file binding component
                        manish_goyal

                        I have changed as per your suggestion but still it in not working ..

                        plz give some pointer.

                         

                         

                        thanks

                        • 9. Re: problem with file binding component
                          edelln

                          Whats you email address and maybe you can send me your files