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

Bug 346300

Summary: Create EJB Client Jar action creates an empty project but with no source code or interfaces
Product: [WebTools] WTP EJB Tools Reporter: Roberto Sanchez Herrera <shr31223>
Component: jst.ejbAssignee: Carl Anderson <ccc>
Status: RESOLVED FIXED QA Contact: Kaloyan Raev <kaloyan>
Severity: normal    
Priority: P3 CC: bakalsky, cbridgha, david_williams, dimitar.giormov, raghunathan.srinivasan, stryker
Version: 3.0.5Flags: cbridgha: review+
Target Milestone: 3.0.5 P   
Hardware: PC   
OS: All   
Whiteboard:
Bug Depends on: 309757    
Bug Blocks:    
Attachments:
Description Flags
Proposed patch ccc: iplog+

Description Roberto Sanchez Herrera CLA 2011-05-18 12:52:58 EDT
This bug is to backport the code to move interfaces to EJB client project to WTP 305P

+++ This bug was initially created as a clone of Bug #309757 +++

To reproduce:

A) Set up project
1) Ensure you are in the Java EE perspective
2) File -> New -> project
3) Select EJB -> EJB Project
4) Select Next
5) In resulting EJB Project Dialog enter project name (<project-name>) and select Add Project to EAR checkbox
6) Select Next
7) Uncheck Create an EJB Client Jar Module ...
8) Select Finish

B) Create a SLSB
1) Highlight the project created in A) (<project-name>)
2) Right Click -> New -> Session Bean
3) Add package name Class name and check Create business interface Remote
4) Select Finish
5) Fix any unresolved classes (in my case I had to add jboss-javaee.jar)
6) Add a member variable ie String message
7) Generate getter + setters
8) verify you have an SLSB with local and remote interfaces that can set + get a message.

C) Create a client jars to access the SLSB created in B)
1) Highlight the project created in A)
2) Right Click -> JEE Tools -> Create EJB Client Jar
3) Select Finish
4) Observer the <project-name>Client project is created
5) Check what is created within the <project-name>Client project...

reading http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse.jst.ejb.doc.user/topics/ceclientjars.html I would expect that all classes required would be there except for value objects. 

This action should potentially move some interfaces into the client project.
Comment 1 Roberto Sanchez Herrera CLA 2011-05-18 16:18:38 EDT
Created attachment 196048 [details]
Proposed patch

Backport of bug 309757 plus the fix in bug 345499
Comment 2 Chuck Bridgham CLA 2011-05-19 11:37:02 EDT
approved
Comment 3 Carl Anderson CLA 2011-05-20 11:45:13 EDT
Committed to R3_0_5_patches