我们的项目中有用到EJB,而且是很大比例。我不知道CMP和BMP的意思,但是我们用的都是session bean,对 entity bean 理解甚少,我也是比较困惑的。

解决方案 »

  1.   

    entity bean 有container manager和bean manager两种模式之分,如果你选择了container manager,那么就只有一个cmp了,如果你用的是bean manager那么还会有一个bmp类生成,两者的区别在于用前者可以简化你的代码,一些基本的数据库操作都由container代你完成了,而后者都要你自己来实现,我也是刚接触ejb的,现在正在用,很希望认识几个网友,我的qq是:10369315
      

  2.   

    We use ejb in our projects. Entity beans are used to generate all beans relative to database, session beans are used to generate all beans relative to your jsp. We always used CMP, though it can't deal with complex table relations. We use visualage for java and websphere to develop our projects. 
    I think ejb is trend for java, just like com to C++.
    <<Mastering Enterprise JavaBeans &#8482; and the Java &#8482; 2 Platform,Enterprise Edition>> by Ed Roman is recommended. You can download it free from many sites. Such as: http://www2.middleware-company.com/resources.html
      

  3.   

    to emily_wang:
    你能不能大概讲一讲你的项目是怎样应用ejb的?最好有项目架构和一些简单例子,看资料看得我好辛苦。谢谢!
      

  4.   

    I using visualAge for java3.5 + websphere3.5.  There is a demo with the book
    <<Mastering Enterprise JavaBeans and the Java 2 Platform,Enterprise Edition>>.
    It's for weblogic. It's the best book I have seen about ejb. If you want some demo written by me. pls. tell me you email address. 
      

  5.   

    emily_wang:
     Hi, I want some demo too. Thank you very much!
     
      my email address : [email protected]
      

  6.   

    <<Mastering Enterprise JavaBeans &#8482; and the Java Platform,Enterprise Edition>> ,这本书的确不错,我的毕业设计中的文献翻译就是该书,通过这本书相信对EJB技术会有较完整的认识
      

  7.   

    to emily_wang:
    Thank you! My email address: [email protected]