Skip to main content
Inspiring
July 16, 2014
Question

Starting InDesign server from a remote location

Hi All,

I have a java application program running on a remote machine say M1.

I have InDesign Server CS6 installed on another machine say M2.

Now my question is as follows.

Is it possible to start InDesign Server which will serve SOAP request from a java application program(running on M1).

Regards,

Alam

This topic is closed to new replies. Start a new post to keep the conversation going.

6 replies

Adobe Employee
July 3, 2015

Hi alam_84

Yes, it is possible to run an instance of IDS form a java application on a remote machine.

In your case- IDS is running on machine M1(say it's IPv4 address is <xx.xx.xx.xx>) on port 11111(say).

To access this instance of IDS from remote machine through cmd you need to give this command :-

sampleclient -host <xx.xx.xx.xx>:11111 <scriptPath>

If you want to fire this command from a java application, you need to add an event listener to your java program :-

One workaround can be:-

1. Create a .bat file containing the above command.

2. Create a java applet having a button it in and put this code snippet in actionPerformed function:-

              File batchFile = new File("C:\\Users\\xyz\\Desktop\\a.bat");

              String hel=batchFile.getAbsolutePath();

              ProcessBuilder processBuilder = new ProcessBuilder(hel);                

              final Process process = processBuilder.start();

3. Clicking on button should start executing the script on the remote location.



Thanks

Vivek Ranjan

Adobe Indesign Team

Translate
Legend
July 4, 2015

Hi Vivek,

if I get you right you describe how to invoke the separate sampleclient executable on the client machine so that it can submit a request to the InDesign Server already running on a separate machine. This should not require a .bat file, I think Java can handle that itself if you figure out how to do SOAP.

To me the keyword in the original question was "start". Therefor I described the Mac approach to configure the server machine so that an InDesign Server instance is started / launched and thus able to handle the request, even if the previous request caused a shutdown or crash of the instance. For completeness sake (this thread is 11 months old) it would be kind if you could describe the matching mechanisms for Windows.

Dirk

Translate
Legend
July 18, 2014

Yes, it is possible. Handling requests is exactly the purpose of the SOAP interface.

If your key issue is the word "start", refer to the specifics of your operating system for services.

On the Mac, InDesign Server comes with an example launchd configuration, it might require some tweaks in arguments, stdout/stderr file redirection and so forth.

launchd(8) Mac OS X Manual Page

launchd.plist(5) Mac OS X Manual Page

Translate
alam_84Author
Inspiring
July 23, 2014

Hi Dirk,

I am not getting you, please elaborate more.

I want to start InDesign server from a remote location, Let me know how I could do this.

Suppose InDesign server is inastalled on a machine M1 and I my application programs running on another machine say M2.

Thanks,

Alam

Translate
Legend
July 25, 2014

Hi Alam,

launching processes is the responsibility of the operating system, not of the application. For OSX, the responsible OS process is the "launch demon" - launchd. That launchd process will monitor the port until your initial request arrives, start the InDesign Server instance and hand over the socket connection. The socket will then be handled by the InDesign Server until it quits or crashes.

launchd is configured via launchd.plist files which must be located in the folders described at the bottom of the man page. I think InDesign Server comes with an example launchd.plist. You'd adjust it to your choice of port, output files, additional command line parameters, then copy the plist to the required location. Either reboot or tell launchd via the launchctl utility about the changes.

Windows probably has similar means to start services on demand.

Dirk

Translate