Stephen Brooksbank created NETBEANS-3642:
--------------------------------------------
Summary: Unable to create MDB class for Java EE 8 Web type project
using wizard
Key: NETBEANS-3642
URL: https://issues.apache.org/jira/browse/NETBEANS-3642
Project: NetBeans
Issue Type: Bug
Affects Versions: 11.2
Environment: Product Version: Apache NetBeans IDE 11.2
Java: 13.0.1; OpenJDK 64-Bit Server VM 13.0.1+9
Runtime: OpenJDK Runtime Environment 13.0.1+9
System: Windows 10 version 10.0 running on amd64; Cp1252; en_GB (nb)
Wildfly 18.0
Reporter: Stephen Brooksbank
Attachments: Java EE 8 Web project.png, MDB for web8 project.png,
pom.xml
Receive the message "This feature is not fully supported in J2EE 1.3. You have
to upgrade your project to J2EE 1.4" when trying to use the wizard to create a
Message Driven Bean (MDB) for a Java EE 8 Web type project.
As of the EJB 3.1 specification I understand it should be possible to create
EJB objects directly in a single WAR project (instead of neeading an EJB
module). I'm using Wildfly 18 as the server which is Jakarta EE compliant and
certified.
To reproduce:
# create Maven web project. Assign wildfly server. (NB. drop down list box for
version only lists EE7Web as an option)
# Go to project properties. Select Run options. Change server type to EE 8 Web.
# Edit POM to include correct version of the APIs
# Use File, New.. wizard to create MDB.
WorkAround:
Create a simple Java class and manually add the annotations needed for a MDB.
For example:
{{{color:#FF0000}@MessageDriven(activationConfig = {{color}}}
{{{color:#FF0000} @ActivationConfigProperty(propertyName = "destinationLookup",
propertyValue = "jms/queue/OutboundQ"),{color}}}
{{{color:#FF0000} @ActivationConfigProperty(propertyName = "destinationType",
propertyValue = "javax.jms.Queue"){color}}}
{{{color:#FF0000}}){color}}}
{{public class CustomsReceiverMessageBean {color:#FF0000}implements
MessageListener{color} \{...}}}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists