[
http://jira.jboss.com/jira/browse/EJBTHREE-985?page=all ]
Carlo de Wolf closed EJBTHREE-985.
----------------------------------
env-entry-value is optional (16.4.1.3 last paragraph)
-----------------------------------------------------
Key: EJBTHREE-985
URL:
http://jira.jboss.com/jira/browse/EJBTHREE-985
Project: EJB 3.0
Issue Type: Bug
Reporter: Carlo de Wolf
Assigned To: Carlo de Wolf
Fix For: AS 5.0.0.Beta3
In contrary to the specification in AS 4.2 a Bean Developer must provide a String value
for an env-entry-value.
So the following deployment descriptor will not work:
<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="3.0"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
<enterprise-beans>
<session>
<ejb-name>OptionalEnvEntryBean</ejb-name>
<env-entry>
<description>default env-entry</description>
<env-entry-name>entry</env-entry-name>
<env-entry-type>java.lang.Double</env-entry-type>
<injection-target>
<injection-target-class>org.jboss.ejb3.test.ejbthree985.OptionalEnvEntryBean</injection-target-class>
<injection-target-name>entry</injection-target-name>
</injection-target>
</env-entry>
</session>
</enterprise-beans>
</ejb-jar>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira