ejb 2 « EJB « JPA Q&A





1. convering from hibernate api to ejb3 api    forum.hibernate.org

I just upgraded to hibernate 3.2 GA with annotations and entitymanager 3.2 GA. Below is a simple comparison of using hibernate's api vs. EJB3 api. Using hibernate api works, using EJB3 results in PersistentObjectException ("detached entity passed to persist") I have been using EJB 3 annotations from the start with the hibernate api. The only difference in my code is below. ...

2. A way to get all the persistence units names with EJB 3.0 ?    forum.hibernate.org

Hello, Is there a way to get all the persistence units names installed in JBoss 4.0.5 ? So, I have put this in my persistence.xml for all persistence units to add JNDI references to the persistence units : "" But in a session bean, how can i get all the persistence units names without knowing them ? Thanks, Olv ...

3. Integration Of Hibernate with EJB    forum.hibernate.org

Hi, I am developing an web base project.In my project i am calling hibernate with stateless session bean. That is stateless session bean calls hibernate then hibernate store data which i want to store in database. So to do what should i do.I any one have sample code plz post it as early as possible. Thanks in advance

4. 10,000 Recorc Per Second (In EJB 3.0)    forum.hibernate.org

hi all, i have some mission critical tasks into my project, is it possible to persist 10 000 record per seconds, 1. AS - JBoss Application Server 4.0.4GA 2. Database - Oracle 10G 10.2.0.1 3.EJB - 3.0 Framework 4.OS - SunOS 5.10 4.Server - Memory: 16G phys mem, 31G swap, 16 CPU, i know that i need performace here is my ...

5. Junior needs help in: Hibernate - EJB3    forum.hibernate.org

Hi all,... i am hoping some of you can help me with providing me some additional information. I am going to do my first project what i'm not planning to do with JDBC. this time i want to use either Hibernate or EJB3 (with struts). after reading tons of articles about these 2 techniques i still dont know what the exact ...

6. transientobjectexceptions when upgrading to ejb 3.0 / JPA    forum.hibernate.org

Before I post lots code, I just want confirmation that my assumptions are correct about how hibernate and/or jpa deals with detached and reattached objects. Using hibernate 3.0.2 on jboss 4.0.2 I was successfully loading a form representing a university, with a UniversityType reference object selectable in a list, and saving the University on a form submit. It could be either ...

7. How to properly isolate EJB applications?    forum.hibernate.org

8. Issues Hibernate3 Persistence with EJB3    forum.hibernate.org

Thank you for the respone! However, the way I bring in the libraries is as follows: I have them all in the EAR module, and refer to them in the EJB. All other libraries are bring picked up, just this one is creating the problem... If you need more information, I will be happy to provide it to you- this bug ...

9. [Newbie] - Could not initialize class org.hibernate.ejb.Ejb3    forum.hibernate.org

Hi all, I'm totally new with Hibernate. I've got the book java persistence with Hibernate and I tried several google searches. But I can't figure out what my problem is. I'm developing in Eclipse with Flex Builder plugin on a Flex-Java Hybrid project (possible since Flex Builder 3 final as far as I know). It has 1 project with a flex_src ...





10. Hibernate with EJB 3.0 and Sun AS 9.1?    forum.hibernate.org

Hi I am new with hibernate and wanted to check out the EntityManager from Hibernate as I discovered a bug in the Glasfish oracle.toplink EM where it randomly fails to delete an entity from the DB. So I have all set up and have all the libs put into the AS lib folder as needed. Now upon just running a deploy ...

11. SQLException not catched in a EJB    forum.hibernate.org

Newbie Joined: Tue Jul 22, 2008 5:19 am Posts: 10 Hello, I have problems during the call to a remote method of an EJB that use Hibernate. I call the method, but if I have an exception like sqlexception for example, I cannot catch it. I need to catch the exceptions, but It looks like that hibernate execute the batch update ...

12. Replacement of EJB 2.0 with Hibernate    forum.hibernate.org

Hello, This is Vikash from India; I want to replace the entire EJB (2.0) or part of EJB in my project with Hibernate. Could you please suggest me on this. My project contains two sub projects. One client side and the other is server side project. The server side project is compiled and deployed to Borland Management Console 6.5 and the ...

13. EJB 3.0 JPA Fallback in case of troubles?    forum.hibernate.org

Hi folks I did not find any thred covering my topics yet but if I didn't catch one please redirect me to this ;-) I am actually evaluating the possibilities of an EJB 3.0 JPA usage in a new project. During the last 1 - 2 years we used hibernate in more and more IT project in a scenario as follows: ...

