import javax.naming.InitialContext;
import javax.naming.NamingException;

import se.omicron.TemperatureRemote;



public class TempTest {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		
		try {
			InitialContext ctx = new InitialContext();
			TemperatureRemote r = (TemperatureRemote) ctx.lookup("HelloWorld/TemperatureImpl/remote");
			double c=37.0;
			System.out.println(c+"C = "+r.celcius2farenheit(c)+"F");
		} catch (NamingException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
