You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-user@db.apache.org by Jan Lagerpusch <ja...@edict.de> on 2009/03/18 17:51:05 UTC
How to configure Derby/java DB on opensolaris for remote access
Hi,
I am not sure whether this belongs to the derby or to the opensolaris/SMF
mailing list, but I'll give it a try here:
I am desperately trying to enable remote access to the SUNWjavadb (coming
with GlassFish) on an x86 openSolaris (2008.11) system. I would like to use
the SMF, so the javadb service is controlled by SMF, but I am not able to
find out which properties I have to set.
Without SMF, I can simply start /opt/SUNWjavadb/bin/startNetworkServer -h
0.0.0.0
But by doing this, that javadb instance is not under SMF control.
Using SMF, remote access to the javadb instance is disabled. What do I have
to do to enable it?
Thanks a lot in advance,
Jan Lagerpusch
Re: How to configure Derby/java DB on opensolaris for remote access
Posted by Kristian Waagan <Kr...@Sun.COM>.
Jan Lagerpusch wrote:
>
> Hi,
>
> I am not sure whether this belongs to the derby or to the
> opensolaris/SMF mailing list, but I’ll give it a try here:
>
> I am desperately trying to enable remote access to the SUNWjavadb
> (coming with GlassFish) on an x86 openSolaris (2008.11) system. I
> would like to use the SMF, so the javadb service is controlled by SMF,
> but I am not able to find out which properties I have to set.
>
> Without SMF, I can simply start /opt/SUNWjavadb/bin/startNetworkServer
> –h 0.0.0.0
>
> But by doing this, that javadb instance is not under SMF control.
>
> Using SMF, remote access to the javadb instance is disabled. What do I
> have to do to enable it?
>
> Thanks a lot in advance,
>
> Jan Lagerpusch
>
This question was answered on databases-discuss@opensolaris.org
(2009-03-19). Copying the reply here:
"""
Hi Jan,
You can add extra startup flags to the network server from the command
line like this:
$ svccfg -s javadb 'setprop javadb/server_start_args = ("-h" "0.0.0.0")'
$ svcadm refresh javadb
$ svcadm restart javadb
There are other properties you could set too to change how the network
server is started/stopped. If you take a look at /lib/svc/method/javadb
it should give you a pretty good idea of how you can tweak it.
--
Knut Anders
"""
--
Kristian
Re: How to configure Derby/java DB on opensolaris for remote access
Posted by Knut Anders Hatlen <Kn...@Sun.COM>.
Jan Lagerpusch <ja...@edict.de> writes:
> Hi,
>
> I am not sure whether this belongs to the derby or to the opensolaris/SMF
> mailing list, but I’ll give it a try here:
>
> I am desperately trying to enable remote access to the SUNWjavadb
> (coming with GlassFish) on an x86 openSolaris (2008.11) system. I
> would like to use the SMF, so the javadb service is controlled by SMF,
> but I am not able to find out which properties I have to set.
>
> Without SMF, I can simply start /opt/SUNWjavadb/bin/startNetworkServer –h
> 0.0.0.0
>
> But by doing this, that javadb instance is not under SMF control.
>
> Using SMF, remote access to the javadb instance is disabled. What do I
> have to do to enable it?
For the archives I'll just mention that Jan's question was answered on
another mailing list:
http://mail.opensolaris.org/pipermail/databases-discuss/2009-March/000445.html
You can add extra startup flags to the network server from the command
line like this:
$ svccfg -s javadb 'setprop javadb/server_start_args = ("-h" "0.0.0.0")'
$ svcadm refresh javadb
$ svcadm restart javadb
There are other properties you could set too to change how the network
server is started/stopped. If you take a look at /lib/svc/method/javadb
it should give you a pretty good idea of how you can tweak it.
--
Knut Anders