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.
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)
Created attachment 85781 [details] New Message-Driven Bean Dialog
Created attachment 85782 [details] New Message-Driven Bean Dialog
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.
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.
Will take a look today ...
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.
Are there any Java EE 5 or 6 implementations that do not support to create or specify message destinations?
@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.
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
I agree this would be nice.
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
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.
*** Issue 171645 has been marked as a duplicate of this issue. ***
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
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.
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.
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.
please can this be addressed. IT would be nice to have MDB integration for Weblogic servers. thnaks