History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: EJBTHREE-985
Type: Bug Bug
Status: Closed Closed
Resolution: Done
Priority: Major Major
Assignee: Carlo de Wolf
Reporter: Carlo de Wolf
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
EJB 3.0

env-entry-value is optional (16.4.1.3 last paragraph)

Created: 05/Jun/07 08:33 AM   Updated: 08/Feb/08 02:48 AM
Component/s: None
Affects Version/s: None
Fix Version/s: AS 5.0.0.Beta3

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Dependency
 
This issue is a dependency of:
JBPAPP-616 EJBTHREE-985: env-entry-value is opti... Major Open


 Description  « Hide
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>

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order:
There are no comments yet on this issue.