I'm trying to call an entity bean from a client. >From the JBoss docs, chpt. 7 ... "JBoss does not currently allow you to use the java:comp/env namespace to call your beans from your clients."
So does that mean I can't use the following line from within my client, which currently runs on the same machine but will be running on different machines. Object result = ctx.lookup "java:comp/env/ejb/MyBean"); This is currently how it's defined in ejb-jar.xml, and I'm trying to figure out what to write in jboss.xml. --- <entity> <ejb-name>MyBean</ejb-name> <home>com.neuroquest.cais.ejb.entity.MyBeanHome</home> <remote>com.neuroquest.cais.ejb.entity.MyBean</remote> <ejb-class>com.neuroquest.cais.ejb.entity.MyBeanBean</ejb-class> <resource-ref> <res-ref-name>jdbc/PostgresqlDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> <persistence-type>Bean</persistence-type> <prim-key-class>com.neuroquest.cais.ejb.entity.MyBeanPK</prim-key-class> <reentrant>False</reentrant> </entity> I'm currently getting errors like this: [AutoDeployer] org.jboss.deployment.J2eeDeploymentException: Error while starting acais-1.0.ear: Could not deploy file:/u/public/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/acais-1.0.e ar, Cause: org.jboss.ejb.DeploymentException: Could not deploy file:/u/public/JBoss-2.4.0_Tomcat-3.2.3/jboss/tmp/deploy/Default/acais-1.0.e ar, Cause:org.jboss.ejb.DeploymentException: Error in jboss.xml for Bean MyBean: ejb-ref MyBean found in jboss.xml but not in ejb-jar.xml And do I maybe have to add anything to application.xml? Any help much appreciated! _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
