![]() |
Telelogic DOORS (steve huntington) | ![]() |
new topic :
profile :
search :
help :
dashboard :
calendar :
home
|
||
Latest News:
|
|
Topic Title: Connecting from a JAVA App Topic Summary: Created On: 10-Apr-2006 19:03 Status: Post and Reply |
Linear : Threading : Single : Branch |
![]() |
![]()
|
![]() |
|
Could someone provide some sample code that demonstrates connecting to Doors and running a DXL script from JAVA?
|
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
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 |
|
![]() |
|
![]() |
|
Thank you for that post. I'll check out the link.
|
|
![]() |
Telelogic DOORS
» DXL Exchange
»
Connecting from a JAVA App
|
![]() |
FuseTalk Standard Edition v3.2 - © 1999-2009 FuseTalk Inc. All rights reserved.