Expand my Community achievements bar.

Help on component and services.

Avatar

Former Community Member
So, I'm a new user of Livecycle, and I m trying to create a simple component able to lunch a jsp page or a simple external programm (ie : iexplorer .... ).



So I wrote a simple component (java + xml), and imported it into livecycle.

Then the service is available ...



I've started the porcess, a new action arrived, (for the moment all is fine).

I execute (complete) the new action based on my custom component, but nothing happend.

The tracking status is complete.



I was hoping to see a new explorer but nothing ... :-(



String s1 = "rundll32 url.dll,FileProtocolHandler ";

Runtime rt =Runtime.getRuntime();

try {

Process p = rt.exec(s1);

} catch (IOException e) {

e.printStackTrace();

}



That code is working fine in eclipse or in beanshell.



So help.
2 Replies

Avatar

Level 4
I believe you would need to be logged into the server as the same user who is running JBoss and possibly the JBoss would need to be running as an application and not a service. It's likely the process is triggering (unless you have an exception in your server.log), but you just can't see it. As you are firing up an explorer window it probably won't have an entry in Task Manager either. I'd try with an obvious process you can be sure isn't running first like notepad.exe and check whether it appears in task manager on the server after the code runs.



It seems strange to be firing up GUI-based applications from a server side process except in the rarest of circumstances. Did you intend for the explorer window to run for the user who is doing the process? If so, I believe that's impossible as Workspace is a Flash application, and Flash very sensibly does not allow execution of code on client machines.

Avatar

Former Community Member
In fact the final goal is to retrieve an url built by the component (invoking the service) and to execute that url on the client side.



How should I do ?



I'm open to any suggestion.



PS:

with notepad.exe, the process is not started too.