關於在jb2005整合jboss 開發ejb的問題,前輩們幫忙看看這個問題

Javalga發表於2005-08-11
jb裡選擇應用伺服器jboss
用嚮導生成ejb的部署檔案在jboss.xml裡配置
<enterprise-beans>
<entity>
<ejb-name>ProBMPBean</ejb-name>
<local-jndi-name>ejb/ProBMP</local-jndi-name>
</entity>
</enterprise-beans>

寫了個測試class
try{
Object ref = new InitialContext().lookup("ejb/ProBMP");
ProBMPHome home = (ProBMPHome)ref;
ProBMP sxf = home.create("sxf",25,"java","jboss");
ProBMP test = home.create("test",25,"java","jboss");
執行就提示
Need to specify class name in environment or system property,
or as an applet parameter, or in an application resource file:
java.naming.factory.initial
怎麼回事啊??? 幫忙看下啊

相關文章