The thing I didn't want to see, this problem has been sequet.
Our application is actually running on Sun ONE Application Server. I originally thought that everything I got everything in J2EE RI, I could smoothly transition these things to my target platform. I didn't expect, waiting for me, but another problem. Hey, Java's portability!
Start the stage exotic smoothly. Although Sun One Studio is an IDE that makes people caught compliment, but it is still more pleasant to SUN ONE Application Server. With the help of the wizard, I quickly built a new HelloWorld EJB, add it to an EJB Module, deploy, OK. Several necessary parameters are also very fast from the documentation, so several parameters are set to: env.put ("java.naming.factory.initial," com.sun.jndi.cosnaming. "); Env.put (" java.naming.provider.URL "," iiop: //xxx.xxx.xxx.xxx: port "); Lookup method, I used JNDI name, and discarding the need Cutting reference name. Everything in front of me seems to predict, I just have to click Run, and the task is completed.
When I got Run, the incredible scene occurred, the program was dead, and it did not move. I can't believe this, quickly use the most original trick: add print information. Printing information Give me an answer is that the program is running to the following sentence. Context initial = new initialcontext (env);