Quantcast

How to capture a java out

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

How to capture a java out

Gnanaguru S
Hi,

I want to send a system.out message from a java program to a queue. I want to do this using a camel.

Is it possible with any camel component.

I have not been with these kind of use case. I would like to do it.

Please help.


Regards
Guru
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to capture a java out

Gnanaguru S

Hi

Adding to the point. I was reading some part of camel in action. I saw a section there it tells about stream component.

Such that I can read a file and send it to stream component. Will this be a kind of solution for my question?

Please help.

Regards
Guru
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to capture a java out

Christian Mueller
In reply to this post by Gnanaguru S
Did you tried to find it by yourself? It's the first suggestion if you
google with "Apache Camel Stream" [1]...

[1] http://camel.apache.org/stream.html

Best,
Christian

On Thu, Apr 19, 2012 at 1:35 PM, Gnanaguru S <
[hidden email]> wrote:

> Hi,
>
> I want to send a system.out message from a java program to a queue. I want
> to do this using a camel.
>
> Is it possible with any camel component.
>
> I have not been with these kind of use case. I would like to do it.
>
> Please help.
>
>
> Regards
> Guru
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-capture-a-java-out-tp5651505p5651505.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to capture a java out

Gnanaguru S

Thanks Chris,

Yes I guessed this could be the component. But logically I don't have idea how I can stream from system.out.

Let's assume a output string ' hello ' which am printing to the console using system.out. I have to send this string as a stream. How can I use the stream component here.

Because I went through the syntax of stream component. I didn't got idea.

Please help.

Regards
Guru
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to capture a java out

magnuspalmer
I think this is actually what you are looking for, the camel-exec
component...
http://camel.apache.org/exec.html

There is even a Executing Java example in there for you.

Den 19 april 2012 15:59 skrev Gnanaguru S <[hidden email]>:

>
> Thanks Chris,
>
> Yes I guessed this could be the component. But logically I don't have idea
> how I can stream from system.out.
>
> Let's assume a output string ' hello ' which am printing to the console
> using system.out. I have to send this string as a stream. How can I use the
> stream component here.
>
> Because I went through the syntax of stream component. I didn't got idea.
>
> Please help.
>
> Regards
> Guru
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/How-to-capture-a-java-out-tp5651505p5651824.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: How to capture a java out

Gnanaguru S

Hi Magnus & Chris,

Let me try out both of the components. And post the update.


Regards
Guru
Loading...