• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

connection pooling Jboss 3.0

Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using Jboss 3.0 with Castor JDO. Struts -> Stateless Session Bean --> Castor JDO
I am using container managed transaction and trying to impement connection pooling. I have included the oracle-service.xml file.
Everytime I am connecting to the database, a new conneciton is being created. If I set the MaxSize to 3 then after 3 successful
connections, it gives an error ---
"No Managed Connection"
Any suggestions ? Any other file that needs to be changed ?

<?xml version="1.0" encoding="UTF-8"?>
<mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager"
<depends optional-attribute-name="ManagedConnectionFactoryName">
<mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=OracleDS">
<attribute name="JndiName">OracleDS</attribute>
<attribute name="ManagedConnectionFactoryProperties">
<config-property name="ConnectionURL"
type="java.lang.String">jdbc racle:thin:@ RCL</config-property>
<config-property name="DriverClass" type="java.lang.String">oracle.jdbc.driver.OracleDriver</config-property>
<!--set these only if you want only default logins, not through JAAS -->
<config-property name="UserName" type="java.lang.String">overseer2</config-property>
<config-property name="Password" type="java.lang.String">overseer</config-property>
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC

<depends optional-attribute-name="ManagedConnectionPool">
<mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool"
<attribute name="MinSize">0</attribute>
<attribute name="MaxSize">3</attribute>
<attribute name="BlockingTimeoutMillis">5000</attribute>
<attribute name="IdleTimeoutMinutes">15</attribute>
<attribute name="Criteria">ByContainer</attribute>
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:name=JaasSecurityManager</depends>
<attribute name="TransactionManager">java:/TransactionManager</attribute>

Thanks in advance.
This looks like a job for .... legal tender! It says so right in this tiny ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic