重在参与,呵呵
我也感兴趣
http://jdeveloper.myrice.com/ 这个网站不错
有没有人用ejb做过实际的项目呢?介绍一下好么?
我也感兴趣
http://jdeveloper.myrice.com/ 这个网站不错
有没有人用ejb做过实际的项目呢?介绍一下好么?
解决方案 »
- java.lang.IndexOutOfBoundsException: Remember that ordinal parameters are 1-base
- 请大家帮我分析一下这个系统的技术选型。
- 连接sqlserver2000数据库的问题?高手帮忙
- tomcat迁移到 weblogic的问题
- windows 下面的J2EE程序是否可以直接移植到linux下面呢?具体方法如何做???????详细说明的达人将给予高分回报!!!!!!
- 怎样才能将JMS和struts联系起来呢?有实例吗?
- 一个关于 java 正则表达式的问题 (已几天多了还没有解决,急呀~~~~~)
- JBuilder X整合jboss,需要用什么版本的插件和什么版本的JBOSS
- 请问在java环境下,如何做到xsl对xml的自动转换?
- 如何用java代码实现定时备份数据库表记录到备份表
- 非常奇怪的关于EJB的环境配置问题.请教高手!!
- IBM vaj ejb问题
现在中国的ejb程序员还不是很多,都在摸索
更提不到什么经验了
看吧,好事多磨嘛:)
good luck to you all
那么多的应用服务器,那么多的container实在是烦呀,每个多不大一样!!!ejb高手几乎没有,去外国看看吧!我的机器快转不动了!
Mastering Enterprise
JavaBeans ™
and the Java ™ 2 Platform,
Enterprise Edition
是我看的第一本关于EJB的书,非常不错。另外中国电力出版社出的Enterprise JAVABEANS第二版也不错,适合粗学者。
希望你在此谈谈EJB开发的心得。
例如,你在使用一些支持数据库连接池的应用服务器,另外你自己的一个应用程序需要访问这个数据库连接池,因为你的应用程序是独立于应用服务器运行的,所以没有办法使用Java命名来查找数据源对象,这个时候你就可以在应用服务器上跑一个EJB,然后你的应用程序就可以作为一个EJB客户端来访问数据源,这样就利用了数据库连接池的优点,又不需要自己编写连接池。
同意liusoft,在某些数据库处理时的确非常方便。
但有一点应当注意的是Application Server的价钱太高,除了很大的项目,很难用到如WEBLOGIC,WEBSPERE之类的SERVER,所以这东西在国内不大普遍。
Agree. also suggest to read J2EE patterns as well as understanding pet store.
To Zephyr_Boy:
Make sure that you are using different InitialContext to lookup different name.
To cablink:
It's better performance that let container to manage persistance: see article:
<a href="http://developer.java.sun.com/developer/technicalArticles/ebeans/sevenrules"> JDC: Seven Rules for Optimizing Entity Beans</a>
不知道哪个大侠知道如何提高ejb
访问数据库的效率
http://www.csdn.net/develop/library/java/base/452.shtm
如何在JBOSS(免费的EJB server)上发布EJB. (freerabbit转贴)
Use CMP can improve performance, you can also use lazy loading. But the most problems are contained in the remote invocation designs. Do not use entity-to-entity relationship, design your entity beans in a coarse-grained manner. User value object in the client side to reduce network round trips. Use session beans facade to encapsulate the access to entity beans to avoid frequently hits on the server...and so on...
That book fairly simple, just fit to beginers. If you feel it a little difficult, you should get to know more about basics.
你是谁呀?给我发email吧,qq也行,1504937to all:
大家什么时候想结帖,说一声就ok。
thanx a lot for your advice! I use BMP,however,CMP is better.I do not wanna to change much.what is lazy loading meanning you said above??I use sessionbean to make uses of the methods of entitybean.
It makes three times' remote invocations of the methods of entitybean,whether I can use UserTransation to integrate the three operations??
unfortunely a exception aroused:javax.transaction.NotSupportedException: begin() attempted when tx state == Active.
Why in jsp it can not be used of UserTransation??
the code in JSP:
mainpageHomeObject = (mainpageHome) PortableRemoteObject.narrow(ref, mainpageHome.class);
mainpage me = mainpageHomeObject.create();
UserTransaction u = (UserTransaction)ctx.lookup("javax.transaction.UserTransaction");
u.begin();
Vector v = me.getAllCorp();
...
v = me.getCountry();
...
v = me.getCorpType();
...
u.commit();
NotSupportedException is aroused
我和其它菜鸟学学。
1. statefal sessionbean 和 stateless sessionbean 的区别。
2. BMP entitybean 和 CMP entitybean的区别。
3. 在发布EJB时对应的几个xml中的内容及其发挥的作用。
一定得先编译打包发布然后去调用,然后
看那一大堆不知所谓的Exception
我用的是WEBLOGIC ,连SQL SERVER 7.0非常顺利
连接池也可以用,通过JNDI访问也没问题
不过你要到WWW.BEA.COM上载SQL SERVER的TYPE 4驱动
weblogic的那个要license的30天一到怎么办〉?唉!