This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 84447 - allow EJB classes to come from other (normal Java) projects
Summary: allow EJB classes to come from other (normal Java) projects
Status: RESOLVED WONTFIX
Alias: None
Product: javaee
Classification: Unclassified
Component: EJB (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: martin_adamek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-07 15:54 UTC by wqtnetbeans
Modified: 2016-07-07 08:52 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wqtnetbeans 2006-09-07 15:54:37 UTC
I have this setup:

A JavaSE project "MyJavaProj" (yes, it does use JavaEE API. But since the
project will only serve as lib to other JavaEE project, I set it up as a normal
Java proejct):
....
${root.dir}/JavaSEProj/src/mypack/ejb/MyMDB.java
....


An JavaEE/MDB project "MyMDB" (depends on MyJavaSEProj):
...
${root.dir}/MDBproj/src/conf/ejb-jar.xml
...

Apparently the reason why I have this setup is that the same "MyMDB.java"
class will be re-used by JavaEE projects other than "MyMDB".

Now when I set up "MyMDB" project, the wizzard doesn't provide the capabililty
for me to choose "mypack.ejb.MyMDB" as the implementation of the MDB I
want. It seems to force me to choose/create a class inside the "MyMDB"
project.

I am not sure whether this is intended or a bug. I believe the j2ee
1.4 spec does not provent the use of implementation class from a Jar
file as long as the jar file is specified in the MANIFEST.MF file of
the EJB jar.
Comment 1 Martin Adamek 2006-09-08 10:34:16 UTC
Which wizard do you mean?
Comment 2 wqtnetbeans 2006-09-08 15:46:03 UTC
The "new EJB component" wizard:

Right click the EJB project node -> new -> Enterprise -> Message-Driven Bean (I
think same for session beans) -> next -> Name and Location

Now in here, you can only select/create the implementation classes within the
current EJB project. The bug/enhancement would be - you should be able to select
classes from other projects on which the current EJB project depends on as well.

Comment 3 Martin Adamek 2006-09-11 16:28:49 UTC
Ok, so I am changing this to enhancement. The question is if this functionality
should be in wizard or in visual ejb-jar.xml editor.
Comment 4 wqtnetbeans 2006-09-11 19:45:17 UTC
Why not both? ;)
Comment 5 Martin Balin 2016-07-07 08:52:59 UTC
This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue.

Thanks for your cooperation,
NetBeans IDE 8.2 Release Boss