thanks, I have solved it ! Sam Liu =============== [EMAIL PROTECTED] ---- origional mail----- >I guess that the Interest Bean had been deployed rightly. >but the servlet can not find the ejb by the jndi name. Something I didn't cover in my original "Interest Bean" servlet article was how to map an EJB's name to a jBoss JNDI name using jboss.xml. You can change the names like this: <?xml version="1.0" encoding="ISO-8859-1"?> <jboss> <secure>false</secure> <container-configurations /> <resource-managers /> <enterprise-beans> <entity> <ejb-name>Interest</ejb-name> <jndi-name>interest/Interest</jndi-name> <configuration-name></configuration-name> </entity> </enterprise-beans> </jboss> Name this file jboss.xml and put it in the same directory as ejb-jar.xml and you can call your beans anything you want. -- Ken Jenks, http://abiblion.com/ Tools for reading. _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user$,f)+-$,X(~zwib,y+b?+-w6ˬz