You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by milan777 <mi...@gmail.com> on 2013/05/22 08:34:12 UTC

Camel-configuration

How could i make a simple programme using apache camel??
please write all simple steps..
i am very new to these technology



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Christian Müller <ch...@gmail.com>.
As far as I understood from [1], SQL Management Studio is a tool to manage
SQL server. It's not mot possible to "connect" from Camel to such a tool.
If you have problems to connect from SQL Management Studio to SQL Server,
this is simply the wrong mailing list...

[1] http://www.microsoft.com/en-us/download/details.aspx?id=8961

Best,

Christian Müller
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Mon, May 27, 2013 at 10:41 AM, milan777 <mi...@gmail.com> wrote:

> hi,christian I am not getting the connection with sql management studio
> 2008....so,i am not getting the connection with it so can u please suggest
> the connection string or any better steps to get connection with it...thanx
> in advance
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733245.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: Camel-configuration

Posted by milan777 <mi...@gmail.com>.
hi,christian I am not getting the connection with sql management studio 
2008....so,i am not getting the connection with it so can u please suggest
the connection string or any better steps to get connection with it...thanx
in advance 



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733245.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Christian Müller <ch...@gmail.com>.
What's your issue?

Best,
Christian

Sent from a mobile device
Am 27.05.2013 08:45 schrieb "milan777" <mi...@gmail.com>:

> Please help me to connect the java with sql management studio 2008...thanx
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733234.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: Camel-configuration

Posted by milan777 <mi...@gmail.com>.
Please help me to connect the java with sql management studio 2008...thanx 




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733234.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Christoph Emmersberger <ce...@googlemail.com>.
Hi Milan,

first of all, I do not think that Camel is the issue, since there are plenty of users using Camel for FTP transactions.

What I can not see, and actually don't want to see is the connect string.

Just allow me, to ask a question regarding the FTP server: Have you tried to enter a command like

ftp <usernam>:<password>@<host>

on your command line and you were able to connect to the server? If so, please make sure to configure your FTP endpoint correspondingly.

Good luck,

- Christoph

On May 25, 2013, at 8:37 AM, milan777 wrote:

