Forums Register Login

RMI Newbie— how to programmatically run RMI Registry from within web app

+Pie Number of slices to send: Send
Hello,

I want to invoke Java RMI Registry from within the web app that will be deployed on server. Also, the Java.policy file will also be stored within the files of the web app.

How do I invoke RMIRegistry to run in the above scenario? Is it possible to store the java.policy file as a part of the web app (and not separately as a standalone file with its own path-> as most guides advise?)

Another thing-- I am trying to run a java web app, and in the guide for that web app it is advised that " For your server to register with the RMI registry you must run rmiregistry from the command prompt. IMPORTANT: you must do this from somewhere where it cannot find your class files, ie. not from your codebase."

The problem is that I am trying to deploy the web app on a cloud PaaS-> where I dont have direct shell access to the server running Tomcat...Should I create a separate web app just to invoke RMIRegistry, and keep the web app clearly separate from the RMIRegistry invocation web app?(To meet the above condition..)?

Thanks,
Arvind.
+Pie Number of slices to send: Send
What is the purpose of running the RMI Registry within the web app (in the same node?)?
His brain is the size of a cherry pit! About the size of this ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1707 times.
Similar Threads
HELP: Muilt-Threaded Server
registry binding problem in RMI
how to get Clients CPU information on Server using Java RMI
RMI Newbie— how to programmatically run RMI Registry from within web app
RMI registry service timeout
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 02:21:54.