GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes J2ee Weblogic connecting to Tariff Server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "J2ee Weblogic connecting to Tariff Server" Watch "J2ee Weblogic connecting to Tariff Server" New topic
Author

J2ee Weblogic connecting to Tariff Server

Phuu Thu
Greenhorn

Joined: Jun 18, 2012
Posts: 2
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

 
GeeCON Prague 2014
 
subject: J2ee Weblogic connecting to Tariff Server