This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

J2ee Weblogic connecting to Tariff Server

 
Phuu Thu
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic