ejb 1 « EJB « JPA Q&A





1. EJB3 and manual hierarchy persistence    stackoverflow.com

I have a legacy database, which I am using EJB3 to model. The database is in quite a poor shape, and we have certain unusual restrictions on how we insert into ...

2. ejb vs hibernate    stackoverflow.com

When is better to use hibernate and when ejb3? Aren't there any impediments with either hibernate or ejb3?

3. Java EE example project    stackoverflow.com

I am currently in the process of learing about Java EE, EJB3 and . So far I am running a JBoss application server and a Oracle database. I have written a ...

4. Use of Hibernate 3.0 with EJB 3.0 & JPA    stackoverflow.com

Where I'm working the guys that are sitting across from me are working on a project. This is a JavaEE app which uses Struts, Spring, EJB 3.0, JPA, and Hibernate ...

5. Pros & Cons: Hibernate vs. EJB 3    stackoverflow.com

What are the advantages and disadvantages of Hibernate & EJB3 relative to each other? I found this post, but it didn't really address my question. If I don't have any particular ...

6. Hibernate and JPA, what to use, where?    stackoverflow.com

Could someone please explain to me what the main differences are between JPA and Hibernate? Where to use Hibernate ? Where to use JPA? Why not entity bean?

7. Doubt regarding JPA namedquery    stackoverflow.com

I am trying to execute a namedquery

@NamedQuery(name="getEmployeeDetails",query="select e.username,e.email,e.image,e.firstname,e.lastname from Employee e where e.empid=?1")
Now when I execute this query in a EJB 3.0 Session Bean what is the object I should ...

8. EJB 3 or Hibernate 3    stackoverflow.com

Regarding a Java EE Web application which is going to be served by a full Java EE Application server e.g. GlassFish, which is the best ORM Solution? EJB 3 or Hibernate ...

9. Is it possible to use EJB 3.1 in desktop applications?    stackoverflow.com

Is this possible? Does anyone ever do this? I feel like I can lay out my application better if I use what I'm used to in web applications. ...





10. Persistence provided by Hibernate different from EJB 3.0    stackoverflow.com

I am new with hibernate. And I am confused that how is the persistence provided by Hibernate different from that provided by EJB? Thanks in Advance !

11. Hibernate EJB IllegalArgument    stackoverflow.com

I have this mysterious hibernate ql exception. It involves three classes:

package com.systemspecs.Entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.*;

/**
 *
 * @
 * @author-Admin
 */
@Entity
@Table(name = "echequeupload")
@DiscriminatorColumn(name = "TYPE", discriminatorType = DiscriminatorType.STRING)
public class EchequeUpload implements ...

12. org.hibernate.NonUniqueObjectException    stackoverflow.com

There are two table in MySql database named currency(id, name, symbol) and country(id, name, currencyId). i'm mapping currencyid with id in currency. so i take it as a foreign key. there ...

13. NO EJB found in .war    stackoverflow.com

I've created a Dynamic Web Project in Eclipse. I have 2 beans, 1 @Entity and the other @Stateless. I've deployed the war to Geronimo 2.2.1 with Tomcat 6 with ...

14. Strange behavior for PESSIMISTIC_WRITE?    stackoverflow.com

I am new to JPA 2.0 locking, so it might be I am missing something. Using NetBeans, I tried to debug a Stateless Session Bean. I tried to switch between two threads ...

15. Swing User Interfaces    stackoverflow.com

I am developing Swing applications. I use Netbeans IDE to design user interfaces and code. I use EJB and Hibernate according to the application. Now I have to develop many applications ...

16. Limitation on the expressiveness of Hibernate (and JPA) Criteria?    stackoverflow.com

I have 4 entities in a Hierarchy like this:

               Parent
        ...





17. How to connect the various part in my Java EE Application    stackoverflow.com

I am making a Java EE application just to use what I learn while reading in the books. I made a simple Entity and a DAO object that do different actions ...

18. Boundary between EJB 3.0 and JPA?    stackoverflow.com

