------解决方法-------------------------------------------------------- Authentication not bound
jndi.properties文件内容:
java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
ejb-jar.xml内容:
<?xml version = '1.0 ' encoding = 'GBK '?>
<ejb-jar xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance " xsi:schemaLocation= "http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/ejb-jar_2_1.xsd " version= "2.1 " xmlns= "http://java.sun.com/xml/ns/j2ee ">
<enterprise-beans>
<session>
<description> Session Bean ( Stateless ) </description>
<display-name> Authentication </display-name>
<ejb-name> Authentication </ejb-name>
<home> com.rezlink.report.bo.AuthenticationHome </home>
<remote> com.rezlink.report.bo.Authentication </remote>
<ejb-class> com.rezlink.report.bo.AuthenticationBean </ejb-class>
<session-type> Stateless </session-type>
<transaction-type> Container </transaction-type>
</session>
<session>
<description> Session Bean ( Stateless ) </description>
<display-name> HccInternationalMenu </display-name>
<ejb-name> HccInternationalMenu </ejb-name>
<home> com.rezlink.report.bo.HccInternationalMenuHome </home>
<remote> com.rezlink.report.bo.HccInternationalMenu </remote>
<ejb-class> com.rezlink.report.bo.HccInternationalMenuBean </ejb-class>
<session-type> Stateless </session-type>
<transaction-type> Container </transaction-type>
</session>
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name> Authentication </ejb-name>
<method-name> * </method-name>
</method>
<trans-attribute> Required </trans-attribute>
</container-transaction>
<container-transaction>
<method>
<ejb-name> HccInternationalMenu </ejb-name>
<method-name> * </method-name>
</method>
<trans-attribute> Required </trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
jboss内容
<?xml version = '1.0 ' encoding = 'GBK '?>
<!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN " "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd ">
<jboss>
<enterprise-beans>
<session>
<ejb-name> Authentication </ejb-name>