(Answer) (Category) FAQ-O-Matic : (Category) General : (Category) J2EE/JSP/EJB/Servlets/JDBC :
I need to override my EJB's Jar's Manifest file so that I can specify a CLASSPATH. How do I do this?
Bill Joy writes:

It turns out there is a backdoor way to do what you want. If you modify your project (with JBuilder closed) and add one line to it, you will be able to specify the location of a MANIFEST.MF file which JBuilder will then use when building your EJB jar.

That line looks like (assuming a .jpx project file format)

  <property category="archiving" name="overrideManifestPath" value="src/META-INF/MANIFEST.MF"/>

where the value is a location relative to the EJB Module. The line needs to be specified as a property of your EJB Module so it needs to be inside the existing context, something like:

  <file path="Untitled1.ejbgrpx">
     <property category="archiving" name="overrideManifestPath" value="src/META-INF/MANIFEST.MF"/>
   </file>

Your MANIFEST.MF would look something like:

  Manifest-Version: 1.0

  Name: Test
  Class-Path: My.jar

2002-Mar-22 8:12am gyles19@visi.com
[Append to This Answer]
2002-Mar-22 8:12am
Previous: (Answer) How do I organize a Web app project in JBuilder 4?
Next: (Answer) I want to edit a weblogic enterprise bean in JBuilder 6 Enterprise. I have an existing project with the DD descriptors already. When I import the XMLfiles by generating an "EJB Module from Descriptors", the weblogic-ejb-jar.xml is overwritten, destroying my <persistence> entry.
This document is: http://www.visi.com/~gyles19/cgi-bin/fom.cgi?file=367
[Search] [Appearance]
This is a Faq-O-Matic 2.709.
This FAQ administered by gyles19@visi.com.

Other JBuilder Links

Java Community
Java Tools
Code Central
JB OpenTools
Community
Recent
Threads
Borland Chat
Chat FAQ
Feature Matrices
3.0 |  3.5 |  4.0
5.0 |  6.0 |  7.0
Shop for
JBuilder
JBuilder
Downloads
and reg keys
Report Piracy
Online Manuals
4.0 |  5.0 |  6.0
7.0
Borland
DevSupport's
Bug/RFE Form

Quality Central Client
JB Patches &
Updates
JBuilder FAQs TIs
JBuilder
Newsgroups
Tamaracka's
News Archive
Mr. Haki's
JBuilder Machine
JGuru's
JBuilder FAQ
Sun's Bug
Parade
Netring Home - About - Privacy
The
JBuilder Netring Logo
The Borland JBuilder Netring by JBuilder FAQ-O-Matic
[ Join Now | List Sites | Random | << Prev | Next >> ]
[ Previous 5 Sites | Skip Previous | Skip Next | Next 5 Sites ]