This has been fixed for 3.2.2
The connection close processing does not happen until
end of transaction.

You can turn it off by setting spec compliance to true
on the CachedConnectionManager in transaction-service.xml

Regards,
Adrian

On Tue, 2003-09-23 at 08:17, rajeshnn wrote:
> Hi
> I am trying to connect to connect to an Oracle DataBase from JBoss
> application server .
> I have a servlet and a stateful session bean. I am using Bean managed
> persistence.
> 
> I am getting this error while running the application.
> 
> 
> The following code returns the connection object, and is set globally.
> 
>         // Session Bean.        
>         String m_strDefaultDataSource = "java:comp/env/jdbc/OracleDS";
>         Connection m_dbCon = null;
>         public void getConnection()
>         {
> 
>                 try{
>                         InitialContext ic               = new
> InitialContext();
>                         DataSource m_dsCommmon  = ( DataSource )
> ic.lookup( m_strDefaultDataSource );
>                         m_dbCon                 =
> m_dsCommmon.getConnection( );
>                 }catch( Exception ex ){
> 
>                         ex.printStackTrace();
>                 }
>         }
> 
>         After bean creation in the servlet, i m getting the following
> error. The connection
> object is created, but it is closed when control is returned to the
> client.
> 
> I cannot close ( as said in the error ) the connection as it is used
> for further transaction. 
> The connection is closed in the code after the completion of all the
> transactions for the particular 
> user/session.
> 
> pls help....
> 
> 
> INFO  [CachedConnectionManager] Successfully closed a connection for
> you.  Please close
>  them yourself:
> [EMAIL PROTECTED]
> java.lang.Exception: Stack Trace
>         at
> org.jboss.resource.connectionmanager.CachedConnectionManager.closeAll(CachedConnectionMan
> ager.java:376)
>         at
> org.jboss.resource.connectionmanager.CachedConnectionManager.popMetaAwareObject(CachedCon
> nectionManager.java:199)
>         at
> org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invokeHome(CachedConnect
> ionInterceptor.java:219)
>         at
> org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:88)
>         at
> org.jboss.ejb.plugins.AbstractTxInterceptorBMT.invokeNext(AbstractTxInterceptorBMT.java:1
> 44)
>         at
> org.jboss.ejb.plugins.TxInterceptorBMT.invokeHome(TxInterceptorBMT.java:56)
>         at
> org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstan
> 
> 
> Rajesh N Nair
> SunTec Business Solution,
> # 311, Nila ,Technopark, Trivandrum,
> Kerala, India. Pin:695581.
> Phone ( +91-471-2700984-95)
> 
> 
> 
>  
> 
> 
> ______________________________________________________________________
> This electronic mail (including any attachment thereto) may be
> confidential and privileged and is intended only for the individual or
> entity named above. Any unauthorized use, printing, copying,
> disclosure or dissemination of this communication may be subject to
> legal restriction or sanction. Accordingly, if you are not the
> intended recipient, please notify the sender by replying to this email
> immediately and delete this email (and any attachment thereto) from
> your computer system....Thank You
-- 
xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to