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 55011 - [ejb] Incorrect hint in ws template
Summary: [ejb] Incorrect hint in ws template
Status: CLOSED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 4.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Petr Jiricka
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2005-02-16 09:19 UTC by Lukas Jungmann
Modified: 2006-03-24 13:13 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Jungmann 2005-02-16 09:19:01 UTC
[build 200502151900]

-create new web service in EJB module

=> generated class contains:
"    // Enter business methods below. (Right-click
in editor and choose
    // Enterprise JavaBeans (EJB) > Add Business
Method)"

but it should contain:

"    // Enter web service operations here. (Popup
menu: Web Service->Add Operation)"

note: user is not allowed to create business
methods in this type of bean (webservice)
Comment 1 _ ludo 2005-03-18 17:28:23 UTC
Trung, this one might be tricky as we are using an xslt transform to generate
the ejb code...
Not sure if we have a way to pass to this process the fact that we want to
create a Web Service or an EJB.
As you might know, a web service in an ejb module has to be implemented as an
ejb ...
I did not look at this area for a long while... Chris Webster could help if
necessary.
Comment 2 _ ttran 2005-03-18 20:16:29 UTC
:-)  already figured it out.  I unassigned myself and removed SIMPLEFIX
Comment 3 Petr Jiricka 2005-03-30 09:18:54 UTC
Team agreed to come up with a generic message that would cover both EJBs and web
services. Jirko, any suggestions?
Comment 4 Jiri Kopsa 2005-03-31 22:00:16 UTC
What about this one?

"
    // Add business logic below. (Right-click in editor and choose
    // "EJB Methods > Add Business Method" or "Web Service > Add Operation")
"

I think the other comments (EJB infrastructure code fold, ) are almost fine
since they really reflect the EJB nature of these WSs. Maybe we could only
change a little the third line:

"
    // <editor-fold defaultstate="collapsed" desc="EJB infrastructure methods.
Click the + sign on the left to edit the code.">
    // TODO Add code to acquire and use other enterprise resources (DataSource,
JMS, enterprise bean, Web services)
    // TODO Add business methods or web service operations
"
Comment 5 Petr Jiricka 2005-04-01 13:23:09 UTC
Fixed per Jirka's suggestion.

/cvs/j2ee/ejbjarproject/src/org/netbeans/modules/j2ee/ejbjarproject/ejb/wizard/xsl/SessionBean.xml,v
 <--  SessionBean.xml
new revision: 1.6; previous revision: 1.5

Comment 6 Lukas Jungmann 2005-04-03 23:20:42 UTC
v. 200504031800