Paulo Lopes wrote:

Hi,

I'd like to know if there's any kind of best practices document for OpenEJB

Not that I'm aware of. I'd probably look at the available docs. That's some sort of it.


i'm graduatting this semester and my final project is about Enterprise Java Beans. My company has choosen to use OpenEJB as their EJB container.

Great! What made the choice? What were your requirements?



I'm thinking in create some kind of script or a simple app. to generate these files:


ejb-jar.xml - the ejb-jar file descriptor
server.xml - reference for EJB beans in the tomcat
web.xml - reference for EJB beans in the webapp
<Home Interface>, <Remote Interface>, <Bean> Class skeletons

Looks like it's going to be a sort of XDoclet. Perhaps, it's also possible to create an app so that developer would describe his application via a set of attributes. Having defined so, your app would generate the files and necessary classes/interfaces/etc.


I'd very appreciate if you'd show us the app once it's finished.


Now, i'd like to know what's the "best" (or most performant) implementation for each type of bean, so i could generate the apropriatte skeleton:


Session (With State)
Session (Stateless)
Entity (BMP)
Entity (CMP)

I don't think I get the point. What do you mean by "the best implementation"?



Should we use "Value Objects" to encapsulate the data in entity beans, as in this article
http://www-106.ibm.com/developerworks/java/library/j-ejb0910.html since, OpenEJB is to be run in embedded mode, does it have the same speed limitation with RMI?

I guess it has. OpenEJB local (embedded) mode is merely another jar in your application's CLASSPATH. No need to introduce yet another layer via value objects.



--


*Paulo Lopes*

-Jacek




-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user

Reply via email to