I am starting a new app and trying to work out the best design approach. At the moment I want to get the app up and running, and so I'm just going to use tomcat and struts and achieve MVC by seperating out the database access into factory classes.

At some point after I've got the project running, I want to replace the factory layer with CMP entity beans in JBoss (mostly for the learning experience). I've read Mastering EJB by Roman et al and so have a newby's idea of what the benefits would be although I'd like to hear what some gurus out there who've got experience with CMP say.

My doubts are about whether entity beans can handle what I want to do. After I finished a successful project (not using EJB) which handled data-intensive lists with nested tags, I'm thinking of pursuing that design paradigm further. The value beans were created in the factories and passed into the action forms for use by the nested tags. The value beans had a validate() method, which took a Locale as the parameter when necessary, e.g. for date validation.

Now I'm not sure if I can use the same principle in EJB. Can I take an CMP entity bean out of the J2EE container and use it in a struts form? And the reverse - can I pass a bean back again with updated values?

Thanks
Adam


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to