14. Does a persistence-unit have to be packaged as an EJB?    forum.hibernate.org

I am trying to figure out if a persistence-unit has to be packaged as an EJB. What I have is an ear application that I want to deploy to JBoss. This application contains a jar containing my domain entities. This jar contains the following persistence unit which specifies a jta-data-source: Code: java:/myappDatasource ...

15. ejb3 reverse engineering from hibernate tools    forum.hibernate.org

I am using hibernate tools for reverse engineering to generate my ejb3 entities . I want to know if I can customize pojo generation to not have setter methods , I want some of my entities without setter methods ,I looked at DelegatingReverseEngineeringStrategy , I need help on customizing DelegatingReverseEngineeringStrategy for no setter methods , Please provide me informatyion on what ...





17. javax.ejb problem    forum.hibernate.org

Full stack trace of any exception that occurs: [mkdir] Created dir: C:\crs570\DBMSSware\bin compile: [javac] Compiling 12 source files to C:\crs570\DBMSSware\bin [javac] C:\crs570\DBMSSware\src\sware\dbms\businesstier\DbmsBean.java:13: package javax.ejb does not exist [javac] import javax.ejb.Stateless; [javac] ^ [javac] C:\crs570\DBMSSware\src\sware\dbms\businesstier\DbmsDAO.java:4: package javax.ejb does not exist [javac] import javax.ejb.Remote; [javac] ^ [javac] C:\crs570\DBMSSware\src\sware\dbms\businesstier\DbmsDAO.java:15: cannot find symbol [javac] symbol: class Remote [javac] @Remote [javac] ^ [javac] C:\crs570\DBMSSware\src\sware\dbms\businesstier\DbmsBean.java:28: cannot find ...

18. flushing EJB3 for use with EJB2.1    forum.hibernate.org

i wrote this to JBoss forum first, but jaikiran advised me to post it here for some input, hopefully ; ) robert.geisler wrote: hello everybody, i m confronted with a problem of simultaneous using of EJB2.1 and EJB3.0 in one server application and i hope to find some help here. preface: currently i m migrating a complex application implemented with EJB2.1 ...

19. jdk5 and ejb3 options unavailable in HibernateTools-3.2.4.GA    forum.hibernate.org

Hi, I am using Hibernate ant tools to reverse engineer classes. However, the jdk5 and ejb3 options are not available to me with the exporters. Please advise. hibernate-distribution-3.3.2.GA hibernate-annotations-3.4.0.GA hibernate-entitymanager-3.4.0.GA HibernateTools-3.2.4.GA hsqldb-1.8.0.10 Eclipse 3.4.2 Ganymede Classpath: build;lib\antlr-2.7.6.jar;lib\asm.jar;lib\c3p0-0.9.1.jar;lib\cglib-2.1.3.jar;lib\commons-collections-3.1.jar;lib\commons-logging.jar;lib\dom4j-1.6.1.jar;lib\ejb3-persistence.jar;lib\freemarker.jar;lib\hibernate-annotations.jar;lib\hibernate-commons-annotations.jar;lib\hibernate-entitymanager.jar;lib\hibernate-tools.jar;lib\hibernate3.jar;lib\hsqldb.jar;lib\javassist-3.9.0.GA.jar;lib\jta-1.1.jar;lib\jtidy-r8-20060801.jar;lib\log4j.jar;lib\servlet-api.jar;lib\slf4j-api-1.5.8.jar;lib\slf4j-jdk14-1.5.8.jar; (and a lot Eclipse jars) Build script snippet: Code:

23. hibernate vs EJBs?    forums.oracle.com

24. Hibernate VS EJB3    forums.oracle.com

You won't get far, because you should be examining JPA - the Java Persistency API which is integrated into EJB3. The difference is small since JPA is based on existing ORM packages such as Hibernate and Toplink. If you are using J2EE then JPA might be the better choice because it is integrated and you don't need additional jars, if you ...

25. EJB and hibernate    forums.oracle.com

In the context of the most technically challenging problem you have solved using technologies such as Hibernate, Spring, EJB, Web Services, JSP/Struts: 1. Briefly describe the problem 2. What solution options/alternatives did you consider? 3. Which option/alternative did you choose to implement, and why? 4. What were the major configuration/coding tasks that your solution entailed? I would appreciate your response.

26. Junior needs help in EJB3 - Hibernate    forums.oracle.com

Hi all,... i am hoping some of you can help me with providing me some additional information. I am going to do my first project what i'm not planning to do with JDBC. this time i want to use either Hibernate or EJB3. after reading tons of articles about these 2 techniques i still dont know what the exact difference is. ...