Welcome to Telelogic Product Support
  Home Downloads Knowledgebase Case Tracking Licensing Help Telelogic Passport
Telelogic DOORS (steve huntington)
Decrease font size
Increase font size
Topic Title: Connecting from a JAVA App
Topic Summary:
Created On: 10-Apr-2006 19:03
Status: Post and Reply
Linear : Threading : Single : Branch
Search Topic Search Topic
Topic Tools Topic Tools
Quick Reply Quick Reply
Subscribe to this topic Subscribe to this topic
E-mail this topic to someone. E-mail this topic
Bookmark this topic Bookmark this topic
View similar topics View similar topics
View topic in raw text format. Print this topic.
 10-Apr-2006 19:03
User is offline View Users Profile Print this message


Greg Karbett

Posts: 1
Joined: 26-Jan-2006

Could someone provide some sample code that demonstrates connecting to Doors and running a DXL script from JAVA?
Report this to a Moderator Report this to a Moderator
 11-Apr-2006 09:40
User is offline View Users Profile Print this message


Iftakher Uddin

Posts: 56
Joined: 16-Sep-2004

Hi,

you can do it several ways... I think the easy way is following:

1a. Create a batch file where you have to call your dxl script using -batch switch (for details see DOORS help file)
or,
1b. Create a batch file where you have to
i. login to DOORS
ii. Execute a dxl file using runFile(dxlFileName) function
2. Call that batch file from your Java code.

Unfortunately I have no sample code.

Greetings,

Rony
Report this to a Moderator Report this to a Moderator
 11-Apr-2006 14:51
User is offline View Users Profile Print this message


Tony Goodman

Posts: 1098
Joined: 12-Sep-2002

Never done any Java, but if you can find an example of Java using OLE automation to ANY application, then you should be able to modify that to talk to DOORS. See this post for an example of running a script in DOORS from Excel. Running DOORS from Excel

-------------------------
Tony Goodman
http://www.smartdxl.com
Report this to a Moderator Report this to a Moderator
 12-Apr-2006 15:00
User is offline View Users Profile Print this message


Stefan Schuck

Posts: 4
Joined: 12-Apr-2006

I want to do nearly the same..

I know there has to be a way with a DXL Batch Server and something about IPC, but because I'm a complete newby I don't know where to start and how to set all up.

could you post the solution if you find one?

Just a small example for the exchange of two strings between client and server would be enough, the rest I can menage on my own (at least I think so)
that would be very nice.

thanks in advance


-------------------------
Stefan Schuck

Siemens - SN MN CC PM PO
Berlin Germany

Schuck.Stefan@siemens.com

Edited: 12-Apr-2006 at 15:06 by Stefan Schuck
Report this to a Moderator Report this to a Moderator
 10-Oct-2007 09:50
User is offline View Users Profile Print this message


Stephan Beutel

Posts: 2
Joined: 9-Oct-2007

Hello,

I've the same problem. After searching 2 weeks in Google I couln't find any solution to connect to DOORS.

The following thing I like to know:
- How to connect to Doors (Socket, RMI, Datagram)?
- How to send DXL commands over the network (cleartext, binary)?
- How get the return statemants of the DXL commands?
- How to create a login procedure?

Thanks a lot for help.

Stephan

Edited: 10-Oct-2007 at 09:51 by Stephan Beutel
Report this to a Moderator Report this to a Moderator
 10-Oct-2007 17:03
User is offline View Users Profile Print this message


David Pechacek

Posts: 674
Joined: 5-Dec-2006

Check this thread out.

How to run a command line string with Java

You could then build the command that would go in the batch file and run it using code from that post.

Start /b /WAIT doors.exe -d 36677@yourdoorsdb -batch "yourdxlscript.dxl" -u "yourusername" -password "yourpassword"

So just store the beginning part and the only part that will really vary will be the script run. I wouldn't suggest using an account with Create, Modify, and/or Delete privileges unless needed as you'd have to hard code the username and password (or have your Java program prompt for them in a dialog before opening DOORS).

-------------------------
David Pechacek
AAI Services Textron
dpechacek@sc-aaicorp.com
David.Pechacek@gmail.com
Report this to a Moderator Report this to a Moderator
 11-Oct-2007 09:53
User is offline View Users Profile Print this message


Stephan Beutel

Posts: 2
Joined: 9-Oct-2007

Thank you for that post. I'll check out the link.
Report this to a Moderator Report this to a Moderator
Statistics
20925 users are registered to the Telelogic DOORS forum.
There are currently 1 users logged in.
The most users ever online was 15 on 15-Jan-2009 at 16:36.
There are currently 0 guests browsing this forum, which makes a total of 1 users using this forum.
You have posted 0 messages to this forum. 0 overall.

FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.