Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 241670

Summary: .war packaging of EJB components
Product: [WebTools] WTP EJB Tools Reporter: Kaloyan Raev <kaloyan>
Component: jst.ejbAssignee: Carl Anderson <ccc>
Status: RESOLVED FIXED QA Contact: Kaloyan Raev <kaloyan>
Severity: enhancement    
Priority: P3 CC: ccc
Version: unspecifiedKeywords: plan
Target Milestone: 3.2 M6   
Hardware: All   
OS: All   
Whiteboard: JavaEE6
Bug Depends on: 303917    
Bug Blocks: 241666    
Attachments:
Description Flags
Initial support for creation of 3.x beans in WARs and WebFragments none

Description Kaloyan Raev CLA 2008-07-22 10:19:17 EDT
With the EJB 3.1 specification EJB beans can now be packed in Web module archives - .war
We should redesign Java EE project in a way to make such packaging possible. 

Article: http://blogs.sun.com/kensaks/entry/simplified_ejb_component_packaging
Comment 1 Kaloyan Raev CLA 2009-02-02 04:49:42 EST
Decommitting Java EE 6 support for WTP 3.1
Comment 2 Carl Anderson CLA 2010-02-25 13:14:21 EST
With the Module Assembly page, I verified that an EJB project can now be referenced/targetted to a Web project's WEB-INF/lib.  I also verified that an EJB jar file can be dropped into WEB-INF/lib.  Furthermore, WAR export correctly exports these EJB jars into a WAR's WEB-INF/lib.

So is this bug completed?  Or is there more to this bug that we need to accomplish?
Comment 3 Kaloyan Raev CLA 2010-02-25 13:45:03 EST
Carl, as far as I remember, some time ago we decided to split the work in two steps:
  1) implement packaging of EJB projects in Web projects
  2) implement creation and packaging of EJB artifacts in Web projects. 

As far as I understand step 1 is already done. So we can close the bug with this limited, but working state. 

Do we have a bug to track step 2?
Comment 4 Carl Anderson CLA 2010-03-04 00:22:42 EST
We might as well use this one to track step 2.
Comment 5 Carl Anderson CLA 2010-03-04 00:45:49 EST
Created attachment 160896 [details]
Initial support for creation of 3.x beans in WARs and WebFragments

This includes some fixes to problems introduced in bug 304595.  The initial changes committed for that bug keep us from creating EJBs in EJB projects.
Comment 6 Carl Anderson CLA 2010-03-04 02:46:50 EST
*** Bug 303917 has been marked as a duplicate of this bug. ***
Comment 7 Carl Anderson CLA 2010-03-04 02:48:05 EST
Committed to HEAD for WTP 3.2 M6.