PK oWU/ META-INF/PK oWU/¹Ù--META-INF/MANIFEST.MFManifest-Version: 1.0 Created-By: 0.92-gcc PK ZWU/Äe•uuexample/lookup/Lookup.classÊþº¾/rexample/lookup/Lookupjava/lang/Objectclass$0Ljava/lang/Class; Synthetic()VCode   LineNumberTableLocalVariableTablethisLexample/lookup/Lookup;main([Ljava/lang/String;)Vjava/util/Properties  java.naming.factory.initial setProperty8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/Object;  java.naming.provider.urljavax/naming/InitialContext(Ljava/util/Hashtable;)V  !lookup&(Ljava/lang/String;)Ljava/lang/Object; #$ %  'example.HelloWorldHome)java/lang/Class+forName%(Ljava/lang/String;)Ljava/lang/Class; -. ,/java/lang/NoClassDefFoundError1java/lang/Throwable3 getMessage()Ljava/lang/String; 56 47(Ljava/lang/String;)V 9 2:javax/rmi/PortableRemoteObject<narrow7(Ljava/lang/Object;Ljava/lang/Class;)Ljava/lang/Object; >? =@example/HelloWorldHomeBcreate()Lexample/HelloWorld; DE CFjava/lang/SystemHoutLjava/io/PrintStream; JK ILexample/HelloWorldNhello P6 OQjava/io/PrintStreamSprintln U9 TV(Ljava/lang/Object;)V UX TYjava/lang/Exception[printStackTrace ] \^ java/lang/ClassNotFoundException`args[Ljava/lang/String;propLjava/util/Properties;icLjavax/naming/InitialContext;orLjava/lang/Object;homeLexample/HelloWorldHome;hwLexample/HelloWorld;eLjava/lang/Exception; SourceFile Lookup.java!  /*· ±     &€»Y·L+*2¶W+*2¶W»Y+·"M,*2¶&N-ÆQ-²(YÇW*¸0Y³(§»2Z_¶8·;¿¸AÀC:¹G:²M¹R¶W§L²M+¶Z+¶_±:?Fass\ 6 %-1Zcs!t"{#&H€bckde%Nfg-FhiZjkclmt nopqPK ZWU/u·¤bbexample/lookup/Lookup.javapackage example.lookup; import java.util.Properties; import javax.naming.InitialContext; import javax.rmi.PortableRemoteObject; import example.HelloWorld; import example.HelloWorldBean; import example.HelloWorldHome; import javax.naming.InitialContext; public class Lookup { public static void main(String[] args) { // //This example looks up the home interface of an EJB to a namespace // try{ Properties prop = new Properties(); prop.setProperty("java.naming.factory.initial",args[0]); prop.setProperty("java.naming.provider.url",args[1]); InitialContext ic = new InitialContext(prop); Object or = ic.lookup(args[2]); if (or != null) { // Narrow the return object to the Home class type HelloWorldHome home = (HelloWorldHome)PortableRemoteObject.narrow(or, HelloWorldHome.class); // Create an EJB object instance using the home interface. HelloWorld hw = home.create(); // Invoke the method System.out.println(hw.hello()); } }catch(Exception e){ System.out.println(e); e.printStackTrace(); } } } PK oWU/ META-INF/PK oWU/¹Ù--'META-INF/MANIFEST.MFPK ZWU/Äe•uu†example/lookup/Lookup.classPK ZWU/u·¤bb4example/lookup/Lookup.javaPK Î