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 169837 - Unable To create MDB Message Destinations
Summary: Unable To create MDB Message Destinations
Status: VERIFIED INCOMPLETE
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: 7.0
Hardware: All Unix
: P2 blocker (vote)
Assignee: Petr Hejl
URL:
Keywords:
: 171645 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-08-04 19:27 UTC by bantunes
Modified: 2011-06-21 17:55 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
New Message-Driven Bean Dialog (34.57 KB, text/plain)
2009-08-04 19:48 UTC, bantunes
Details
New Message-Driven Bean Dialog (34.57 KB, image/png)
2009-08-04 19:49 UTC, bantunes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bantunes 2009-08-04 19:27:12 UTC
When creating a new MDB from scrath, we are unable to create new message destinations, as the "Add" button in "Project
Destinations" is always disabled

Tested with Java EE Versions "J2EE 1.4" and "Java EE 5" using "Oracle WebLogic Server 10.3" or "GlassFish v2.1"

IDE Running  with Sun Java SE 6 Update 14 under linux (x86_64)
Comment 1 bantunes 2009-08-04 19:48:13 UTC
Created attachment 85781 [details]
New Message-Driven Bean Dialog
Comment 2 bantunes 2009-08-04 19:49:07 UTC
Created attachment 85782 [details]
New Message-Driven Bean Dialog
Comment 3 Kenneth Ganfield 2009-08-21 23:05:28 UTC
also unable to create message destination with wizard when Java version is EE 6 and target server is GlassFish v3 b60.
IDE build 200908210201/OS X

If I create the JMS resource using the wizard, the IDE creates the sun-resources.xml and the destination is visible in
the New Message Driven Bean wizard.

If I create the JMS resource using the GlassFish admin console, the resource is listed in the IDE's Services window but
the destination does not appear in the New Message Driven Bean wizard.
Comment 4 Petr Jiricka 2009-09-02 12:33:17 UTC
Hi Andrey, could you please look at this issue as a high priority? Ken depends on this feature to work in order to work
on the documentation. Thanks.
Comment 5 Andrey Yamkovoy 2009-09-02 12:45:28 UTC
Will take a look today ...
Comment 6 Andrey Yamkovoy 2009-09-02 13:37:42 UTC
From the wizard side the button becomes disabled if the server plugin not supports create message destination.
I have checked it with Glassfish v3 Preview and finally false is returned from the following:
org.netbeans.modules.glassfish.javaee.Hk2Configuration.supportsCreateMessageDestination().

So looks like it's server plugin issue. Reassign for evaluation.
Comment 7 bantunes 2009-09-02 16:28:11 UTC
Are there any Java EE 5 or 6 implementations that do not support to create or specify message destinations?
Comment 8 Petr Jiricka 2009-09-02 16:36:55 UTC
@bantunes - the question is not whether the server itself supports this. The question is whether the NetBeans support
for the server has the ability to programmatically create message destinations. NetBeans needs to call some API on the
server which does this, and it looks like this part is not working right now for NetBeans and GlassFish v3.
Comment 9 bantunes 2009-09-02 16:55:53 UTC
The wizard should/could allow us to create new MDB's for any Java EE implementations, independently if the NetBeans
support for the server has the ability to programmatically create the message destinations

If for some reason, Netbeans does not know how to  programmatically create the message destinations, for some specific
Java EE Server, maybe some warning could be generated, but the MDB should/could be created/generated

Comment 10 Petr Jiricka 2009-09-02 19:45:34 UTC
I agree this would be nice.
Comment 11 Nitya Doraisamy 2009-09-02 20:11:53 UTC
Tested with GlassFish v2.1 - the Add button is enabled as expected.
GlassFish v3 preview does not support MDB's and so ....javaee.Hk2Configuration.supportsCreateMessageDestination() should
return false.

But GlasFish v3 does support MDBs and the plugin in currently returning false for this. This is wrong and will be fixed.
Caused by logic used to enable V3 features, it is looking for the experimental flag to be set.
Will fix for GlassFish v3. 

Please recheck with v2.1, I am able to create MDBs against this server
Comment 12 bantunes 2009-09-03 10:20:00 UTC
Recheck using NetBeans 6.7.1

* GlassFish v2.1 --> featured is working (at least add button is enabled)
* Oracle WebLogic Server 10.3 --> NOT working

New featured request
* Even if NetBeans does not know how to programmatically create the message destinations, it should be possible to
create/generated the MDB, I don't see a valid reason why the wizard does not work for any Java EE Server to create a new
MDB.
Comment 13 Andrey Yamkovoy 2009-09-07 16:23:17 UTC
*** Issue 171645 has been marked as a duplicate of this issue. ***
Comment 14 Quality Engineering 2009-09-07 17:07:38 UTC
Integrated into 'main-golden', will be available in build *200909071104* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/b9cb98a89644
User: nityad@netbeans.org
Log: #169837 : Fix for supporting mdb creation for non prelude v3 servers
Comment 15 Nitya Doraisamy 2009-09-08 17:08:25 UTC
Fixed v3 plugin so it supports MDB's.

The wizard disables "Add" button in "Project Destinations" if the target server does not support MDB. 

NetBeans does allow MDB's to be created for any Java EE server if the server plugin supports it. When the server plugin
returns 'false' for supportsCreateMessageDestination, then the Add button is disabled.  

I guess the wizard can allow MDB's to be created even if the message destination resources cannot be created. Created
Feature Request 171743 with info from user. Added all users on this cc too.

Comment 16 lcallero 2010-12-20 13:09:50 UTC
Hi, I have a great EJB project and I was planning to use netbeans, but this bug is still present when using weblogic, wich is my case, even in 7.0 beta release.

Will it be solved? If not I'll have to go on with eclipse, wich I really don't like. This would be an good oportunity to show everyone Netbeans handling JEE projects.
Comment 17 Petr Jiricka 2010-12-21 10:03:20 UTC
You are right, JMS resources are not implemented for WebLogic. I would prefer to track it as a separate enhancement request - could I please ask you to file a new issue specifically for WebLogic? Thanks.
Comment 18 austin_poulton 2011-06-21 17:55:15 UTC
please can this be addressed.  IT would be nice to have MDB integration for Weblogic servers. thnaks