Re: Multiple output and input

2016-07-12 Thread Pradeep A. Dalvi
In Apex, an app can have multiple pipelines i.e. multiple input operators.
Do you want to read the same set of data from same db table and
duplicate it on 2 different output ports? If yes, then you would need
to extend the input operator and add another output port in extended
class.
Can you share errors?

--prad

On Tue, Jul 12, 2016 at 9:19 AM, Jaikit Jilka  wrote:
> Hello,
>
> In my application I am using JdbcPojooutput operator and JdbcPojoInput 
> operator. I was thinking whether we can have multiple output for 
> JdbcPojoInput operator as currently I am using 2 JdbcPojoInput operator. I 
> tried to do so but I got error. So I want to know can we do that?
>
> Thank You,
>
> Jaikit Jilka


Re: Multiple output and input

2016-07-12 Thread Ankit Sarraf
Looks like you are trying to create an Operator that has multiple input
sources and multiple output sinks. For this specific question, I guess you
want to have 2 DefaultOutputPort. So you can try the following in the
JdbcPojooutput operator.

final transient DefaultOutputPort  op1 = new DefaultOutputPort<>();
final transient DefaultOutputPort  op2 = new DefaultOutputPort<>();

And in the StreamingApplication, specify the streams using op1 and op2 to
respective sinks.

On Tue, Jul 12, 2016 at 9:19 AM, Jaikit Jilka  wrote:

> Hello,
>
> In my application I am using JdbcPojooutput operator and JdbcPojoInput
> operator. I was thinking whether we can have multiple output for
> JdbcPojoInput operator as currently I am using 2 JdbcPojoInput operator. I
> tried to do so but I got error. So I want to know can we do that?
>
> Thank You,
>
> Jaikit Jilka
>


Multiple output and input

2016-07-12 Thread Jaikit Jilka
Hello,

In my application I am using JdbcPojooutput operator and JdbcPojoInput 
operator. I was thinking whether we can have multiple output for JdbcPojoInput 
operator as currently I am using 2 JdbcPojoInput operator. I tried to do so but 
I got error. So I want to know can we do that?

Thank You,

Jaikit Jilka