<Container id="core" ctype="STATELESS"> <SystemProperties> openejb.deployments.classpath.include=.*classes/.* openejb.deployments.classpath.filter.systemapps=true openejb.jndiname.format={deploymentId}/{interfaceType.superShortName}/{interfaceType.name} </SystemProperties> </Container> import javax.ejb.Stateless; import javax.inject.Inject; import javax.persistence.EntityManager; @Stateless public class MyService { @Inject private EntityManager entityManager; // ... } <Deployments> <Bean id="myService" class="com.example.MyService"> <Injection> entityManager </Injection> </Bean> </Deployments>


上一篇:
下一篇:
切换中文