File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes RMI Newbie— how to programmatically run RMI Registry from within web app Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "RMI Newbie— how to programmatically run RMI Registry from within web app" Watch "RMI Newbie— how to programmatically run RMI Registry from within web app" New topic
Author

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

Arvind Ik Chari
Greenhorn

Joined: Dec 02, 2012
Posts: 13
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.
Vijitha Kumara
Bartender

Joined: Mar 24, 2008
Posts: 3825

What is the purpose of running the RMI Registry within the web app (in the same node?)?


SCJP 5 | SCWCD 5
[How to ask questions] [Twitter]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: RMI Newbie— how to programmatically run RMI Registry from within web app