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 117977

Summary: Code for "Send JMS" message generated in bad (wrong,IMHO) location in Servlet file.
Product: javaee Reporter: _ pcw <pcw>
Component: CodeAssignee: martin_adamek <martin_adamek>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Sun   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description _ pcw 2007-10-06 00:59:26 UTC
Create a J2EE 1.4 EJB Jar with an MDB.
Create a J2EE 1.4 Web App with a servlet.

In the servlet editor pane, invoke Enterprise Resources | Send JMS Message from editor popup menu.
The code to send the message is generated inside the editor fold for "HTTP Servlet Methods".

Problems:

1) This code does not belong here, as it's not an HTTP Servlet Method.
2) The code generated includes a skeleton method where the user will insert the code to create and send the message, but
this method is empty and has a return value and thus is _invalid_ but the error is hidden because the editor fold is closed.

It should have been generated outside (probably just above) the HTTP Servlet Method block, _above_ the initial
<editor-fold> comment.

This problem probably exists in JavaEE5 too, but that path is probably blocked by issue 107647 for now.
Comment 1 pslechta 2008-04-16 17:44:26 UTC
Duplicate of issue that was already fixed.

*** This issue has been marked as a duplicate of 129262 ***