现在又有问题来了,我实验一个session bean+entity bean的例子,数据库用的是jdatastore,连接测试成功,make通过后,deploy不能成功,DEPLOYED=FALSE,服务端的输出是 Unable to deploy EJB: Employee from TestEntMod.jar:weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: EmpDataSource could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.但是我建立的Tx Data Source的JNDI name 确实是DemoDataSource,况且在employee的weblogic 6.x general 面板中的Data Source Name 就是DemoDataSource,不知道为什么还抱这个错误,我真是没有办法了,郁闷死了!请指教!谢谢!
EmpDataSource could not be located?? 不太清楚你的empdatasource是什么
不好意思搞错了,报的错误是这样的:weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI name: DemoDataSource could not be located. Please ensure that the DataSource has been deployed successfully and that the JNDI name in your EJB Deployment descriptor is correct.
Unable to deploy EJB: Employee from TestEntMod.jar:weblogic.ejb20.WLDeploymentException: The DataSource with the JNDI
name: EmpDataSource could not be located. Please ensure that the
DataSource has been deployed successfully and that the JNDI name in
your EJB Deployment descriptor is correct.但是我建立的Tx Data Source的JNDI name 确实是DemoDataSource,况且在employee的weblogic 6.x general 面板中的Data Source Name 就是DemoDataSource,不知道为什么还抱这个错误,我真是没有办法了,郁闷死了!请指教!谢谢!
关于 Session Bean 有个问题, 会话BEAN被页面调用后,执行任务, 比如 查询数据,
若此时 WEB页面立刻关闭,跟踪日志发现,后台会话BEAN的任务仍然在继续, 继续地 耗费资源, 按合理的逻辑,此会话BEAN 也应该终止任务,释放资源,消失掉。但事实却相反。 亟需解决的问题。
要知道 这个会话BENA 里做了好些事情, 循环呀,创建对象啦。
前端页面点10下,就要执行10次,晕到!是设计的问题?!
----------------------------------
借光呀 :|
不太清楚你的empdatasource是什么
我从worldheart那里学到的方法为:找到
helloHome = (HelloHome) PortableRemoteObject.narrow(ref, HelloHome.class);
写下:
helloHome.create();
Hello hello = helloHome.create();
System.out.print(hello.SayHello());
成功了具体原因我也不知道...