简体   繁体   English

如何为IBM的launchclient制作应用程序客户端jar文件

[英]How to make an application client jar file for IBM's launchclient

Hi I'm facing with a bug in old ejb application which is deployed on IBM Websphere 6.1. 嗨,我遇到了旧的ejb应用程序中的错误,该错误已部署在IBM Websphere 6.1上。 Previously it ran but now it stopped for some reason which I have to investigate. 以前它运行了,但是现在由于某种原因我不得不调查了它停止了。 I'm trying to get it to run locally on my desktop, and I'm trying to access the session bean with IBM's launchclient application. 我试图使其在本地桌面上运行,并且试图使用IBM的launchclient应用程序访问会话bean。 I pass in the ear as the argument (yes that's IBM specific) and the ears contains both the ejb-jar and the ejb-client.jar (also IBM specific). 我将参数作为耳朵传入(是IBM特定的),并且耳朵同时包含ejb-jar和ejb-client.jar(也是IBM特定的)。

Launchclient fails with the message: myear does not contain an Application Client jar file. Launchclient失败,并显示以下消息: myear不包含Application Client jar文件。 Which may be true, but it does contain the client-ejb jar file, which I even bothered to address with -CCjar=MyEjbClient.jar. 可能是正确的,但是它确实包含client-ejb jar文件,我什至不愿使用-CCjar = MyEjbClient.jar来解决该文件。 My question is how can I make an application client jar file? 我的问题是如何制作应用程序客户端jar文件?

I cant find much information on the launchclient thing, I do have RAD 7.x or something, but to be honest I want to stay away from it as much as possible and it's getting really frustrating. 我找不到关于launchclient的很多信息,我确实有RAD 7.x或其他东西,但是老实说,我想尽可能地远离它,这真的令人沮丧。

regards, 问候,

PS someone knows a nice NO IBM job? PS有人知道IBM没有出色的工作吗?

It is not sufficient to have an ejb-client-jar, you need an application client JAR. 拥有ejb-client-jar是不够的,您需要一个应用程序客户端JAR。 Also, -CCjar can only be specified for an application jar (and it's not necessary if you only have one). 另外,只能为一个应用程序jar指定-CCjar(如果只有一个,则没有必要)。

To add an application client JAR to an EAR, you need to: 要将应用程序客户端JAR添加到EAR,您需要:

  1. Create a Java class with a traditional main method. 使用传统的main方法创建一个Java类。
  2. Package the class in a JAR in the EAR. 将类打包到EAR中的JAR中。
  3. Add a Main-Class to the META-INF/MANIFEST.MF in the JAR. 在JAR的META-INF / MANIFEST.MF中添加一个Main-Class。
  4. Add a META-INF/application-client.xml file to the JAR. 将META-INF / application-client.xml文件添加到JAR。
  5. Add the module to application.xml in the EAR: 将模块添加到EAR中的application.xml中:

     <module> <java>MyClient.jar</java> </module> 

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM