What is your method to generate Websphere 6 EJB with Ant / JDK 1.4.x?

The only working method I found, several years ago, was :

  1. Generating ibm-ejb-jar-bnd.xmi and ibm-ejb-jar-ext.xmi for each session bean by using XDoclet (ejbdoclet task)
  2. Making a jar (without stubs) with task jar; ;
  3. Calling the binary EJBDEPLOY with this jar without stub in parameters.

But I feel there must be a cleaner method. Which is yours ?

Asked by: Adrian446 | Posted: 21-01-2022

Answer 1

i use the wsejbdeploy ant task, if you are using ws_ant that comes with RAD then you can have something like the below in your build file

<taskdef name="wsejbdeploy" classname="com.ibm.websphere.ant.tasks.WsEjbDeploy"/>
<wsejbdeploy inputJar="${EjbJarFile}" outputJar="${tempEjbJarFile}" workingDirectory="${tempWS.dir}"  noWarnings="true" classpathref="project.classpath"/>

Answered by: Owen913 | Posted: 22-02-2022

Similar questions

java - WebSphere Portal v.5.1 and AJP?

is there a way to configure WebSphere Portal to accept AJP connections? E.g. Tomcat/JBoss and Oracle have a specific AJP port. I can't find it in WebSphere, and I'm getting tired of Googlin' around IBM pages. Thank you in forward... Balint

java - How do you enable JMX in Websphere?

I would like to use JConsole to monitor my Websphere application, but I am not sure how to enable JMX.

java - CPU Usage Spikes in WebSphere 6.1

First, just a bit of background: One of our customers is experiencing CPU usage spikes for WebSphere instances running one of our web apps (other instances with other apps are fine). They have a test environment and a live environment (both iSeries) which both experience the problem - with a single app per instance setup. We have deployed this application locally in our own test environments and also for m...

java - How to display Excel content from Struts portlet on Websphere Portal

Here is the code, it don't display the .csv file: public class ForwardAction extends MultiAction { private static final String FILE_ERROR = "&lt;h3&gt;&lt;center&gt;INVALID FILE&lt;/center&gt;&lt;/h3&gt;"; public ActionForward doVizualizare(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws Exception { StringBuffer sb = new Strin...

java - WebSphere MQ using JMS

I have an application that uses WebSphere MQ Java API along with a configuration (xml) file to access MQ. I would like to migrate to WebSphere JMS API. For this i try creating 1) WebSphere MQ Queue Connection factory and 2) WebSphere MQ Queue destinations from my local WAS. When i configure my Queue destinations and try to set my MQ Config parametes i get an error message like "WMSG0316E: You tried to view a Queue that wa...

java - JAX-WS client in websphere with custom ssl socket factory

I have JAX-WS generate client proxys that need to connect using HTTPS. The certificate handling needs to be custom since we store the certs in a database instead. I have a working version for the SUN JAXWS implementation, but now I need to have the same client code working in WebSphere 7.0. Unfortunately the JAX-WS standard is a little weak in this regard. It is an implementation specific procedure on how t...

java - JMS bridge in WebSphere 7.0

How can I define a JMS bridge in WebSphere 7.0 application server?

class - Best to way to re-load java classes without WebSphere re-start?

Any re-sources or best-practices for implementing dynamic class re-loading feature into a J2EE WebApp on WebSphere App Server? The point is I don't want to bring down my web-application while certain classes are updated.

java - How to automate a websphere 6.1 headless ant build using cruise control

I am building/creating a build box in which I want to automate the build process using cruise control. I have install ClearCase and cruise control. My target application server is WebSphere 6.1. For this box, do I need to do a full install of WAS 6.1 or can I just copy over parts from another box to this box so that the build will work? I am trying to avoid burning a license if possible.

java - WebSphere MQ Message Listener Threads

I am trying to figure out how WSMQ handles message listeners and threads. If I have one instance of a message listener, and have many queues, does each listener create a new thread for each queue? Or will there be one thread for the listener? Any insight will greatly help, thank you.

Still can't find your answer? Check out these amazing Java communities for help...

Java Reddit Community | Java Help Reddit Community | Dev.to Java Community | Java Discord | Java Programmers (Facebook) | Java developers (Facebook)