Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to run an Assembly line from command prompt.

1,109 views
Skip to first unread message

naresh....@gmail.com

unread,
Dec 18, 2012, 3:12:00 AM12/18/12
to
Hi All,

I am very new to TDI. I am struggling to find out how can i run an assembly line from the command promp. I googled out and find out the below command.

ibmdisrv –c myConfig.xml –r myAssemblyLine

my command line is as below.

C:/tdisolutions/workspace>ibmdisrv -c NotesToDB2Project\Runtime-NotesToDB2Project\NotesToDB2Project.xml -r DominoToDB2AssemblyLine1

But this is not working.
Please let me know whether I am following correct syantax.
If not so, Please let me know from which directory I need to run this command and the syntax of command

vald...@lemche.net

unread,
Dec 18, 2012, 12:23:44 PM12/18/12
to
I would normally export my project into a runtime configuration (rs.xml) in some directory, which would be my "solution directory", and use the syntax "full\path\to\ibmdisrv -s full\path\to\solution\directory -r full\path\to\solution\directory\rs.xml -r "assemblyLine"

spiderc...@gmail.com

unread,
Jan 8, 2013, 2:26:51 PM1/8/13
to
Just a couple of comments here:

First, if you put the Config xml file in the solution directory, then you don't need to specify a path. Typically I have a sub-folder in my SolDir for each project, and can then use a relative path for each Config xml I want to load. More on this approach here:

http://www.tdiingoutloud.com/2010/02/what-is-solution-directory.html

Second, I would suggest calling the xml file something beside rs.xml, as you did in your original post :)
You don't need to export this explicitly since TDI generates the Config xml each time you save, run or debug your solution. This file is written to the Runtime-<ProejctName> folder in the Workspace/<ProjectName> area.

You can also right-click on a Project, choose Properties and then Tivoli Directory Integrator properties. Here you can set up a Link File, so that the CE generates the Config xml as the file you specify (instead of under the Runtime-xxx folder)

Trivia: TDI was once called RelationshipServer - which is where 'rs' comes from :)

-Eddie

sore...@gmail.com

unread,
Feb 7, 2013, 2:08:31 PM2/7/13
to
On a related note... when running AL's from a cmd line, is it possible to return status messages to the console on completion?

The only output we see is the inital CTGDKD024I...

Thanks

Eddie Hartman

unread,
Feb 8, 2013, 5:33:35 PM2/8/13
to
And easy way is to write to stdout from script

java.lang.System.out.println("Success!")

Note that the AL does not even have to stop to do this, and you can pipe this output to some other process to interpret.

You can also set exit codes. These only apply when the AL stops and the Server shuts down. For example, like this:

main.shutdownServer(exitCode)

http://www.stephen-swann.co.uk/javadoc/tdi7.1.1/com/ibm/di/server/RS.html#shutdownServer(int)

-Eddie
0 new messages