Pattern « EJB « JPA Q&A





1. Is using data transfer objects in ejb3 considered best practice    stackoverflow.com

Although obviously not all scenarios can be covered by a single design, is it generally felt now that ORM classes should be passed to and fro between the presentation and business ...

2. EJB vs JPA controller?    stackoverflow.com

Sun's Bluperint reference implementation of Pet store is built on the JPA Controller pattern. I find no official EJB blueprints whatsoever. When should you choose an EJB session bean vs a simple ...

3. EJBs and JPA design question    stackoverflow.com

I'm using EJB 3.1 and JPA 2.0. I'll give you an example to explain my doubts and ask for hints as what is a good practice and what's not. Let's say I have ...

4. Patterns for EJB3/JPA Disconnected Result Sets    coderanch.com

Can anyone point me to some patterns for disconnected result sets coming from an EJB3/JPA middle tier? The EJB business object gets results from an Entity, and disconnects. The results are serialized from the middle tier to the client (Java Swing in this case). The user adds to, edits and deletes from the result set. I now need to get these ...

5. ejb pattern    forum.hibernate.org

Which pattern are most people using for Hibernate EJB? Are you using hibernate in BMP, or using it directly in your session beans? I'd like to take advantage of the benefits of EJB (declarative security, thread safety etc), but I've been using hibernate for a couple of years and I'd prefer to continue to use it for persistence. Even a one-line ...

6. ThreadLocal pattern not viable with Jboss EJB3 and 3.1?    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: Hibernate 3.1 beta 2 Mapping documents: Annotations w/ JBoss 4.03RC2 + EJB3 I currently have an app that uses Hibernate 2 and the ThreadLocal web filter pattern to keep the session open so that I can lazy load collections in the web tier (jsp) as desired. This works very ...