• Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Does joblet enlist as part of parent tOracleConnection, if it exists?

#1 2009-12-01 18:19:22

dadumas
Member
Company: Avaya
Registered: 2009-08-12
Posts: 219

Does joblet enlist as part of parent tOracleConnection, if it exists?

I have a tOracleRow, that inserts a single row of meta data, from the value of context variables.   It currently is not a joblet.  However, it is now very generic, and I wish to make it a joblet, if feasible.  Sometimes (as a joblet), it will be called from a job in which an open  tOracleConnection exists, and sometimes not. 

So, can an "open transaction" span joblets?  Span jobs?

Thanks,

Dave

Offline

#2 2009-12-02 03:56:57

shong
Talend team
Registered: 2007-08-29
Posts: 10289
Website

Re: Does joblet enlist as part of parent tOracleConnection, if it exists?

Hello Dava
Yes, you can share and use the connection between main job and jobjet.

Best regards

          shong


Uploaded Images


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#3 2009-12-02 17:13:51

dadumas
Member
Company: Avaya
Registered: 2009-08-12
Posts: 219

Re: Does joblet enlist as part of parent tOracleConnection, if it exists?

That is fantastic!
thanks,
Dave

Offline

#4 2009-12-02 21:04:05

dadumas
Member
Company: Avaya
Registered: 2009-08-12
Posts: 219

Re: Does joblet enlist as part of parent tOracleConnection, if it exists?

shong wrote:

Hello Dava
Yes, you can share and use the connection between main job and jobjet.

Best regards

          shong

Shong,

I tried this, but I cannot link tOracleRow_9 to the joblet (Insert MsgLog) using the "OnSubjobOk" trigger link.  I have setup the shared db connection in both.

My goal is to connect  tOracleRow_9 to connect to the joblet, and then connect the joblet to tOracleRow_8.

???

Screenshots below.

I should add that I can get this to work, using an "Input" inside the joblet instead of a "Trigger Input".  However, since a row trigger would call this in this way, that requires that incomming schemas to the joblet to be the same, and they will not be in my application.  So to get around that, if I remove all all schema elements, then I can get it to work.  But that workaround is not the best in my opinion.  I woudl prefer to use an "OnSubjobOk" trigger to link into the "Trigger Input" in the joblet.

Also, there needs to be a tOracle component.  It would act just like tOracleRow, but would not be considered iterative.  It would be just like a tOracleSP, but not require a stored proc to be executed.  I.E. It could execute any SQL that does not return a resultset.


I am using 3.1.4.

Dave


Uploaded Images

Last edited by dadumas (2009-12-02 21:49:54)

Offline

#5 2009-12-03 03:08:53

shong
Talend team
Registered: 2007-08-29
Posts: 10289
Website

Re: Does joblet enlist as part of parent tOracleConnection, if it exists?

Hello

but I cannot link tOracleRow_9 to the joblet (Insert MsgLog) using the "OnSubjobOk" trigger link.

I thought you should know that you are not allowed to create a cycle flow in Talend. See [Forum, topic 1468] multiple tAgregateRow and tMap components.

Best regards

         shong


Uploaded Images


Email:shong@talend.com
Choose Talend, Enjoy Talend!
New & Event: Talend Help Center
Talend-->the leader of open source data management and application integration solutions!

Offline

#6 2009-12-03 17:02:33

dadumas
Member
Company: Avaya
Registered: 2009-08-12
Posts: 219

Re: Does joblet enlist as part of parent tOracleConnection, if it exists?

shong wrote:

Hello

but I cannot link tOracleRow_9 to the joblet (Insert MsgLog) using the "OnSubjobOk" trigger link.

I thought you should know that you are not allowed to create a cycle flow in Talend. See [Forum, topic 1468] multiple tAgregateRow and tMap components.

Best regards

         shong

Shong,

looked at that post, but I did not see the similarity that you describe.  I am just trying to link up an upstream input to the joblet, and a ink from the joblet to the downstream component.

???


Dave

Offline

  • Index
  •  » Talend Open Studio for Data Integration » Usage, Operation
  •  » Does joblet enlist as part of parent tOracleConnection, if it exists?

Board footer

Powered by FluxBB