You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Gnanaguru S <gn...@wipro.com> on 2011/09/12 14:00:50 UTC

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Hi David,

I got you. 

Can you be more specific. Upto what you follow ? and where you got struck ?


regards
Guru

-----
Cheers
 Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4793920.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Posted by david1234 <da...@hcl.com>.
hi Guru,

I need some clarification plz explain,


how do i run sample application (D:\apache-servicemix-4.3.0\examples)
without using Maven?.

in document they specified OSGI bundle what is this one?

In deploy folder i pasted some file and deleted after some time but if i
give the command "OSGI:list" Still it's showing in console.How do i remove
this file?

what is FUSE_Servicemix i am using appache-servicemix ,FUSE_Servicemix  is
commercial or opensource?

--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4806255.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Posted by Gnanaguru S <gn...@wipro.com>.
i think your proxy might have blocking some name space reference. Even
though instead of creating a directory @ d colon. Create a directory like
D:\apache-servicemix-4.3.0\inputdir




Regards
Guru

-----
Cheers
 Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4794095.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Posted by Gnanaguru S <gn...@wipro.com>.
Hi David,

For running the code which i posted earlier, No building tools like maven is
not obviously needed. 

I dont know where you are getting confused. For running examples provided
with the product is different. 


Regards
Guru

-----
Cheers
 Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4806360.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Posted by david1234 <da...@hcl.com>.
hi Guru,

serviceMix provided some examples, In README text file ther are telling to
run the maven and it will greate some file in target directory after
generated hard deploy in deploy folder like that they r telling.

Is there any way without using maven we can do this.

--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4806352.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Posted by Gnanaguru S <gn...@wipro.com>.
by the way. 

Fuse uses the same servicemix, Servicemix is purely open and if you are
adoping in your Enterprise . Then Fuse provides Commercial Support. 

Guru

-----
Cheers
 Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4806293.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Posted by Gnanaguru S <gn...@wipro.com>.
Hi David,

Hope Camel-Blueprint bundle is installed. 

I think it should be syntactic error. I am that good with syntax. 

<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
       
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
       
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
        xmlns:ftp="http://mina.apache.org/ftpserver/spring/v1"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://mina.apache.org/ftpserver/spring/v1
       http://mina.apache.org/ftpserver/ftpserver-1.0.xsd"
        default-availability="optional">


     <camelContext xmlns="http://camel.apache.org/schema/blueprint"
trace="true">
             
          <route>   
             
                  <from uri="file://inputdir"/> **
                  <to uri="file://outputdir"/>
        </route>
           
           

     
     </camelContext>
</blueprint> 

-----
Cheers
 Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4806345.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Posted by david1234 <da...@hcl.com>.
hi i have given inputdir as i mentined in below xml . In D:\inputdir i kept
my xml file.


<?xml version="1.0" encoding="UTF-8"?> 
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
       
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0"
       
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0"
        xmlns:ftp="http://mina.apache.org/ftpserver/spring/v1"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://mina.apache.org/ftpserver/spring/v1
       http://mina.apache.org/ftpserver/ftpserver-1.0.xsd"
        default-availability="optional">


     <camelContext xmlns="http://camel.apache.org/schema/blueprint"
trace="true">
              
          <route>    
              
                  <from uri="file:///D:/inputdir"/>
                  <to uri="file:///D:/outputdir"/>
        </route>
            
            

      
     </camelContext>
</blueprint>

--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4806327.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Posted by Gnanaguru S <gn...@wipro.com>.
Hi David,

Make certain things very clear !

1. Create inputdir in servicemix home directory, Not in D: colon . If so in
d: then specify full path.
2. Do this command " features:install camel-blueprint "

Check then

Regards
Guru

-----
Cheers
 Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4806265.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Posted by Gnanaguru S <gn...@wipro.com>.
do:  features:install camel-blueprint

<?xml version="1.0" encoding="UTF-8"?>
<blueprint
     xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="
       http://www.osgi.org/xmlns/blueprint/v1.0.0
       http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
     <camelContext xmlns="http://camel.apache.org/schema/blueprint"
trace="true">
             
          <route>   
             
                  <from uri="file://inputdir/"/>
                  <to uri="file://outputdir"/>
        </route>
           
           

     
     </camelContext>
</blueprint>  

Regards
Guru

-----
Cheers
 Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4793983.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Re: RUN FILE BINDING EXAMPLE IN SERVICEMIX 4

Posted by Gnanaguru S <gn...@wipro.com>.
Hi Nagesh/David

Hope you have not completed the mailing list formalities.

Anyhow ,

I think there are some syntax level bug. by the way, Please let me know how
you deployed the code you wrote.

Find my example to help out for yourself.

My scenario:
Directory(XML File)->QUEUE->XSLT(Got
transformed)->QUEUE->Directory(Transformed XML)

<?xml version="1.0" encoding="UTF-8"?>
<blueprint
     xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="
       http://www.osgi.org/xmlns/blueprint/v1.0.0
       http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd">
     <camelContext xmlns="http://camel.apache.org/schema/blueprint"
trace="true">
             
          <route>   
             
                  <from uri="file://inputdir/"/>
                  <to uri="activemq:queue:inputQueue"/>
        </route>
           
            <route> 
                    <from uri="activemq:queue:inputQueue"/>
                    <to
uri="xslt:file:C:\ESB\Fuse_ESB_4.4\apache-servicemix-4.4.0-fuse-00-27\design.xsl"/>
                    <to uri="activemq:queue:outputQueue"/>
        </route>
         <route>
                 <from uri="activemq:queue:outputQueue"/>
                 <to uri="file://outputdir"/>
        </route>

     
     </camelContext>
</blueprint> 


I used camel. this should run in SMX4/Fuse4.4 .

Revert for queries.

Thank nagesh/david


Regards
Guru 

-----
Cheers
 Guru
--
View this message in context: http://servicemix.396122.n5.nabble.com/RUN-FILE-BINDING-EXAMPLE-IN-SERVICEMIX-4-tp4538165p4793954.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.