Eddie,
How do you shutdown HSQL without the Wrapper? Is there another class
that is run?
If so, that is exactly what Method #2 is used for. That method will
run the primary
class in the same way as method #1. But it will launch another class's
main method
when it is time to shutdown.
Cheers,
Leif
Eddie.Peterson wrote:
> Leif,
>
> Thank you for the link! It was perfect. I got HSQL running as a service on
> my first try using method #1. There is only one concern I have. When you
> stop the service it does not send the SHUTDOWN directive to HSQL. This
> closes the database but does not commit the current data. The data is
> written out to a file named <dbname>.script and it then processed at the
> next startup. I was wondering if there was a way to send commands prior to
> ending the service? If not, I will hope that everything is processed when
> the service restarts. Thanks again!
>
> --Eddie
>
>
>
> Leif Mortenson-2 wrote:
>
>> Eddie,
>> I have not wrapped the standalone HSQL db myself. But often use an
>> embedded
>> HSQL component in applications. Great little DB. There is no reason
>> why you
>> shouldn't be able to get up and running. The best place to start is
>> often at the
>> beginning. The steps are all clearly spelled out in the documentation.
>> Start by
>> trying out method #1. That works great for most apps.
>>
>> http://wrapper.tanukisoftware.org/doc/english/integrate.html
>>
>> Let me know if you run into any problems after reading over the
>> integration
>> section of the docs.
>>
>> Cheers,
>> Leif
>>
>> Eddie.Peterson wrote:
>>
>>> Just started reading about the Java Service Wrapper and it seems very
>>> userful. I was looking for a way to encapsulate the HSQL database using
>>> this
>>> Wrapper. Is that possible? If so, what are the high level steps involved?
>>> Thanks in advance for any information you can provide.
>>>
>>> Best,
>>> --Eddie
>>>
>>>
|