[jboss-user] [JBossWS] - Problem while configuring EJB3 with env_entry
kiddcheney
do-not-reply at jboss.com
Tue Dec 23 21:55:12 EST 2008
Hi,
I wanted to configure EJB 3.0 with env_entry in JBoss 4.2.2GA. My ejb-jar.xml file is as follows:
<?xml version="1.0" encoding="US-ASCII"?>
| <!-- $Rev: 601953 $ $Date: 2007-12-06 17:09:47 -0800 (Thu, 06 Dec 2007) $ -->
|
| <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" version="3.0" metadata-complete="false">
| <enterprise-beans>
| <session>
|
| <ejb-name>HelloWorldBean</ejb-name>
| <ejb-class>ejb.impl.HelloWorldBean</ejb-class>
| <env-entry>
| <env-entry-name>mystring</env-entry-name>
| <env-entry-type>java.lang.String</env-entry-type>
| <env-entry-value>Hello From ejb-jar.xml file !!!</env-entry-value>
| </env-entry>
|
| </session>
| </enterprise-beans>
| </ejb-jar>
|
But I could neither see the env_entry in Jboss JNDI-view nor access that variable in my EJB.
I doubted whether it was the problem of the Jboss's version, so I tried this on Jboss 4.0.5, but got an error-"Failed to create a new SAX parser". I also tried on Jboss 5.0.0, this time I could see the env_entry in Jboss JNDI-view but I could not see the bean associated with the env_entry.
Can someone help me solove this problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198392#4198392
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198392
More information about the jboss-user
mailing list