|
From: whack er <wha...@ya...> - 2004-02-18 14:43:31
|
Try this :)
Registry registry =LocateRegistry.createRegistry(1099);
YourServer rmiserver=new YourServer();
registry.rebind("//localhost/remoteserver",rmiserver);
Naming.rebind("//localhost/remoteserver);
There is no need to run rmiregistry seperately.
Hope this help.
Russell Rice <rr...@mo...> wrote:
I've done this (quite oddly, I might add - and there's probably a better way to
do it and anyone else feel free to chime in)
My process was before I needed the "rmiregistry" in my java app server (service,
even), I execute the process from inside Java as a new thread. The trick is to
make sure that process gets killed when the service shuts down. I don't have
exact code available right now, but if you need additional help, let me know -
I can hunt down a code snippet.
Russ
Quoting Gerardo Rojas :
> All,
>
> I have been trying unsuccesfully to run Java's builting "rmiregistry" as a
> service. I have tried several diff combinations but nothing seems to work.
> I have downloaded the Wrapper and made all changes. I believe this is not
> working because the rmiregistry is an executable. Any feedback or HELP would
> be appreciated.
>
>
> --
> Gerardo S. Rojas
> mailto: gr...@st...
>
>
-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Wrapper-user mailing list
Wra...@li...
https://lists.sourceforge.net/lists/listinfo/wrapper-user
---------------------------------
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want. |