that may seem obvious but I've seen contradictory statements : Is JPA part of EJB 3.0 ? I'm no specialist and It's quite confusing for me. If so, JPA manipulates Entity Beans ? ...

19. Advice in choosing framework    stackoverflow.com

I currently have a JSF application which interacts extensively with web services to display data to the user. There is no business logic that needs to be maintained in the web ...

20. Hibernate or EJB    coderanch.com

Well, it is like comparing Apples to Oranges, yes there might be some basic sort of overlap, but they are two different things. Hibernate is a Relational Mapping tool. Meaning a transparent persistence mechanism that can be used in any application to decouple Data Access from Business Logic. EJB is a specification, standard. It isn't exactly a tool. Yes there are ...

21. Hibernate with EJB    coderanch.com

22. Hibernate now, or wait until EJB 3.0?    coderanch.com

We're moving away from JDO (corporate decision, spec is dying). I don't want to make the same mistake twice. Hibernate is clearly gaining momentum .... but -should we wait for EJB 3.0 (rather than have to go through an upgrade cycle)? -there seems to be a lot of bugs in Hibernate - look at all the user problems on JavaRanch - ...

23. Hibernate and EJB    coderanch.com

Remember that Hibernate/JDBC transactions are different from JTA transactions. If you are calling your Hibernate code from inside a CMT EJB method, you won't use the Hibernate transaction API directly at all. Typically Hibernate recommend a "Session per business (JTA) transaction" approach. This basically means when you call your DAO code from a business method it opens a session, and does ...

24. Problem using Hibernate with EJB's    coderanch.com

25. Should I learn Hibernate or wait for EJB 3?    coderanch.com

One thing I forgot to comment on is the performance issue. One of the main reason I started using Hibernate is that it has a huge # of options for tuning the database queries. Hibernate Query Language (HQL) is much much much more expressive that EJB's query language (EJBQL), at least in EJB 2.x. With HQL you can do single row ...

26. Question for Authors: Hibernate vs. EJB 3.0    coderanch.com

My experience with EJB 3.0 is somewhat limited, its just not something I could consider myself expert in. That said, I think it comes down to "I need to get stuff done now" vs. "I need a way to get stuff done eventually". Hibernate v3 is also converging a bit with EJB 3.0 as well. Gavin did work with the EJB ...

27. ejb 3.0 vs ejb 2.0 vs Hibernate revisited    coderanch.com

Hello all, Ok I know the rules here, first look in the forums if you can already find the answer and also look with Google. I did. So be kind to me. The answer is not clear to me, when you look at criteria like installed base, stability, performance and caching, ease of maintenace, scalablity, and transaction management I can not ...

28. Hibernate vs EJB 3.0    coderanch.com

