1.*_Stub.class,和*_Skel.class是你的app server产生的,都是自动的,不用你自己来做。
解决方案 »
- 腾讯 新浪 搜狐 短网址 算法 讨论一下,寻找最佳、最合理、最适合扩展的方案
- 严重: Exception starting filter encodeFilter
- 请教JAVA发送XMLHttpRequest方法
- 小小问题,给我带来大麻烦,给高手指点~~~
- ejb 3.0三张表两个一对多关系的关联映射有问题。
- 为什么在用struts做的jsp页面的输入框中的中文提交到后台后都变成了乱码,怎样解决?
- 关于数据库连接池的错误,请大家帮忙看看(非常急)
- 请问JAR如何打包
- 100分求struts代码,不要原代的 例子 谢谢
- 请问各位,我在网上找到一段用JAVA写的CGI程序,不知道怎么用?
- 一个ejb的概念问题.
- 有免费的EJB 容器吗?
Deployment: Behind the Scenes
If you're an advanced user, you may want to know what happens inside the J2EE server when you deploy an application. Here's the story:1. The server transfers the application JAR file from the deploytool process to the j2ee process.After this step, the server uses the transferred copy of the application JAR file to do its work, and the JAR file that was manipulated by the deployment tool is left unchanged.2. The j2ee process saves the application JAR file in its repository at this directory:
install-dir/repository/hostname/applications
3. The j2ee process opens the application JAR file, reads the deployment descriptors, and generates the home interface and EJBObject implementation for each Bean. These Java files are placed in the following directory:install-dir/repository/hostname/gnrtrTMP
4. The j2ee process compiles the home interface and the EJBObject implementations and then runs the rmic command on the class files.
This step creates the stubs and skeletons for the home and remote objects. The server sends the client JAR file to the deployer and saves the file with the name chosen at the start of the deployment process.5. The server packages the generated classes into a server JAR file and stores the JAR file in the repository.6. The server creates a client JAR file that contains the home and remote interfaces and the stubs for the home and remote objects.The server sends the client JAR file to the deployer and saves the file according to the name chosen at the start of the deployment process.The location of the client JAR file is added to the CLASSPATH environment variable on any client that calls the application. Then, at runtime, the appropriate stub classes can be loaded so that the client can successfully locate objects, for example, the home object for an enterprise bean in the application.If the JAR file has any Web components, the EJB server copies the components to and installs them on the Web server.7. If you started j2ee with the -singleVM option (the default), the j2ee process hosts the enterprise beans in its process and creates containers for them.If you started the j2ee process with the -multiVM option, the server starts a process which loads the server JAR file and creates containers for the enterprise beans.8. At this point, the deployment process is complete.
你的意思是在用jbuilder打包成jar时产生了*_Stub.class,和*_Skel.class吗?
而jsp调用ejb的时候,stub被自动下载到jsp的容器中?可我也看到有的做法是编译生成stub和skel,然后把stub和客户程序放在客户端,是不是这二种做法都可以?
我再仔细看一下!!谢谢!