> will anyone please find error in this program!!! please i am getting erroe
> like could not connect to ftp...i am passing user name and passwords
> though...my code is
> 
> -FTP client
> 
> /**
> * Licensed to the Apache Software Foundation (ASF) under one or more
> * contributor license agreements.  See the NOTICE file distributed with
> * this work for additional information regarding copyright ownership.
> * The ASF licenses this file to You under the Apache License, Version 2.0
> * (the "License"); you may not use this file except in compliance with
> * the License.  You may obtain a copy of the License at
> *
> *      http://www.apache.org/licenses/LICENSE-2.0
> *
> * Unless required by applicable law or agreed to in writing, software
> * distributed under the License is distributed on an "AS IS" BASIS,
> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> * See the License for the specific language governing permissions and
> * limitations under the License.
> */
> package org.apache.camel.example.ftp;
> 
> import org.apache.camel.builder.RouteBuilder;
> import org.apache.camel.component.properties.PropertiesComponent;
> 
> /**
> * Server route
> */
> public class MyFtpServerRouteBuilder extends RouteBuilder {
> 
>    @Override
>    public void configure() throws Exception {
>        // configure properties component
>        PropertiesComponent pc = getContext().getComponent("properties",
> PropertiesComponent.class);
>        pc.setLocation("classpath:ftp.properties");
> 
>        // lets shutdown faster in case of in-flight messages stack up
>        getContext().getShutdownStrategy().setTimeout(10);
> 
>        from("{{ftp.server}}")
>            .to("file:target/download")
>            .log("Downloaded file ${file:name} complete.");
> 
>        // use system out so it stand out
> 
> System.out.println("*********************************************************************************");
>        System.out.println("Camel will route files from the FTP server: "
>                + getContext().resolvePropertyPlaceholders("{{ftp.server}}")
> + " to the target/download directory.");
>        System.out.println("You can configure the location of the ftp server
> in the src/main/resources/ftp.properties file.");
>        System.out.println("Use ctrl + c to stop this application.");
> 
> System.out.println("*********************************************************************************");
>    }
> }
> 
> 
> 
> 
> 
> FTP server
> 
> /**
> * Licensed to the Apache Software Foundation (ASF) under one or more
> * contributor license agreements.  See the NOTICE file distributed with
> * this work for additional information regarding copyright ownership.
> * The ASF licenses this file to You under the Apache License, Version 2.0
> * (the "License"); you may not use this file except in compliance with
> * the License.  You may obtain a copy of the License at
> *
> *      http://www.apache.org/licenses/LICENSE-2.0
> *
> * Unless required by applicable law or agreed to in writing, software
> * distributed under the License is distributed on an "AS IS" BASIS,
> * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> * See the License for the specific language governing permissions and
> * limitations under the License.
> */
> package org.apache.camel.example.ftp;
> 
> import org.apache.camel.main.Main;
> 
> /**
> * Main class that can download files from an existing FTP server.
> */
> public final class MyFtpServer {
> 
>    private MyFtpServer() {
>    }
> 
>    public static void main(String[] args) throws Exception {
>        Main main = new Main();
>        main.addRouteBuilder(new MyFtpServerRouteBuilder());
>        main.enableHangupSupport();
>        main.run();
>    }
> 
> }
> 
> 
> 
> ftp.properties
> 
> ## ------------------------------------------------------------------------
> ## Licensed to the Apache Software Foundation (ASF) under one or more
> ## contributor license agreements.  See the NOTICE file distributed with
> ## this work for additional information regarding copyright ownership.
> ## The ASF licenses this file to You under the Apache License, Version 2.0
> ## (the "License"); you may not use this file except in compliance with
> ## the License.  You may obtain a copy of the License at
> ##
> ## http://www.apache.org/licenses/LICENSE-2.0
> ##
> ## Unless required by applicable law or agreed to in writing, software
> ## distributed under the License is distributed on an "AS IS" BASIS,
> ## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
> ## See the License for the specific language governing permissions and
> ## limitations under the License.
> ## ------------------------------------------------------------------------
> 
> ftp.client=ftp://soham-9@127.1.1.1:21?username=soham-9&password=soham9?noop=true
> 
> # for the server we want to delay 5 seconds between polling the server
> # and move downloaded files to a done sub directory
> ftp.server={{ftp.client}}&delay=15s&move=done
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733139.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


Re: Camel-configuration

Posted by milan777 <mi...@gmail.com>.
will anyone please find error in this program!!! please i am getting erroe
like could not connect to ftp...i am passing user name and passwords
though...my code is

-FTP client

/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.camel.example.ftp;

import org.apache.camel.builder.RouteBuilder;
import org.apache.camel.component.properties.PropertiesComponent;

/**
 * Server route
 */
public class MyFtpServerRouteBuilder extends RouteBuilder {

    @Override
    public void configure() throws Exception {
        // configure properties component
        PropertiesComponent pc = getContext().getComponent("properties",
PropertiesComponent.class);
        pc.setLocation("classpath:ftp.properties");

        // lets shutdown faster in case of in-flight messages stack up
        getContext().getShutdownStrategy().setTimeout(10);

        from("{{ftp.server}}")
            .to("file:target/download")
            .log("Downloaded file ${file:name} complete.");

        // use system out so it stand out
       
System.out.println("*********************************************************************************");
        System.out.println("Camel will route files from the FTP server: "
                + getContext().resolvePropertyPlaceholders("{{ftp.server}}")
+ " to the target/download directory.");
        System.out.println("You can configure the location of the ftp server
in the src/main/resources/ftp.properties file.");
        System.out.println("Use ctrl + c to stop this application.");
       
System.out.println("*********************************************************************************");
    }
}





FTP server

/**
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.apache.camel.example.ftp;

import org.apache.camel.main.Main;

/**
 * Main class that can download files from an existing FTP server.
 */
public final class MyFtpServer {

    private MyFtpServer() {
    }

    public static void main(String[] args) throws Exception {
        Main main = new Main();
        main.addRouteBuilder(new MyFtpServerRouteBuilder());
        main.enableHangupSupport();
        main.run();
    }

}



ftp.properties

## ------------------------------------------------------------------------
## Licensed to the Apache Software Foundation (ASF) under one or more
## contributor license agreements.  See the NOTICE file distributed with
## this work for additional information regarding copyright ownership.
## The ASF licenses this file to You under the Apache License, Version 2.0
## (the "License"); you may not use this file except in compliance with
## the License.  You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
## ------------------------------------------------------------------------

ftp.client=ftp://soham-9@127.1.1.1:21?username=soham-9&password=soham9?noop=true

# for the server we want to delay 5 seconds between polling the server
# and move downloaded files to a done sub directory
ftp.server={{ftp.client}}&delay=15s&move=done



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733139.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Christoph Emmersberger <ce...@googlemail.com>.
Hi Milan,

it is also always a good hint looking at the test cases of a component (e.g. FTP component).

Have fun,

- Christoph


On May 24, 2013, at 4:29 PM, milan777 wrote:

> Thanks....for ur guidence 
> 
> 
> 
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733116.html
> Sent from the Camel - Users mailing list archive at Nabble.com.


RE: Camel-configuration

Posted by milan777 <mi...@gmail.com>.
Thanks....for ur guidence 



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733116.html
Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Camel-configuration

Posted by Diether <di...@optis.be>.
Download the latest release. (A direct link: http://apache.belnet.be/camel/apache-camel/2.11.0/apache-camel-2.11.0.zip
Open the zip file and go to the ftp examle.
It's right there. You just have to do the effort to download it, and open it.
We gave you everything to get you started. It's up to you now.

________________________________
Van: milan777 [via Camel] [ml-node+s465427n5733108h95@n5.nabble.com]
Verzonden: vrijdag 24 mei 2013 16:18
To: Wuyts Diether
Onderwerp: Re: Camel-configuration

isben- i am looking for ftp code in apache camel so please is there anyone post the ftp camel code[http://n5.nabble.com/images/smiley/anim_crazy.gif]

________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733108.html
To start a new topic under Camel - Users, email ml-node+s465427n465428h15@n5.nabble.com
To unsubscribe from Camel - Users, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=ZGlldGhlci53dXl0c0BvcHRpcy5iZXw0NjU0Mjh8OTE4NjI3OTg5>.
NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733112.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by milan777 <mi...@gmail.com>.
isben- i am looking for ftp code in apache camel so please is there anyone
post the ftp camel code



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733108.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Claus Ibsen <cl...@gmail.com>.
See the ftp example
http://camel.apache.org/ftp-example.html

Its included in the Apache Camel 2.11 download
http://camel.apache.org/download


On Fri, May 24, 2013 at 4:04 PM, milan777 <mi...@gmail.com> wrote:

> Thanks to all....can anyone post the camel code instead of my plain java
> code
> please it will be very helpful for me as well other user
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733103.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

RE: Camel-configuration

Posted by milan777 <mi...@gmail.com>.
Thanks to all....can anyone post the camel code instead of my plain java code
please it will be very helpful for me as well other user 



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733103.html
Sent from the Camel - Users mailing list archive at Nabble.com.

RE: Camel-configuration

Posted by Diether <di...@optis.be>.
First question: Do you want to use plain Java (as the code you showed) or Apache Camel?
For plain java you'll have to use an FTP library to do that. Have a look at Apache common-net: http://commons.apache.org/proper/commons-net/
You cannot simply refer to an FTP location in the File("") constructor. You have to download the file using the library.
If you need help with that, you can always ask on their mailing list (this is not the place for it).

If you want to use Camel, then first have a look at the pointers Claus gave you.
There is a lot of information on the Camel website to get you started. Try one of the examples first.
And then you can start working with the Camel FTP component.

________________________________
Van: milan777 [via Camel] [ml-node+s465427n5733097h54@n5.nabble.com]
Verzonden: vrijdag 24 mei 2013 15:34
To: Wuyts Diether
Onderwerp: Re: Camel-configuration

I am not getting file from the ftp this is my problem and i can show u my code also....


import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class FileCopier {
        public static void main(String args[]) throws Exception {
                File inboxDirectory = new File("ftp://127.1.1.1/");
                File outboxDirectory = new File("C:/Users/Lenovo-2/Desktop/milan/my_workspace/Test class/src/data/outbox");
                /*
                 * Listing 1.1 Routing files from one folder to another in plain Java
                 * data/inbox File data/outbox Figure 1.2 Files are routed from the
                 * data/inbox directory to the data/outbox directory. www .it-ebo
                 * oks.info 10 CHAPTER 1 Meeting Camel
                 */
                outboxDirectory.mkdir();
                File[] files = inboxDirectory.listFiles();
                System.out.println(files);
                try{for (File source : files) {
                        if (source.isFile()) {
                                File dest = new File(outboxDirectory.getPath() + File.separator
                                                + source.getName());
                                copyFile(source, dest);
                        }
                }}

                catch(Exception  e){}
        }

        private static void copyFile(File source, File dest) throws IOException {
                System.out.println("hi");
                OutputStream out = new FileOutputStream(dest);
                byte[] buffer = new byte[(int) source.length()];
                FileInputStream in = new FileInputStream(source);
                in.read(buffer);
                try {
                        out.write(buffer);
                } finally {
                        out.close();
                        in.close();
                }
        }
}

________________________________
If you reply to this email, your message will be added to the discussion below:
http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733097.html
To start a new topic under Camel - Users, email ml-node+s465427n465428h15@n5.nabble.com
To unsubscribe from Camel - Users, click here<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=ZGlldGhlci53dXl0c0BvcHRpcy5iZXw0NjU0Mjh8OTE4NjI3OTg5>.
NAML<http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733100.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Christian Posta <ch...@gmail.com>.
This sample isn't camel code...

You're going to want to slowly go through the previous examples and
resources supplied... you can also take a look at this:

http://camel.apache.org/ftp-example.html






On Fri, May 24, 2013 at 6:34 AM, milan777 <mi...@gmail.com> wrote:

> I am not getting file from the ftp this is my problem and i can show u my
> code also....
>
>
> import java.io.File;
> import java.io.FileInputStream;
> import java.io.FileOutputStream;
> import java.io.IOException;
> import java.io.OutputStream;
>
> public class FileCopier {
>         public static void main(String args[]) throws Exception {
>                 File inboxDirectory = new File("ftp://127.1.1.1/");
>                 File outboxDirectory = new
> File("C:/Users/Lenovo-2/Desktop/milan/my_workspace/Test
> class/src/data/outbox");
>                 /*
>                  * Listing 1.1 Routing files from one folder to another in
> plain Java
>                  * data/inbox File data/outbox Figure 1.2 Files are routed
> from the
>                  * data/inbox directory to the data/outbox directory. www
> .it-ebo
>                  * oks.info 10 CHAPTER 1 Meeting Camel
>                  */
>                 outboxDirectory.mkdir();
>                 File[] files = inboxDirectory.listFiles();
>                 System.out.println(files);
>                 try{for (File source : files) {
>                         if (source.isFile()) {
>                                 File dest = new
> File(outboxDirectory.getPath() + File.separator
>                                                 + source.getName());
>                                 copyFile(source, dest);
>                         }
>                 }}
>
>                 catch(Exception  e){}
>         }
>
>         private static void copyFile(File source, File dest) throws
> IOException {
>                 System.out.println("hi");
>                 OutputStream out = new FileOutputStream(dest);
>                 byte[] buffer = new byte[(int) source.length()];
>                 FileInputStream in = new FileInputStream(source);
>                 in.read(buffer);
>                 try {
>                         out.write(buffer);
>                 } finally {
>                         out.close();
>                         in.close();
>                 }
>         }
> }
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733097.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Re: Camel-configuration

Posted by Lutz Horn <lu...@fastmail.fm>.
Hi,

Am Fr, 24. Mai 2013, um 15:34, schrieb milan777:
> I am not getting file from the ftp this is my problem and i can show u my
> code also....

I don't see anything related to Camel in your code.

Lutz
-- 
Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
Email? Try FastMail! http://www.fastmail.fm/?STKI=600622
http://fixtracking.com/ | http://dontbubble.us/ | http://donttrack.us

Re: Camel-configuration

Posted by milan777 <mi...@gmail.com>.
I am not getting file from the ftp this is my problem and i can show u my
code also....


import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class FileCopier {
	public static void main(String args[]) throws Exception {
		File inboxDirectory = new File("ftp://127.1.1.1/");
		File outboxDirectory = new
File("C:/Users/Lenovo-2/Desktop/milan/my_workspace/Test
class/src/data/outbox");
		/*
		 * Listing 1.1 Routing files from one folder to another in plain Java
		 * data/inbox File data/outbox Figure 1.2 Files are routed from the
		 * data/inbox directory to the data/outbox directory. www .it-ebo
		 * oks.info 10 CHAPTER 1 Meeting Camel
		 */
		outboxDirectory.mkdir();
		File[] files = inboxDirectory.listFiles();
		System.out.println(files);
		try{for (File source : files) {
			if (source.isFile()) {
				File dest = new File(outboxDirectory.getPath() + File.separator
						+ source.getName());
				copyFile(source, dest);
			}
		}}
	
		catch(Exception  e){}
	}
	
	private static void copyFile(File source, File dest) throws IOException {
		System.out.println("hi");
		OutputStream out = new FileOutputStream(dest);
		byte[] buffer = new byte[(int) source.length()];
		FileInputStream in = new FileInputStream(source);
		in.read(buffer);
		try {
			out.write(buffer);
		} finally {
			out.close();
			in.close();
		}
	}
}



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733097.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Lutz Horn <lu...@fastmail.fm>.
Hi,

Am Fr, 24. Mai 2013, um 13:53, schrieb milan777:
> HI....clause thanks for ur information but will u please help for FTP
> transfer in java or apache camel...thanks

The FTP/SFTP/FTPS Component is described here:
https://camel.apache.org/ftp2.html

Do you have a specific problem?

Lutz
-- 
Please do not send me Microsoft Office/Apple iWork documents.
Send OpenDocument instead! http://fsf.org/campaigns/opendocument/
Email? Try FastMail! http://www.fastmail.fm/?STKI=600622
http://fixtracking.com/ | http://dontbubble.us/ | http://donttrack.us

Re: Camel-configuration

Posted by milan777 <mi...@gmail.com>.
HI....clause thanks for ur information but will u please help for FTP
transfer in java or apache camel...thanks



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5733085.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Claus Ibsen <cl...@gmail.com>.
Yeah you can construct the HL7 message as a String or use the HAPI API
where there is java objects with getter/setters for that.



On Wed, Sep 4, 2013 at 5:10 PM, TechieDeep <de...@gmail.com> wrote:
> Thanks for the reply.
>
> I will check and try to work out. I am trying to construct an HL7 message
> from java object having string and list parameters.
>
> Can I do it without using HAPI lib.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5738690.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: Camel-configuration

Posted by TechieDeep <de...@gmail.com>.
Thanks for the reply.

I will check and try to work out. I am trying to construct an HL7 message
from java object having string and list parameters.

Can I do it without using HAPI lib.



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5738690.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Read on the page, later down there is a little example how to send a
HL7 message (from string) to a hl7 endpoint, at section _More Samples_

The endpoint uses 127.0.0.1 as the hostname, but you can use a remote hostname.


On Wed, Sep 4, 2013 at 4:33 PM, TechieDeep <de...@gmail.com> wrote:
> Hi Claus,
>
> The hl7 camel example expects and inbound message in hl7 (correct me if I am
> wrong). I am trying to create an hl7 outbound message using some values
> getting from database and sending.
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5738685.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: Camel-configuration

Posted by TechieDeep <de...@gmail.com>.
Hi Claus,

The hl7 camel example expects and inbound message in hl7 (correct me if I am
wrong). I am trying to create an hl7 outbound message using some values
getting from database and sending.





--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5738685.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

Check the camel-hl7 docs
http://camel.apache.org/hl7

There is some details about setting up a hl7 listener in spring xml.

Then the rest is just a camel spring xml route which there is plenty
of examples on the Camel web site.


On Wed, Sep 4, 2013 at 12:36 PM, TechieDeep <de...@gmail.com> wrote:
> Hi Claus,
>
> I am trying to configure camel setup for hl7 outbound messages using
> camel-spring. can you guide me on that or provide me any reference link
> which I can use or if you have any example.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5738666.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: Camel-configuration

Posted by TechieDeep <de...@gmail.com>.
Hi Claus,

I am trying to configure camel setup for hl7 outbound messages using
camel-spring. can you guide me on that or provide me any reference link
which I can use or if you have any example.



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5738666.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

You can watch this webinar - Building superior integrated applications
with open source Apache Camel
http://fusesource.com/resources/video-archived-webinars/

There is live demos of how to create a new Camel project from scratch
and have it imported into Eclipse / Fuse IDE.

You can also just search the web about how to create new java projects
in Eclipse. But if you use the maven archetypes to create a new Camel.
Eclipse has a wizard so you can do it all from within Eclipse.
http://camel.apache.org/camel-maven-archetypes.html

The webinar shows you that.



On Wed, May 22, 2013 at 9:08 AM, milan777 <mi...@gmail.com> wrote:
> Thanks clause.....but there is not sufficient and simple information i need
> steps for configurating camel into eclipse.. it would be better if u will
> write simple steps or simple code files for "helloworld" or anything in
> camel...that will be very helpful for many people as well as me thanx in
> advance
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5732940.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Re: Camel-configuration

Posted by Thibault Cassan <th...@gmail.com>.
Is this link sufficient then ?
http://camel.apache.org/walk-through-an-example.html


2013/5/22 milan777 <mi...@gmail.com>

> Thanks clause.....but there is not sufficient and simple information i need
> steps for configurating camel into eclipse.. it would be better if u will
> write simple steps or simple code files for "helloworld" or anything in
> camel...that will be very helpful for many people as well as me thanx in
> advance
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5732940.html
>  Sent from the Camel - Users mailing list archive at Nabble.com.
>

Re: Camel-configuration

Posted by milan777 <mi...@gmail.com>.
Thanks clause.....but there is not sufficient and simple information i need
steps for configurating camel into eclipse.. it would be better if u will
write simple steps or simple code files for "helloworld" or anything in
camel...that will be very helpful for many people as well as me thanx in
advance 



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936p5732940.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel-configuration

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

I suggest look at the getting started page
http://camel.apache.org/getting-started.html

And read chapter 1 of Camel in Action to learn more about Camel and
see the simple example in this chapter.
http://www.manning.com/ibsen/Camel_ch01_update.pdf

And also read this article is a great to learn about Camel
http://java.dzone.com/articles/open-source-integration-apache



On Wed, May 22, 2013 at 8:34 AM, milan777 <mi...@gmail.com> wrote:
> How could i make a simple programme using apache camel??
> please write all simple steps..
> i am very new to these technology
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-configuration-tp5732936.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cibsen@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen