Phuu Thu

Greenhorn
+ Follow
since Jun 18, 2012
Merit badge: grant badges
For More
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 Phuu Thu

Hi,
I got a problem connection and RMI server..
host name = dev1bv
port number = 5235

code is:
localObj = (SvrObjInterface) Naming.lookup("//dev1bv:5235/RMIServer");

and when I try to retrieve
TObj = localObj.getTObj();
I got null value for TObj.. I checked and localObj is not null.. Please help me. I think it is because it uses default host name and port ???
11 years ago
Hello all, I am new to this forum and j2ee. Currently I am doing a system that needs to get Tariff Rate from another Server called "RMIHOST". I am amending the current system and it is done with BEA weblogic. I was given Tarrif.jar and I can just call

String tariffCode = "1111"; Strind dateTime = "19980101 00:00:00"; //I get the dateTime as a currentdatetime and changed to that format
RmiTariffObj tariff = TariffClient.getTarifficObj( tariffCode, dateTime);
float rate = tariff.rate();

The problem is, instructions says I need to pass in the attribute of host name and port number of RMIHOST server.
I saw some wrote like init() in LoginServlet but I don't have one. I only have loginController.java and LoginFilter.java.
And I keep getting null value for rate T_T
What are the steps to connect to the server?
Do I have to use .properties file?
I was also given host name and port number of the server.
Please help me.. T_T