ejb-jar.xml | <?xml version="1.0" encoding="UTF-8"?> | <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'> | <ejb-jar> | <enterprise-beans> | <session> | <ejb-name>mySessionEJB</ejb-name> | <home>com.codemyth.study.mySessionHome</home> | <remote>com.codemyth.study.mySession</remote> | <ejb-class>com.codemyth.study.mySessionBean</ejb-class> | <session-type>Stateless</session-type> | <transaction-type>Container</transaction-type> | </session> | </enterprise-beans> | </ejb-jar> jboss.xml
| <?xml version="1.0"?> | <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 4.0//EN" | "http://www.jboss.org/j2ee/dtd/jboss_4_0.dtd"> | <jboss> | <enterprise-beans> | <session> | <ejb-name>mySessionEJB</ejb-name> | <jndi-name>ejb/mySessionEJB</jndi-name> | </session> | </enterprise-beans> | </jboss> | there is nothing in web.xml and jboss-web.xml but when i InitialContext.lookup("java:comp/env/ejb/mySessionEJB")--------error; InitialContext.lookup("ejb/mySessionEJB")--------error; InitialContext.lookup("mySessionEJB")--------error; how do the program will correctly? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3854721#3854721 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3854721 ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
