Hi Jeff,

may this is possible (I am doing it with ATG Dynamo):
If your weblogic-server is installed as a service you can use net start/stop 
with a short workaround. Either you can write a batch file which contains 
something like that:

sc \\my-remote-server start myService
or
rem Be aware that netsvc returns 1 if everything went well and not 0
netsvc myService \\my-remote-server start

Than. you can run the batch file with the exec task.

Cheers,
Jens

PS: If you need the netsvc.exe from the resource kit, I can mail you this one.

Zitat von Jeff Barrett <[EMAIL PROTECTED]>:

> I'm having a conceptual problem here, or at least I think I am.  The 
> tasks I seem to need to automate testing with cactus and ant (e.g. 
> <cactus> or <runservertests>) require me to specify what tasks to call 
> to start and stop the server.  I have one task that starts the server, 
> but it just calls a java ant task.  Let's call it weblogic-start.
> 
> These other tasks could certainly call weblogic-start no problem.  But, 
> as far as I understand it, the thread of control wouldn't return from 
> the call to weblogic-start since it hangs around as long as the server 
> is running.  Control would never return to the <cactus> or 
> <runservertests> tasks so that they could then run the tests.
> 
> Assuming I'm right about this, I'm guessing I would need the ant task 
> that starts the server to call some script that will start the server 
> but detach control from it.  Any ideas how to do that?  I'm working on a 
> windows machine -- is there some way I can maybe startup weblogic as a 
> windows service from an ant task?
> 
> Thanks.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to