1. Do I need DataSource in JPA Hibernate project? stackoverflow.com
|
2. Getting internal Oracle connection from Hibernate in JBoss forum.hibernate.orgHello, I need to set an Oracle application context through Hibernate. I found there is a method setApplicationContext on oracle.jdbc.internal.OracleConnection. I wrote a test, in which I was getting the Oracle connection from the Hibernate session and it worked fine. However, when I moved the code to my application running under JBoss where connections are obtained from the pool the solution ... |
3. Session and datasource + JBoss forum.hibernate.orghmmmmm. Currently the session keeps hold of the connection until you explicitly close() or disconnect() the session. This makes perfect sense when used in a servlet container, main() method or in a single call to a stateless session bean. I'm not so sure about the case of re-using the same session accross nested calls to multiple session beans. I've never tried ... |
4. Which connection pooling for Hibernate/JBoss forum.hibernate.org |
5. why jboss close connection (of Session) automatic forum.hibernate.org16:25:06,859 [Thread-7] DEBUG impl.SessionImpl - post flush 16:25:06,859 [Thread-7] INFO anager.CachedConnectionManager - Successfully closed a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@a53564 java.lang.Exception: Stack Trace at org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(CachedConnectionManager.java:376) at org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObject(CachedConnectionManager.java:199) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:190) ... |
6. Multiple datasource best practice with JBoss 3.2.6 forum.hibernate.orgProblem: We have multiple datasources all sharing the same schema and domain model. We are using multiple session factories currently deployed as separate MBeans in JBoss. The use case is that a user may select the specific datasource subject matter to work with, blah, blah, blah... However, although this works, looking a little deeper it would seem wiser to pass in ... |
7. Connections error message with JBoss 4.0.1 forum.hibernate.orgtry { Session sess = HibernateContext.getSession(DBO_SESSION); Criteria attCrt = sess.createCriteria( Attribute.class ); attCrt.add( Expression.eq( "id", id ) ); ... |
8. Hibernate2 and JBoss3.2.x DataSource Issue forum.hibernate.orgHello, I am using Hibernate version 2-1 and trying out with jBPM on JBoss 3.2.5 and 3.2.6. I am facing a problem looking up the datasource in JBoss .. Ant Version 1.6.2 After struggling a lot, I have narrowed down the issue to a "ClassNotFoundException" in NamingHelper class. I believe that this could be due to some version mismatch... but was ... |
9. HibernateContext and JBoss clossing connections forum.hibernate.org |
10. JBoss4.0+Hibernate3 throws DataSource Not found forum.hibernate.orgHi, I have a simple applet based program which uses hibernate-3.0,Oracle 10g and JBoss 4.0 the code of the data saving portion is as below public void actionPerformed(ActionEvent ae) { if(ae.getSource()==btnSave) { int row,col; if(txtPanel.txtVoucherDate.getText().length()>0) { try { java.util.Date date=new java.util.Date(txtPanel.txtVoucherDate.getText()); try { SimpleDateFormat sdf=new SimpleDateFormat("dd-MMM-yyyy"); txtPanel.txtVoucherDate.setText(sdf.format(date)); try { //DATA SAVED THROUGH HIBERNATE FOR TB_VOU_MAIN try { Configuration cfg = new ... |
11. How to make Hibernate utilize the datasource for Jboss? forum.hibernate.orgHi all, I'm using hibernate 3.2.cr2, mysql5, jboss4.0.3SP1. I would like to know if i want Hibernate to utilize the datasource of JBoss 4.0.3 for connection pooling, what are the files that I need to edit? When edit, what are the configuration that I need to specify in order to get it work? Is it context.xml, hibernate.cfg.xml, jboss-web.xml, web.xml, mysql-ds.xml (in ... |
12. JBoss 4 & Datasource forum.hibernate.orgNewbie Joined: Wed Aug 30, 2006 10:00 am Posts: 1 I have been fussing for hours trying to get a simple Hibernate / Servlet example running ....I am attempting to connect to my database using a Datasource. I know the Datasoruce is properly configured since a separate ( non Hibernate ) web app connects fine using this Datasource. I keep getting ... |
13. Conn with datasource in JBOSS app server in hibernate forum.hibernate.orgCode between sessionFactory.openSession() and session.close(): public List findByProperty(String propertyName, Object value) throws DAOException{ //log.debug("finding Users instance with property: " + propertyName + ", value: " + value); System.out.println("the value of property in the userDAO::"+propertyName+ " Value::"+value); try { String queryString = "from Users as model where model."+ propertyName + "= ?"; Query queryObject = this.hibSession.createQuery(queryString); //Query queryObject = getSession().createQuery(queryString); System.out.println("the query ... |
14. JPA accesing a datasource using jboss forum.hibernate.orgBeginner Joined: Sat Feb 07, 2009 12:31 am Posts: 21 Hibernate 3.3.1.GA Hibernate Annotation 3.4.0.GA Hibernate EntityManager 3.4.0.GA JBoss 4.2.3.GA Hi, I'm getting an error whenever I try to create an EntityManager using EntityManagerFactory and using a container managed datasource for my persistence unit, here's the stack: Code: 01:57:43,070 ERROR [[/MyDemoProject]] Exception sending context initialized event to listener instance of class ... |
15. Configuring data sources with JPA on JBoss 5 forums.oracle.com |