Fredrik Safstrom

Greenhorn
+ Follow
since May 15, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Fredrik Safstrom

Terry,
I had the same problem when I didn't regenerated the stub after setting the package to RMI in my client and server files...
Did you re-generate the stub after setting package to RMI ???
/Bamse
20 years ago
Terry,
What's wrong with distributing the stub it with your RMI client?
Another way would be to package everything in a JAR file and run the client from the JAR file, in this case you only need to distribute one file...
I don't know how to get the stub from an FTP server, but you could definitly put it on a web-server and load it from there...
You can then specify the web-server in your codebase and it should work fine...
/Bamse
20 years ago
Pratik,
You can run RMI without a web-server, I've done that without any problems...
However if you have an Applet that uses RMI, the Applet can only connect to the same server as the Web-server so in this case, you will have to run the Web-server and RMI server on the same machine...
/Bamse
20 years ago
Saravanan,
Are you trying to connect to your Fax via the seriell/paralell port or are you using a modem ???
It might be easier to install a fax-software as your printer driver, then you could just print to the specific printer in stead of figuring out how the fax works...
/Bamse
20 years ago
Reach,
I don't know if it helps, but try setting your Proxy settings... http://www.davidreilly.com/java/java_network_programming/#2.4
/Bamse
20 years ago
Saritha,
Just out of curiosity...
Why would you like to run the RMI registry on a different machine than your RMI server???
Why don't you just create one in your RMI Server code ???

/Bamse
20 years ago
Sharp,
In this case I don't think your Authenticator works...
Yahoo mail seems to use JSP, ASP or something similar to ensure security, so the Authenticator doesnt work.
If you could have typed in "http://UserName:Password@mail.yahoo.com" in your browser and go straight into your mail box, then you can get the Authenticator to work...
Maybe if Yahoo Mail uses parameters like "http://mail.yahoo.com?User=UserName&Password=PassWord" you can figure out a way of heading straight into your mail-box...
I think you will have to ask Yahoo about that...
/Bamse
20 years ago
Richard,
Fredrik, is this due to the fact that PL/SQL procdures can be stored on the server side?
-> Yes, the PL/SQL is executed on the server. Actually, the Oracle server would execute this for you, so everything would be executed internally in the Oracle server. That is why you would gain performance.
On the other hand, if you are doing some complicated data-manipulation in the PL/SQL you might slow down the Oracle server for other cilents.
Just to show my ignorance here. I understood java object could be stored on the server side as well. Wouldn't that also reduce the network traffic?
-> If you would run the Java client on the same machine as your Oracle server, you would of course not have any network traffic.
/Bamse
Rajini,
Try adding upp the following lines in your {Java Home}\jre\lib\security\java.policy file:
// Special permission for RMI.
permission java.net.SocketPermission "*", "connect";
permission java.net.SocketPermission "*", "accept";
Your file should then look something like this:

You also have to start the rmiregistry in a second dos-prompt (or second shell on unix). Just start a new dos-prompt and type rmiregistry.
/Bamse
20 years ago
Chris,
Since you are trying to lookup "localhost" (Naming.lookup("//localhost:2001/objectname")) you will not lookup the server, but rather the client. Try replacing localhost with the name of your server or the servers IP address...
Also, I would try adding doublequotes to your codebase, java.rmi.server.codebase="http://localhost:8000/".
You should not have to, but I don't think it hurt to try...
/Bamse
20 years ago
Yoel,
The barcode is usually converted into keystrokes by the scanner.
/Bamse
20 years ago
Richard,
The argument to use PL/SQL in stead of Java would be performance and less network-traffic.
For example, to update table 1 with data from table 2 would mean that you read the data over the network to your client, do the processing of the data and then update the database again. If the tables contain a lot of data, this would cause a lot of network traffic.
In PL/SQL you could do this directly on the database server and would save some network traffic. You would also gain performance unless you do some complicated analysis of the data that your client is faster at doing than the server is.
/Bamse
Parmeet,
You can use a simple class I posted earlier: http://www.javaranch.com/ubb/Forum45/HTML/000243.html
This doesn't work on binary data, but it is excelent for providing easy encryption/dercyption of messages.
HTH
/Bamse
20 years ago
Rama,
I haven't used this code in JSP, I guess you can use it in a bean that your JSP page calls.
Here is a "Live" example from an application that store the user and password in an Object called nos.

Later in the program I use the following to encrypt/decrypt the password from a password field.
To Encrypt:

And to Decrypt:

I then serialize the nos Object into a file to save my options to my hard drive.
Hope this helps, I'm sorry to say that I cannot help you with JSP.
/Bamse
20 years ago