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 76623 - MDB wizard should allow choosing to create (or not) associated server resources
Summary: MDB wizard should allow choosing to create (or not) associated server resources
Status: RESOLVED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Adamek
URL:
Keywords: UI
Depends on:
Blocks:
 
Reported: 2006-05-19 21:04 UTC by _ pcw
Modified: 2006-06-26 15:37 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 _ pcw 2006-05-19 21:04:25 UTC
MDB's require an associated JMS resource when deployed to the server, otherwise,
deployment will fail.

For zero-configuration deployment to work nicely, that means that when an MDB is
created, the associated server plugin is notified to also create any necessary
resources or other artifacts.

However, the user might already have a JMS Resource they wanted to use, for
example, it might be a preexisting shared resource already deployed on the server.

So I propose we have a mechanism to let the user signify they want (or don't
want) the associated server to create the required resources.  The obvious way
to do this is to add a check box (defaulting to checked) such as:

    [x] Create Server Resources

If the user leaves this checked, then the wizard calls
"ensureResourceDefinedForEjb()" (it does this today).  If it is not checked,
then the wizard does not make this call.

There is also another possibility, but it might be too much overloading of
information.  We could assert that if the user fills in the mapped name in the
wizard, that it is assumed to represent an existing resource (or the user is
responsible for creating a resource with that name manually).  If mapped name is
not filled in, then the server plugin would create a JMS Resource for the MDB
and set the server specific jndi-name to refer to that resource.  I don't like
this alternative very much, but it's another option.
Comment 1 _ pcw 2006-05-19 21:05:32 UTC
See also issue 76077 which deals with additional fields that the MDB wizard used
to support but no longer does.
Comment 2 jrojcek 2006-06-12 08:54:23 UTC
I think the MDB wizard in Java EE 5 should work exactly like in J2EE 1.4. Do we track a user request to 
change it? In any case I tend to say that we should not change the behavior so late in 5.5 release cycle.
Comment 3 Martin Adamek 2006-06-26 15:37:39 UTC
Issue 76077 is now fixed. Wizard is now same as in older versions, no mapped
name field. I am closing this. Maybe new enhancement should be filed for
optional creation of resources?