简体   繁体   English

JPA新手-使用Websphere和OpenJPA的容器管理的持久性

[英]JPA newbie - Container managed persistence using Websphere and OpenJPA

I want to implement Container Managed persistence using Websphere and OpenJPA. 我想使用Websphere和OpenJPA实现容器管理的持久性。

Can anyone provide some insights ? 谁能提供一些见解?

Is there a way to achieve this without using EJB3 or Spring ? 有没有不用EJB3或Spring就能实现的方法?

EJBs and Spring (along with some other Dependency Injection frameworks like Google Guice) implement the Container Managed EntityManager. EJB和Spring(以及其他一些依赖注入框架,例如Google Guice)实现了Container Managed EntityManager。 If you don't want to use the technology that provides the hooks for the container to handle the transactions and entity managers for you, then you would have to roll your own which is the application managed route. 如果您不想使用为容器提供挂钩的技术来为您处理事务和实体管理器,那么您将不得不自己滚动,这是应用程序管理的路线。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 IBM Websphere JPA org.apache.openjpa.persistence.ArgumentException - IBM Websphere JPA org.apache.openjpa.persistence.ArgumentException JPA-容器管理的持久性不会持久化实体-JTA - JPA - Container Managed Persistence doesn't persist entity -JTA jpa中的org.apache.openjpa.persistence.EntityExistsException - org.apache.openjpa.persistence.EntityExistsException in jpa 使用OpenJPA 1.0的Websphere 7 EAR - Websphere 7 EAR using OpenJPA 1.0 (OpenJPA / WAS)如何对容器管理的实体管理器使用容器管理的身份验证 - (OpenJPA/WAS) How to use the Container Managed Authentication for the Container Managed Entity Manager JPA PersistenceContextType 是否由容器管理? - Is JPA PersistenceContextType managed by container? 删除时,JPA“ org.apache.openjpa.persistence.ArgumentException” - JPA “ org.apache.openjpa.persistence.ArgumentException” while deleting Websphere JPA Persistence与默认的PersistenceProvider不兼容 - Websphere JPA Persistence is incompatible with default PersistenceProvider 如何在非容器管理 JPA(Spring Boot 和 Websphere)中使用来自 JDNI 数据源的凭据 - How do I use credentials from a JDNI Data Source in Non-Container Managed JPA (Spring Boot and Websphere) 容器管理的实体管理器的持久性上下文的范围 - The Scope of the Persistence Context of Container Managed Entity Manager
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM