You are not logged in.
Announcement
Unanswered posts
|
Pages: 1

Hi,
I have created a job which is having some child jobs attached. But all having same DB Connection metadata.
Job1--->Job2
Say Job1 is calling Job2 and both have same DB connections (same metadata attached from repository)
So I created a context group "DBConnection" and used that in both the jobs.
Now I exported the Parent Job(Job1) Script including its childrens by clicking on checkbox Apply Children.
Now I want to change the context variable values and deploy it in some other environment where DB connection details are different.
What I did is in Job1 .bat file I modified --"--context=DBConnection" from its original value--"--context=Default" as follows
cd %~dp0
java -Xms256M -Xmx1024M -cp classpath.jar; nvimigration.job1_0_1.job1 --context=DBConnection %*
And modified the connection parameters in following file
....\Job1\src\nvimigration\contexts\DBConnection_0.1.item with respective changes in DB IP and credentials.
But after making these changes also when I tried running the .bat file it was using old DB credentials only.
Please suggest if I am doing something wrong. Or there is some other way to implement the same
Thanks ,
Anuradha.
and tried to run
Offline

Can anybody please help me on this ..... ![]()
Offline
Hello
See [Forum, topic 1615] Passing variable (context) value from the command line to learn how to set the value of context varaible dynamically.
Best regards
shong
Offline
Pages: 1