Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 346300 - Create EJB Client Jar action creates an empty project but with no source code or interfaces
Summary: Create EJB Client Jar action creates an empty project but with no source code...
Status: RESOLVED FIXED
Alias: None
Product: WTP EJB Tools
Classification: WebTools
Component: jst.ejb (show other bugs)
Version: 3.0.5   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: 3.0.5 P   Edit
Assignee: Carl Anderson CLA
QA Contact: Kaloyan Raev CLA
URL:
Whiteboard:
Keywords:
Depends on: 309757
Blocks:
  Show dependency tree
 
Reported: 2011-05-18 12:52 EDT by Roberto Sanchez Herrera CLA
Modified: 2011-05-20 11:45 EDT (History)
6 users (show)

See Also:
cbridgha: review+


Attachments
Proposed patch (5.70 KB, patch)
2011-05-18 16:18 EDT, Roberto Sanchez Herrera CLA
ccc: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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