Raghu Kodali's Radio Weblog


Subscribe to "Raghu Kodali's Radio Weblog" in Radio UserLand.

Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.


Monday, September 01, 2003
 

"I have an EJB I wrote in JDev which requires about a dozen supporting JAR files. The EAR file, of course contains the JAR file that contains the EJB artifacts. I'd prefer the jars to be outside of the EJB JAR but within the EAR because I intend to add other EJBs to this EAR which will also use these jars."

One way to achieve this is

Let us say you have 2 Projects

Project A (contains ejbs - one ejb.jar)
--Has a EJB Deployment profile
--Modify the settings to make sure that it doesn't package helper classes or additional jar files

Project B
-- Has an EAR deployment profile
-- Has a simple archive deployment profile

Edit the libraries in Project B (project settings) to add all the JAR file you want to add.
Edit the simple archive deployment profile (under dependency analyzer) and select the jar file

Edit the EAR deployment profile settings to include the EJB deployment from Project A and Simple archive file from Project B.

Before creating the EAR file, edit the EJB deployment profile in Project A to add a mainfest file so that the EJB can look at the jar files which are at the EAR level.

Now create the EAR file.


6:05:52 PM    

How-to create WebLogic 8.x connections in JDeveloper 9.0.3.2 ?

  1.  Copy weblogic.jar from Weblogic8.x into JDEV_HOME/JDEV/lib/ext
  2.  Create an application server type using Weblogic7.x
  3.  In the connection point to weblogic.jar from Weblogic 8.x version (connection panel)

     Note: The "test connection" would still fail. (JDev runs on JDK 1.3.x)

  4.  Change the JDK version for the project you are trying to deploy
  5.  Create new J2SE Version in libraries of Project settings
  6.  This new J2EE Vesion should point to JDK 1.4.1.x
  7.  Select the deployment profile in the above project (4) and deploy to the connection created in step (2)

5:59:06 PM    


Click here to visit the Radio UserLand website. © Copyright 2003 Raghu Kodali.
Last update: 9/21/2003; 12:07:18 AM.
September 2003
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Aug   Oct