I heard that EJB 3.0 is going to be very like Hibernate mechanism. Then, why don't people wait for EJB 3.0 ? If I want to convert an existing entity bean involved application into Hibernate, maybe the best way is don't do it and just wait for EJB 3.0 ? (Because I guess that may require less change for me since ...

29. Hibernate or EJB3.0?    coderanch.com

Well, it actually really isn't a this or that choice. Hibernate 3.0 is an implementation of EJB 3.0. So if you choose Hibernate 3.0 you are using EJB 3.0, they are one n the same. Now with Hibernate, you will also get extension to EJB 3.0. And you should still think of EJB 3.0 Entity beans as JPA (Java Persistence API), ...

31. Hibernate or EJB    coderanch.com

By EJB, I presume you mean EJB 3.0 - JPA? In which case, it's not really going to make much difference as you're using the JBoss technology stack either way. Unless there's some good reason to use Hibernate, you may as well just use EJB 3.0 in the app server (which is based on Hibernate anyway). That will at least reduce ...

32. problems occuring while using hibernate in ejb    coderanch.com

I am new to hibernate. i have done some example with hibernate. it was successfully. but when i am creating session and retrieving data from session bean, its not working.I am working on RAD. Please tell me how to create a folder structure. I create a folder below the ejb folder in ejb project and i copied the relevant xml files, ...

34. Hibernate in EJB2 and EJB3    coderanch.com

36. EJB3 JPA implementation    coderanch.com

Looks like you're going to be using Hibernate with that ejb3-persistence.jar file of yours. Gregg is correct, if you want to use JPA, you need a framework that supports it. Here's what you need to support a basic JPA & Hibernate development environment: * A JDBC compliant Database. (and the ability to perform the most basic of database administration tasks.) * ...

37. Hibernate and EJB 3 and 3.1    coderanch.com

38. Hibernate and EJB 3.0    coderanch.com

EJB provides an object relational mapping mechanism that uses JPA. Many people think Hibernate is based on EJB 3.0, or EJB 3.0 is based on Hibernate, which isn't true, although both technologies pull from many of the lessons learned over the past 5 or 6 years in the industry, and as such, they share a great many similarities. I like the ...

40. Hibernate with EJB3    coderanch.com

41. EJB3 or hibernate    coderanch.com

Hi I am new to Persistence. I want to use ORM in my project and i want to use JPA. As i am new, i am bit confused whether to use EJB3 entity beans or hibernate. I know both follow JPA. Can i use ejb3 entity beans following jpa without any need of hibernate or i need to use hibernate too. ...

42. EJB3 to Hibernate    coderanch.com

43. differences between EJB 3.0 & Hibernate?    coderanch.com

Amit, I will let Emmanuel answer this one. He is the JPA spec lead after all. I will tell you that as I am a heavy user there are quite a few differences. Probably too numerous to mention here but he can give you the main ones. Be patient, he is in Europe at the Devoxx conference this week. John G. ...

44. Hibernate & EJB 3.0    coderanch.com

45. ejb3 reverse engineering from hibernate tools    coderanch.com

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 ...

46. Basic JPA/EJB3 question    coderanch.com

All, I am new to JPA/EJB3. I am having difficulty figuring out if JPA is a subset of EJB3 or if they are infact the same thing. Could someone clarify this for me? Does EJB3 still require an appserver? Also, I am looking for a good JPA tutorial, ideally using Hibernate as the engine. If someone could share a link, that ...

47. Problem while using JPA, EJB 3.0    coderanch.com

Hi All, I am very new to EJB 3.0 and JPA and while implementation i have got one issue. In the application i have 3 table say A,B & C. B has a FK relationship with PK of A. So functionality is when i update a record in A, a new record with some more details has to be entered in ...

48. JPA not working with EJB3    coderanch.com

I have the following code in my ejb @Stateless public class UserServiceBean implements UserService { /** * Default constructor. */ public UserServiceBean() { // TODO Auto-generated constructor stub } @Override public User create(User user) { EntityManagerFactory emf = Persistence.createEntityManagerFactory("workingpoint-model"); EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); em.persist(user); em.getTransaction().commit(); em.close(); return user; } } i am getting, javax.persistence.PersistenceException: No Persistence provider for EntityManager named ...

49. EJB3 org.hibernate.LazyInitializationException:failed to lazily initialize a collection of role    coderanch.com

...................................... EmployeeDelegate ed=new EmployeeDelegate(); System.out.println("Hi Nit EmployeeDelegate created successfully"); Employee emp=ed.findEmployeeByEmployeeNumber(userName); req.setAttribute("employee", emp); System.out.println("---------------------------Hi Nitin printing the Employee object details:"); System.out.println("First Name:"+emp.getFirstName()); System.out.println("Last Name:"+emp.getLastName()); System.out.println("Address:"+emp.getAddress().getStreetAddress()+" | "+emp.getAddress().getCity()); System.out.println("Date Of Joining:"+emp.getDateofJoining().toString()); Set sL1=emp.getLeaveHierarchy(); Iterator i1=sL1.iterator(); LeaveApprovalHierarchy l1=null; System.out.println("Printing Leave Approval Hierarchy objects:"); while(i1.hasNext()) { l1=i1.next(); System.out.println("AHID:"+l1.getAHID()); System.out.println("Approval Level:"+l1.getApprovalLevel()); System.out.println("Approver Emp ID:"+l1.getApproverEmpIDFK()); System.out.println("Employee ID:"+l1.getEmployeeIDFK()); System.out.println("---------- Next Line-------------"); } System.out.println("---------- Leave Approval Hierarchy ...

50. Is it possible to use JPA 2.0 with EJB 3.0? (not EJB 3.1)?    coderanch.com

Well, the real answer is more complicated than this. Basically it depends on your server and JPA provider, and usage. JPA 2.0 is backward compatible with JPA 1.0, so you can probably just replace your server's jar and have most things work. Configuration of JPA 2.0 done through xml will probably just work, as well as annotations, as the new annotations ...

51. EJB & JPA Unexpected Results    coderanch.com

Hi I have two entities, Client and Telephone @Entity public class Client implements Serializable { private static final long serialVersionUID = 1L; @OneToMany(mappedBy = "client", fetch = FetchType.LAZY, cascade = {CascadeType.ALL }) private List telephones; @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private int id; @Entity public class Telephone implements Serializable { private static final long serialVersionUID = 1L; @Id private Long number; @ManyToOne ...

52. solution for EJB3.0 and Open JPA in WAS7    coderanch.com

Hi All, i am working on EJB3.0 and OpenJPA1.2.3 version on WAS7. here i have a problem, the one to many assosiations are not picking data from database. Earlier we used EJB3.0 and Toplink on Glassfish. we didn't find any problem at the time with one to many assosiations. when we move from toplink to OpenJPA and glassfish to WAS7 these ...

53. JPA, EJB and Web Application    coderanch.com

Is there any tutorial or example for using JPA and EJB3.0 and test client as a servlet or struts action class. I am trying to save value in database using a stateless session bean and JPA and the invoke that session bean in servlet. Here is my entity class /* * To change this template, choose Tools | Templates * and ...

54. Hibernate guide    java-forums.org

55. Bug in org.hibernate.ejb.QueryImpl    forum.hibernate.org

Emmanuel There seems to be a bug in the QueryImpl class in the method extractParameterInfo() Here's what I've done: I create an equal predicate using a Path to House.address and a Address value. @Entity class House { @Type(type="jc.AddressUserType") @Columns(columns={@Column(name="address")}) Address address; In the extractParameterInfo() method there is a loop that gets the javaType from a namedParameterTypeRedefinition. It gets the javaType (Address.class) ...

56. Which is the best practice for use EJB and Hibernate?    forum.hibernate.org

Which is the best practice for use EJB and Hibernate in a multi layer application (WEB,Logic, Data/Model)? I would use EJB 3.0 and i thought that use Entities managed by Hibernate and Staless Session Beans that implements the application logic is good. The dubt is about the interaction Web-Logic in which i would pass directly as session beans response entity object ...

57. hibernate.ejb.cfgfile absolute file path    forum.hibernate.org

58. HibernateEntityManager instances within EJB3 Cont. in GFv3    forum.hibernate.org

Hi, All I am using Glassfishv3 and hibernate3.5.0-Final as persistence provider in my EJB3 application; and i want to use Hibernate's some specific functions through Hibernate Session...I'm trying to get EntityManager instance of Hibernate(HibernateEntityManager implementation) not com.sun.enterprise.container.common.impl.EntityManagerWrapper...Whenever i get an InitialContext by JNDI, it always returns an instance of that wrapper to manage my entities in the PersistenceContext... In other words, ...

59. ClassNotFoundException: org.hibernate.ejb.Hibernate in 3.3.2    forum.hibernate.org

As of 3.5.4, that class definitely is in hibernate3.jar. (I don't know what's in earlier versions, specifically I don't have 3.3.2.) Possible causes that I can think of: - the class wasn't in 3.3.2 at all, and the code that needs it is newer - you accidentally installed an old hibernate3.jar - your classpath accidentally includes an old hibernate3.jar

61. EJB BMT and Hibernate...    forum.hibernate.org

java.sql.SQLException: Connection handle is not currently associated with a ManagedConnection at org.jboss.resource.adapter.jdbc.local.LocalConnection.checkStatus(LocalConnection.java:774) at org.jboss.resource.adapter.jdbc.local.LocalConnection.getWarnings(LocalConnection.java:573) at net.sf.hibernate.impl.SessionFactoryImpl.closeConnection(SessionFactoryImpl.java:321) at net.sf.hibernate.impl.SessionImpl.disconnect(SessionImpl.java:3159) at net.sf.hibernate.impl.SessionImpl.close(SessionImpl.java:471) ...

62. EJB    forum.hibernate.org

63. Hibernate and EJB    forum.hibernate.org

I'd like to use hibernate with EJB. I see that there's 2 categories of EJB : EJB Entity and EJB Session. For each category, there's 2 sub-categories. EJB Entity : BMP and CMP EJB Session : stateless and statefull I'd like to know the EJB's category that i can use with hibernate. As i understand, only EJB Entity deal with DataBase. ...

64. Newbie: Best way to access SessionFactory from an EJB    forum.hibernate.org

I'm a newbie at J2EE, and refactoring an existing Hibernate/Tomcat/Struts app, and I'd like to know the best method for obtaining a session within a Stateless Session Bean. Currently, I'm doing it as outlined in the Wiki: Context ctx = new InitialContext(); SessionFactory factory = (SessionFactory) ctx.lookup("java:/hibernate/HibernateFactory"); sess = factory.openSession(); Which is working fine, but is this the preferred way to ...

65. EJB Questions    forum.hibernate.org

66. EJB    forum.hibernate.org

I have got importnat questions to decide how to design my web application. One of then is that I need clear arguments what are the advantages or disadvantages of using EJB over simple JDBC wrapper. I mean wrapper is like a tool that has a highest class that stands over table in database. You call it O-R table-per-class-hierarchy. I like this ...

67. Doing away with EJBs.    forum.hibernate.org

Is it alright now to do away with EJB in ANY application (including "mission-criticals")? Have other open source/commercial tools matured now to a point of being able to do well the advantages that EJB is said to have? I am not inclined to using EJB but my mind is open. I'd like to have your opinions on this, including substitute tools. ...

68. EJB and filter    forum.hibernate.org

Hi, I have a web application that basically lists some objects (about 200) from a database. I want to create a web page that contains a lot of criterias that will filter these objects according with user selection. My question is about the best way to do this. All my business logic, i.e. access to the database, is located on EJB ...

69. how hibernate work with ejb?    forum.hibernate.org

after do reference, i write a session bean like below: public class MySessionBean implements SessionBean{ private SessionContext ctx; private Session session; private Transaction tx; private SessionFactory factory; private Log logger = LogFactory.getLog(InventoryBean.class); public void setSessionContext(SessionContext ctx) throws EJBException, RemoteException { this.ctx = ctx; } public SessionContext getSessionContext(){ return this.ctx; } public void ejbCreate(){ if(logger.isInfoEnabled()){ logger.info("Session bean created"); } Context context = ...

70. added details for running Hibernate with an EJB in the WSAD5    forum.hibernate.org

Added some details to the steps of running Hibernate with an EJB application in the WSAD 5.0.1 environment, originally posted at this link: http://www.hibernate.org/173.html. I've added some details to make it easier for beginners like myself. Note all test server configurations refer to the WSAD test environment 1.Create the EAR and EJB projects as you normally do, create the Session bean ...

71. What is that EJB has, that Hibernate doest not?    forum.hibernate.org

72. What is that EJB has, that Hibernate doest not?    forum.hibernate.org

74. Hibernate and EJB, really necessary ??    forum.hibernate.org

75. Will EJB 3.0 phase out Hibernate    forum.hibernate.org

76. Hibernate, Oracle9, EJB and Sun Application Server 8.1    forum.hibernate.org

I am trying to access hibernate from a session bean deployed on sun server 8.1. When I try to instantiate a session factory I get a security exception. To remedy this I decided to try to put the SessionFactory in the JNDI tree but this has not worked well either. If anybody has a solution please let me know. Thanks!

77. ejb / hibernate    forum.hibernate.org

hi i am a newbie in the hibernate i am very much in need of information on how to hibernate can handle container managed persistance or how can i use it in BMP entity bean. i am seeking for help because i could not find any articles or posts on step by step procedure in using hibernate in container (especially in ...

78. Hibernate persistence with EJB    forum.hibernate.org

I was working on web project where I had the persistence layer in the web container itself and hibernate was used to persist data, there is a new requirement of introducing Session bean >> DAO >> Hibernate for persistence, do I have to move all my java beans and mapping files .hbm.xml to EJB container. _________________ Web Developer

79. Hibernate and EJB    forum.hibernate.org

80. Calling one EJB from another EJB    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Hibernate version: 2.17 Hi, My environment is Eclipse 3.0 with Lomboz Plugin; JBoss 3.2.3 Application Server; Microsoft SQL Server 2000 Database; Hibernate 2.17 The web application I am working on is using 2 different datasources (odbc-ds.xml and mssql-ds.xml). One is using Sun's ODBC-JDBC Driver while the other one is using Microsoft's ...

81. EJB VS Hibernate    forum.hibernate.org

Hi, I am trying to convince my existing employer to use Hibernate for our current project but the techincal architect is asking for some good reasons as to why he should choose Hibernate over EJB. I have mentioned the advantages of going with Hibernate but I dont think he is convinced. Please help me out guys. If you could give me ...

82. Hibernate/EJB and interfaces?    forum.hibernate.org

Hi all, Is anyone able to point me in the direction of more information on persisting interfaces in Hibernate/EJB3.0? I can't see them mentioned specifically in either the EJB3.0 persistance spec, or the Hibernate docs. Hibernate talks about querying using interfaces, but I'm trying to figure out if it will support persisting fields whose types are interfaces, where the implementing class ...

83. Hibernate 3 + EJB 2.0    forum.hibernate.org

Hi mates, I've been reading as many posts as I've found regarding the EJB and Hibernate interaction to each other. I know they are not fully-friends but there are not enemies either. I am also aware they can coexist together and here is where my doubts start running around in my mind... Currently, I've done some test about using Hibernate POJO ...

84. Using 3.1, ThreadLocal and EJBs    forum.hibernate.org

Hibernate version: 3.1 Hello, From what i can see, session management is handled by the container on hibernate 3.x. My question is, how does that impact the thread local pattern as we used it in 2.1? Do we still have to explicitly close a threadlocal session explicitly (counting open/close calls) or is the almighty container also responsible for this? I really ...

85. EJB with local interface and Hibernate    forum.hibernate.org

I am writing ServiceLayer using SessionBeans with local calls. I read Hibernate in action book and know about DTO (ValueObjects) which allow to pass data between tiers which working in different processes. But is it possible to pass domain objects to client (Web application) from local session bean or I should use DTO? I think it right, because session beans with ...

86. EJB + Hibernate + SJSAS problem (NoClassDefFoundError)    forum.hibernate.org

Hibernate version: 3 I am writing EAR which contains WAR and EJB module. EAR root dir contains all hibernate related libs. When i call session bean's method from WAR servlet which call SchemaExport - all works fine. But if I am trying to buildSessionFactory i always got this: javax.ejb.EJBException at com.sun.ejb.containers.BaseContainer.processSystemException(BaseContainer.java:2807) at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:2713) at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:2521) at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:819) at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:137) at $Proxy49.getEntity(Unknown ...

87. Hibernate - EJB Restrictions    forum.hibernate.org

Hi, I have got a basic few questions regarding Hibernate in J2EE servers. Please help me in clearing my doubts. a) As per EJB specs. IO and Reflections should not be allowed. But I understand that Hibernate is using lots of Reflections and IOs and I also presume that hibernate doesn't provide Resource Adapter(not a JCA application) so, what is the ...

88. Is EJB 3.0 has more features than Hibernate?    forum.hibernate.org

Hi Hibernate Team, One basic question here. I have been hearing from my friends than EJB 3.0 is more advanced than hibernate and also heared that in its developement effort hibernate team has also involved. is that true? If so, let us know, whether to use EJB 3.0 or Hibernate if we are planning to start a new j2ee project. Thanks, ...

89. migration to EJB 3.0 with hibernate    forum.hibernate.org

hi! here are some steps which you want to try: 1st: read the ejb3.0 and hibernate persistence specifications which can be found at the hibernate.org 2nd step: reverse engineer database tables. use the hibernate tools plugin for eclipse which supports ejb3 annotations. if you have a proper designed database-schema then the plugin recognizes the primary keys, foreign keys and their related ...

91. EJB3 or EJB2+Hibernate?    forum.hibernate.org

Hi, I'm starting a new project which I wish to use EJB3. As far as I know the specification of EJB3 is not yet finalised. If I'm using EJB3 with the current implementation i'm not sure how much changes I need to make after I develop my project halfway. The other idea would be using EJB2(Session) plus Hibernate. But I really ...

92. Download EJB3 API Documentation    forum.hibernate.org

93. EJB and Hibernate    forum.hibernate.org

Hibernate version:2.1.7 Full stack trace of any exception that occurs: [3/14/06 11:11:11:424 EST] 244ba80d JDBCTransacti E net.sf.hibernate.transaction.JDBCTransaction Commit failed [3/14/06 11:11:11:440 EST] 244ba80d JDBCTransacti E net.sf.hibernate.transaction.JDBCTransaction TRAS0014I: The following exception was logged java.sql.SQLException: DSRA9350E: Operation Connection.commit is not allowed during a global transaction. at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.commit(WSJdbcConnection.java:641) at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:63) at us.ny.state.otda.dcse.login.ejb.LoginBean.insertCswPinRequest(LoginBean.java:157) at us.ny.state.otda.dcse.login.ejb.EJSLocalStatelessLogin_3685989f.insertCswPinRequest(Unknown Source) at us.ny.state.otda.dcse.requestpin.businessdelegate.RequestPinBusinessDelegate.insertCswPinRequest(RequestPinBusinessDelegate.java:82) at us.ny.state.otda.dcse.requestpin.action.RequestPinAction.execute(RequestPinAction.java:158) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at ...

94. Pesistence unit in muliple ejb3 files    forum.hibernate.org

I have file entities1.ejb3 that contains several annoted entities. I have another file, entities2.ejb3 that contains more entites. I need them to be deployed within the same persistence unit. I thought that if I put both .ejb3 files within the same ear, then put my persistence.xml in the META-INF of the ear, then it would be able to find all of ...

95. Source code for EJB3-persistence library?    forum.hibernate.org

96. how about Ejb3.0 and Hibernate    forum.hibernate.org

97. Long delay in EJB with Hibernate 3.2 CR4    forum.hibernate.org

Hibernate version: 3.2 CR4 Name and version of the database you are using: MSSQL Server I'm using WebSphere Application Server version 6.0.2.13 and I'm trying to migrate from Hibernate 2.1.8 to the latest 3.2.0 RC4 Everything seams ok except for the following strange problem: I'm using Hibernate within an EJB and when I send a detached object retrieved with hibernate to ...

98. about Hibernate and EJB    forum.hibernate.org

chwang wrote: Wolles, Thank you. According to what yuo said. Ejb3.0 or Hibernate object must bind with Session bean in the same JVM, so to Manipulate Database. Am I right? Chwang Chwang, I'm sorry, but I do not really understand your question. So it is difficult for me to give you an answer. But back to your first post in this ...

99. A stupid question: JPA = EJB?    forum.hibernate.org

Hi all, I've been reading about JPA but every time I see JPA, I also see the word EJB. In my mind EJB = evil: difficult, impractical, obsolete, technology for the sake of vendors and basically something I want nothing to do with. I realize this is a preconceived notion that might be reevaluated but why would I? I think that ...

100. difference between hibernate and ejb    forum.hibernate.org