[JBoss-user] [EJB/JBoss] - Confused with the current size of the instancepool in statel

2004-05-27 Thread autocrab
I am not sure how does the current size of instance pool in statelesssession container 
grow?

I wonder whether  it is when more than one client invoke the ejb method currently that 
the current size of the instance pool in statelesssession container?

Thanks, Du

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3836402#3836402

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3836402



---
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. 
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: can not find UserTransaction

2004-04-15 Thread autocrab
I very appreciate your quick feedback. Yesterday, I misundertood the code 
. Just now, I tried, replaced   with 
, and my application works ok. 

Thank you very much.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830864#3830864

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830864


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: can not find UserTransaction

2004-04-15 Thread autocrab
The fact is that, when I configure the hibernate.cfg.xml without using the jndi for 
datasource, but directly"jdbc:mysql://localhost:3306/***", my application works ok. I 
want to configure a connection pool in JBoss to tuning the proformance. so i have to 
use datasource.

If i comment off the code,like
Session session = HibernateSessionFactory.openSession(); 
  | ... 
  | //tx = session.beginTransaction(); 
  | ... 
  | //tx.commit(); 
There is another problem, i can operate the object made in the transaction only once, 
i can not modify or delete the object later, which seems as if the transaction is not 
end, i can not commit any more.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830793#3830793

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830793


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: can not find UserTransaction

2004-04-15 Thread autocrab
I really want to say thank you first. Let me make the context more clearly.

My high level architectural flow :
Stateless session bean -> Hibernate -> mysql data source ->database.

I congfigured datasource in JBoss, and use the datasource in hibernate to connect to 
MySQL.

IÂve a stateless session bean to handle my data layer operations. Once when IÂve the 
local-tx-datasource and when I do 
Session session = HibernateSessionFactory.openSession();
...
tx = session.beginTransaction(); 
...
tx.commit(); 

This is style for JDBCTransaction(BMT), so i changed my hibernate.cfg.xml, replace 
net.sf.hibernate.transaction.JTATransactionFactory
 with net.sf.hibernate.transaction.JDBCTransactionFactory,
 it is ok when i start JBoss, but when use call the bean to do some database opertion, 
the JBoss will print out 
exceptions 15:13:21,695 ERROR [JDBCTransaction] Commit failed
  | java.sql.SQLException: You cannot commit during a managed transaction!
  | at 
org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.jdbcCommit(BaseWrapperManagedConnection.java:400)
  | at 
org.jboss.resource.adapter.jdbc.WrappedConnection.commit(WrappedConnection.java:477)
  | at net.sf.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:63)
  | 
The situation is the hibernate connect to database through datasource which is 
configured in JBoss, whether I can use JDBCTransaction 
as above? If I can use JDBCTransaction in this situation, what may cause the "Commit 
failed" error, and what may be the possible solution.
If not, must I use CMT, and let container to manager the transaction?

I am newbie to both JBoss and Hibernate, I may be not clear with some conceptions 
related.  Thanks!

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830756#3830756

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830756


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id70&alloc_id638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: can not find UserTransaction

2004-04-14 Thread autocrab
It seems i configured my bean as BMT

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830673#3830673

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830673


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - Re: can not find UserTransaction

2004-04-14 Thread autocrab
I have add mysql-connector-java-3.0.11-stable-bin.jar under 
JBOSS_HOME\server\default\lib  and mysql-ds.xml under JBOSS_HOME\server\default\deploy,
the hibernatecfg.xml is

  | 
  | http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd";>
  | 
  | 
  | 
  | 
  |  
  | 
  | 
  | net.sf.hibernate.dialect.MySQLDialect
  | org.gjt.mm.mysql.Driver 
  | net.sf.hibernate.connection.DatasourceConnectionProvider
  | java:/MySqlDS
  | net.sf.hibernate.transaction.JTATransactionFactory
  | true  
  | net.sf.hibernate.cache.HashtableCacheProvider
  | 
  | 
  | 
  | ..
  | 
  | 
  | 
  | 

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830672#3830672

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830672


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JCA/JBoss] - can not find UserTransaction

2004-04-14 Thread autocrab
A problem occurred when i configurate connection pool in JBoss.
My development envrionment is JBoss3.2.3+Mysql4.0.8+Hibernate2.1, i have configurated 
the datasource, and Hibernate can find the datasource,but there is exception of 
UserTransaction not found. I wonder whether it is the problem occurred in JBoss or 
Hibernate configuration, and  how can i solve this problem. Thanks very much.




View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3830569#3830569

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3830569


---
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user