MBean « JBoss « JPA Q&A





1. hibernate as MBean in JBoss - prepared stmt cache problem    forum.hibernate.org

Hi, I'm using Hibernate deployed as a service in Jboss. And it seems the prepared statement cache does not work. When I examine the messages sent to DB server, I see the same SQL sent every time it's executed. If I initiate Hibernate (load mapping files, build sessionfactory, etc.) the cache seems working. I see SQL once. This method uses the ...

3. Hibernate as Mbean on JBOSS    forum.hibernate.org

4. problem trying to use Hibernate as an MBean with JBoss    forum.hibernate.org

Newbie Joined: Sun Apr 11, 2004 12:13 pm Posts: 7 Hi. I'm using Hibernate 2.1 with JBoss 3.2.1 and am having a problem trying to use Hibernate as an MBean. The problem I am having does not occur when I first start up JBoss; rather, it only happens after I rebuild my application and do a hot deploy of my .ear ...

5. How to obtain Configuration when using JBoss Mbean?    forum.hibernate.org

Hi, I am using Hibernate 2.1.2 with the JBoss-service Mbean, which works well. Now I would like to start a SchemaUpdate from an initializer servlet. All examples go Configuration cfg= ... new SchemaUpdate(cfg).execute(); How do I get the Configuration object? If i understand it correctly, then I would only need the properties, which are present in SessionFactory, then I could do ...

6. i succeed use the hibrnate in the mbean of jboss,but...    forum.hibernate.org

i succeed use the hibrnate in the mbean of jboss,but,when i operate the database ,the JSP page tell me the error(but i debug the code in the eclipse,the whole code runs ok): the console of the jboss tell me(it seems like ok) Code: ..... ..... 23:35:38,685 INFO [SettingsFactory] Use scrollable result sets: true 23:35:38,695 INFO [SettingsFactory] Use JDBC3 getGeneratedKeys(): ...

7. why the mbean of jboss tell me the warning info!!!    forum.hibernate.org

here is all my code: Code: <%@ page contentType="text/html;charset=GBK" %> <%@ page language="java" %> <%@ page import="javax.naming.*" %> <%@ page import="javax.sql.*" %> <%@ page import="java.sql.*" %> <%@ page import="net.sf.hibernate.SessionFactory" %> <%@ page import="net.sf.hibernate.Session" %> <%@ page import="net.sf.hibernate.Transaction" %> <%! javax.sql.DataSource ds; SessionFactory sf; Session objSession; Transaction tx; %> <% try { ...

8. Jboss + Hibernate (mbean) help    forum.hibernate.org

I have followed the article at http://www.hibernate.org/66.html but I am still having problems. I can deploy the MBean (hibernateStartup.sar) by itself and it appears to be fine. However, if I put it in my ear then deployment of the ear will give me errors. EAR structure... Code: META-INF/ application.xml ...

9. PropertyList and JBoss MBean    forum.hibernate.org





10. Multiple Hibernate MBean deployment on JBoss?    forum.hibernate.org

I've been using hibernate 2.1 with mysql 4.0.18 inside of JBoss 3.2.3 for sometime with good results. I have the hibernate files (mapping and bean files) deployed as an MBean in a separate Service Archive (SAR) as described on the Hibernate web site( www.hibernate.org/66.html ). The hibernate library and related jars are deployed in JBOSS_HOME/server/default/lib. This MBean is accessed by several ...

11. jboss 4.0 mbean service    forum.hibernate.org

Hibernate version: 2.1 -- jboss.jca:service=RARDeployer jboss.jca:service=LocalTxCM,name=mysqlds -- mysql-ds.xml mysqlds jdbc:mysql://localhost:3306/mytest org.gjt.mm.mysql.Driver name pass b] [b]Code between sessionFactory.openSession() and session.close(): n/a Full stack trace of any exception that occurs: 10:48:17,218 INFO [NamingHelper] JNDI InitialContext properties:{} 10:48:17,218 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/mysqlds javax.naming.NameNotFoundException: mysqlds not bound at org.jnp.server.NamingServer.getBinding(NamingServer.java:495) at org.jnp.server.NamingServer.getBinding(NamingServer.java:503) at ...

12. More than one MBEAN for Hibernate in Jboss    forum.hibernate.org

Hi, im working with jboss 4.0.1 and i want to kwon how can i do to have two mbean instantiated for hibernate. I want one of this for an XAOracle connection, and the other one to have an XASqlServer connection. Im working with a n-tier architecture, and the transacctions are managed in EJB with JTA. Thanks...

13. Deploy Hibernate 2 as MBean in JBoss 3.2.6    forum.hibernate.org

Need help with Hibernate? Read this first: http://www.hibernate.org/ForumMailingli ... AskForHelp Can't deploy hibernate as service. I'm using Hibernate 2. Here is jboss-service.xml file : jboss.jca:service=RARDeployer jboss.jca:service=LocalTxCM,name=OracleDS com/hibernate/object/data/ContractType.hbm.xml,com/hibernate/object/data/Contract.hbm.xml,com/hibernate/object/data/FeatureDefinition.hbm.xml,com/hibernate/object/data/SystemOnContract.hbm.xml,com/hibernate/object/data/DeviceSystem.hbm.xml,com/hibernate/object/data/AbstractBasicCustomer.hbm.xml,com/hibernate/object/data/ContractTypeParameter.hbm.xml,com/hibernate/object/data/Address.hbm.xml,com/hibernate/object/data/FeatureDefinitionParameter.hbm.xml,com/hibernate/object/data/ContractParam.hbm.xml java:/HibernateFactory java:/OracleDS net.sf.hibernate.dialect.Oracle9Dialect true false java:comp/UserTransaction net.sf.hibernate.transaction.JTATransactionFactory

14. [JBoss] Explicitely defining mapper classes using MBean    forum.hibernate.org

Hi, I'm not quite sure whether this is a Hibernate or a JBoss issue, so I'll just post the question here. I'm having a little trouble defining a working and conceptionally correct way of configuring the database access from within a EJB. As background: Currently, I'm running a servlet in which a couple of Manager classes are stored, which implement my ...





17. Using c3p0 with JBoss Mbean    forum.hibernate.org

Hi, We are using Jboss version 4.0.4 in our project.We are deplyoing the hibernate as an MBean . I want to use the c3p0 connection pooling mechanism . I am unableto figure out to specify the paramateres related to C3P0 in the hibernate-service.xml file . Please help me in getting the solution of the same I am attaching the file for ...