#1 2011-05-11 20:06:49

ZeljkaMom
Member
Company: SRL Global , London
Registered: 2011-01-14
Posts: 148
Website

JDBCSP component

Hi everyone,

How do I pass the JDBCSP component jdbc connection properties from a configuration file?

For example, I have one database server for testing, one database server for production environment.  I don't want to hardcode the JDBC connection string/user/password in the component, I want to be able to pass the properties at run-time.

thanks
Zeljka

Offline

#2 2011-05-11 21:00:09

jholman
Member
Registered: 2008-10-15
Posts: 126

Re: JDBCSP component

Export the connection stings to context in the connection wizard. You can then use different contexts for default values, or override the defaults using tContextLoad.

Offline

#3 2011-05-12 10:12:13

ZeljkaMom
Member
Company: SRL Global , London
Registered: 2011-01-14
Posts: 148
Website

Re: JDBCSP component

Could you please give me some example as I am not sure what you have mean by "Export the connection string to context in the connection wizard" ...

below is schema of my work and I just need to be able to have "context.JDBC" under JDBC URL .


Uploaded Images

Last edited by ZeljkaMom (2011-05-12 10:13:13)

Offline

#4 2011-05-12 14:21:25

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

Re: JDBCSP component

Hi
jholman meant click on the 'export as context' button to export the connection string to context. see my screenshot.

Best regards
Shong


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

#5 2011-05-12 15:57:47

ZeljkaMom
Member
Company: SRL Global , London
Registered: 2011-01-14
Posts: 148
Website

Re: JDBCSP component

hi shong,

I can't see any screen shot , could you please re send again.

Thanks
Zeljka

Offline

#6 2011-05-12 16:10:13

ZeljkaMom
Member
Company: SRL Global , London
Registered: 2011-01-14
Posts: 148
Website

Re: JDBCSP component

I am not sure if I was clear what actully I will need it.

I do not want to hard code connection to my server on JDBCSP component and also I am just passing paraments to it.
I want my XML file to be writine in the database as string. (see my schema).

Thanks
Zeljka

Offline

Board footer

Powered by FluxBB