Nathalie,
Unfortunately this is not currently possible with the Wrapper.
The controlEvent method of the WrapperListener receives system signals
received by the JVM process. These are different from the signals sent by
the ServiceManager, or in your case another service. Those signals are only
received by the Wrapper process. It currently is ignoring any unknown
signals.
I don't have any suggested workarounds for you at the moment, sorry.
I am currently working on a new Event system in the Wrapper which will allow
this kind of thing to be done. It is still going to take a little bit of
time before
that API has been finalized however. But the goal is to have it in the next
release. I will plan on making Service events amongst those reported to
listeners.
Cheers,
Leif
Vancaudenberg Nathalie wrote:
> Hi,
>
> I am using wrapper 3.1.1 (integration method 3) and wrote a small
> program that is incorporated as a service in a large program
> (developed at another location). This large program uses a specific
> service control event to inform others about changes. When receiving
> such an event certain actions need to be taken.
>
> My problem now is that JSW does not forward user defined service
> control events to the WrapperListener. The other party does not want
> to change their code so I need to find a solution.
>
> Is it possible for the JSW to forward service control events different
> from stop, shutdown and interrogate to controlEvent(int) of the
> WrapperListener?
>
>
> Kind regards,
> Nathalie Vancaudenberg.
>
|