Default autocommit is true or false?

2002-03-05 Thread Carlos Roberto da Silva Junior

Hi, list! 

A strange problem. 

I have a session bean that access a datasource. When a connection is 
requested and method Connection.getAutoCommit() is called, I always obtain 
true. The default autocommit isn't false? 

Stranger! See this code:

  try {
Connection con = getConnection();  //obtain connection in datasource
con.setAutoCommit(false);

stmt.executeUpdate(sql1);
stmt.executeUpdate(sql2);

  } catch(Exception) {
  sessionContext.setRollbackOnly();
  } 

When stmt.executeUpdate(sql) throws a SQLException, my session bean calls
setRollbackOnly and the transaction should rollback. In fact, I saw that 
stmt.executeUpdate(sql1) didn't have effect in database just after this 
method have execute. But after about 1 minute, I turn to database and I saw 
that the effect of  stmt.executeUpdate(sql1) was commited. 

I repeat the experiment many times, and the same occurred after one minute. 

It sounds like the container had setted the autocommit true after some 
timeout. Does anyone knows what is happenning? The default autocommit isn't 
false? 


Carlos Roberto da Silva Júnior
Engenheiro de Software
Ramal - 4631 

Qualiti Software Processes - CESAR
Soluções para o processo de construção de software
http://www.qualiti.com.br
+55 81 3272.4700 




Update container without redeploy?

2002-02-21 Thread Carlos Roberto da Silva Junior

I´m using orion with JBuilder6. When I need modify a JSP, I need rebuild my 
.ear e redeploy. It´s bad. 

Can I set up my container to update itself always I modify my JSP without 
need to rebuild and redeploy .EAR? 

Carlos Roberto da Silva Júnior
Engenheiro de Software
Ramal - 4631 

Qualiti Software Processes - CESAR
Soluções para o processo de construção de software
http://www.qualiti.com.br
+55 81 3272.4700 




Compiling JSP

2002-02-08 Thread Carlos Roberto da Silva Junior

Hi,
I´m working with JBuilder6 and Orion. I have a need to use JSP in my 
project, but a didn´t come success in compile any JSP. 

My project includes all jars in ROOT-PATH/oc4j/j2ee/home. When I compile all 
project this fails and I Receive the following message from JBuilder6 
compiler: 

Jsp1.jsp: Error #: 300 : method handlePageException(java.lang.Throwable) 
not found in class javax.servlet.jsp.PageContext 

My Jsp source is generated from the JBuilder JSP Wizard. 

Does someone know how can I proceed? And what about debbuging, is possible 
debug a JSP using JBuilder and Orion? 


Carlos Roberto da Silva Júnior
Engenheiro de Software
Ramal - 4631 

Qualiti Software Processes - CESAR
Soluções para o processo de construção de software
http://www.qualiti.com.br
+55 81 3272.4700