Solved

RMI

Posted on 2001-06-11
9
272 Views
Last Modified: 2010-03-31
Hi all
I have application which take java program and make it as NT service.

the java application have to run RMI server, one of the parameters for the RMI server is (I almost sure about it):
  Djava.rmiServerCodeBase = http:\\dir1\dir2

if dir1 name composed from two words with space between then, the rmi server have problem with it.


can someone please let me know what the rmiServerCodeBase is used for and why I have this problem ?


is there any problem with regular application that run RMI server (where can I read the possible params for the RMI).
    Thanks
0
Comment
Question by:dannynt
9 Comments
 
LVL 1

Expert Comment

by:jimsims
ID: 6178587
if the server is UNIX based, it will have a problem with spaces in file names unless they are enclosed in quotes
0
 
LVL 3

Expert Comment

by:sghosh092199
ID: 6179173
Hi!

rmiServerCodeBase is required to determine the host address of the RMI Server.

If it is of the form http:\\dir1\dir2, the RMI Server is located on the host identified by http:\\dir1\dir2.

Now, space will be a problem. It is the same situation that we can't provide a space in any of the URL address.
0
 

Author Comment

by:dannynt
ID: 6180043
how can I solve the problem, if I want to run my application from c:\program file\dir1

I need a sulotion for this situation.
    Thanks
0
Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

 
LVL 3

Expert Comment

by:chrisos
ID: 6180861
Use:

http:\\c:\program%20file\dir1

You have to encode the space character.

Regards,

Chrisos
0
 
LVL 3

Expert Comment

by:sghosh092199
ID: 6181610
You can define a virtual directory in your web server for the said directory name. Say, c:\program file\dir1 can be mapped to http://program
0
 

Author Comment

by:dannynt
ID: 6181703
sqhosh Hi
please explain you self
0
 
LVL 3

Accepted Solution

by:
sghosh092199 earned 50 total points
ID: 6181755
Virtual directory is actually an alias of the absolute/real directory. It is the name that is exposed to the outside world.

In the above example http://program represents the absolute/real directory c:\program file\dir1.

You have the option of defining such virtual directory in Web Server administration.
0
 

Author Comment

by:dannynt
ID: 6181778
sqhosh HI
do you mean to httpd.conf configuraion file in the apachi web server.
0
 
LVL 3

Expert Comment

by:sghosh092199
ID: 6181784
That is correct!
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to parse custom JSON to POJO java 4 72
groupSum6 challenge 6 86
jar file executable 12 51
Facing this issue for maven proxy setting 2 9
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the last of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers our test design approach and then goes through a simple test case example, how …
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question