I am unable to use tPreJob & tPostJob components in Talend open studio 6.4. When I right-click on these components then I get Trigger->On Component Ok as the only option. Nothing appears in 'Setting's as well. Please let me know how to resolve this issue.
This is normal.
You don't have to configure anything in these components.
They're just here to start autonomous subjob where the corresponding event occurs.
There is not output flow from these components.
That is exactly what you would expect. tPreJob and tPostJob components are used to run before your main body of code and after your main body of code. Think of them as StartUp and ShutDown activators. The tPostJob is REALLY useful because it will always run....even if you have Java errors that stop the job.
What you need to do is to use the OnComponentOK triggers to connect to another component to "start" your pre or post process.
Connect the DB Connection component to the tPreJob component.
Connect the DB Close component to the tPostJob component.
The rest of the code will be able to use this connection now.