[jboss-user] [Beginners Corner] - Re: HELP: javax.naming.NameNotFoundException: comp not bound
jaikiran
do-not-reply at jboss.com
Mon Aug 7 07:51:56 EDT 2006
If thats what you want to have, then you will have to specify an env-entry for your bean. Have a look at the dtd of ejb-jar.xml at:
http://java.sun.com/dtd/ejb-jar_2_0.dtd
Here's an extract:
anonymous wrote :
| <!--
| The env-entry element contains the declaration of an enterprise bean's
| environment entry. The declaration consists of an optional
| description, the name of the environment entry, and an optional
| value. If a value is not specified, one must be supplied
| during deployment.
|
| Used in: entity, message-driven, session
| -->
| <!ELEMENT env-entry (description?, env-entry-name, env-entry-type,
| env-entry-value?)>
|
| <!--
| The env-entry-name element contains the name of an enterprise bean's
| environment entry. The name is a JNDI name relative to the
| java:comp/env context. The name must be unique within an enterprise bean.
|
| Used in: env-entry
|
| Example:
|
| <env-entry-name>minAmount</env-entry-name>
| -->
| <!ELEMENT env-entry-name (#PCDATA)>
|
| <!--
| The env-entry-type element contains the fully-qualified Java type of
| the environment entry value that is expected by the enterprise bean's
| code.
|
| The following are the legal values of env-entry-type:
|
| java.lang.Boolean
| java.lang.Byte
| java.lang.Character
| java.lang.String
| java.lang.Short
| java.lang.Integer
| java.lang.Long
| java.lang.Float
| java.lang.Double
|
|
| Used in: env-entry
|
| Example:
|
| <env-entry-type>java.lang.Boolean</env-entry-type>
| -->
| <!ELEMENT env-entry-type (#PCDATA)>
|
| <!--
| The env-entry-value element contains the value of an enterprise bean's
| environment entry. The value must be a String that is valid for the
| constructor of the specified type that takes a single String
| parameter, or for java.lang.Character, a single character.
|
| Used in: env-entry
|
| Example:
|
| <env-entry-value>100.00</env-entry-value>
| -->
| <!ELEMENT env-entry-value (#PCDATA)>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963539#3963539
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963539
More information about the jboss-user
mailing list