Using the jboss binary from: http://www.jboss.org/bin/jboss-2.1.zip

If I deploy a bean with and ejb-jar.xml of:
<?xml version="1.0"?>
   <ejb-jar>
      <enterprise-beans>
         <session>
            <ejb-name>Note</ejb-name>
            <home>test.note.NoteHome</home>
            <remote>test.note.Note</remote>
            <ejb-class>test.note.NoteBean</ejb-class>
            <session-type>Stateful</session-type>
            <transaction-type>Bean</transaction-type>
            <env-entry>
                <description>The maximum number of tax exemptions</description>
                <env-entry-name>maxExemptions</env-entry-name>
                <env-entry-type>java.lang.Integer</env-entry-type>
                <env-entry-value>15</env-entry-value>
            </env-entry>
         </session>
      </enterprise-beans>
</ejb-jar>

I see the maxExemptions value using the list operation of the JNDIView bean available 
via the
admin interface at http://localhost:8082/
Application: 
file:/D:/usr/local/src/cvsroot/jBoss/jboss/dist/tmp/deploy/Default/note.jar
java:comp namespace of the Note bean:
  +- UserTransaction (class: javax.transaction.UserTransaction)
  +- env (class: org.jnp.interfaces.NamingContext)
  |   +- maxExemptions (class: java.lang.Integer)

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 19, 2001 6:41 AM
Subject: [JBoss-user] FW: JNDI Environment Entries in Session Beans


> I am trying to use env-entry elements in my deployment descriptor for my
> session beans and I cannot seem to find them after deploying the jar file.
> I am trying to use the entry examples that were in the EJB 1.1 spec (section
> 14.2.1.2, I think around page 206 in the PDF version) and when the bean
> methods are executed, the values are not available.  If I use the admin
> interface (http:/localhost:8082) or client JNDI tools, I cannot seem to find
> the entries, either. It does not seem to have deployed properly.  I am using
> the JBoss 2.1 download currently on the web site (well, as of last week)
> under Win98. 
> 
> Question: has anyone done any work with env-entry settings in deployment
> descriptors before?  Does it work in JBoss 2.1?
> 
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user
> 


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to