-
1. Re: DeploymentException when env-entry-value missing
vlafo Mar 25, 2002 5:39 PM (in response to johnson_sb)using jboss 3.0.0beta2
does someone knows how you can get an "env-entry" of a session-bean ?
->binding is ok according server log-file
2002-03-25 23:27:58,114 DEBUG [org.jboss.ejb.StatelessSessionContainer] Begin java:comp/env for EJB: UIDHighKeyGenerator
...
2002-03-25 23:27:58,114 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding env-entry: DBNameColumn of type: java.lang.String to value:NAME
...
2002-03-25 23:27:58,124 DEBUG [org.jboss.ejb.StatelessSessionContainer] End java:comp/env for EJB: UIDDispenserServerTestBean
->but [return (String) ContextUtil.getInitContext().lookup("java:comp/env/DBNameColumn");] throws an javax.naming.NameNotFoundException !!!??? -
2. Re: DeploymentException when env-entry-value missing
jardia May 22, 2002 10:42 AM (in response to johnson_sb)Did the original poster ever get an answer.
It would be nice to know if this is an intentional feature or a bug. That is, not being able to deploy a bean with a env-entry that looks like
[pre]
<env-entry>
<env-entry-name>Name</env-entry-name>
<env-entry-type>Type</env-entry-type>
</env-entry>
[/pre]
or
[pre]
<env-entry>
<env-entry-name>Name</env-entry-name>
<env-entry-type>Type</env-entry-type>
<env-entry-value></env-entry-value>
</env-entry>
[/pre]
cheers
oliver -
3. Re: DeploymentException when env-entry-value missing
johnson_sb May 22, 2002 1:30 PM (in response to johnson_sb)No sir, I never got an answer. I ended up having to work around the problem by using a value like "null" or "none" and specifically looking for that in the code to signify a null.