Hello All,
I succeed to deploy a non jdbc resource adapter, but unfortunately I've
encountered pool connection closing problems.
In fact after Managed Connection allocation, the Connection is never closed
even if it is not used since ages.
I'm sure that it is a configuration problem but I'm not able to solve it. Can
somebody help me?
--------------------------------- Conf files -----------------------------------
<<*-ds.xml>>
<?xml version="1.0" encoding="UTF-8"?>
<!--
The Service Data Point resource adaptor service configuration.
-->
<connection-factories>
<no-tx-connection-factory>
<jndi-name>SDP1_DS</jndi-name>
<rar-name>sdp-ra.rar</rar-name>
<connection-definition>javax.resource.cci.ConnectionFactory</connection-definition>
<adapter-display-name>SDP Connection Factory</adapter-display-name>
<min-pool-size>0</min-pool-size>
<max-pool-size>2</max-pool-size>
<blocking-timeout-millis>5000</blocking-timeout-millis>
<idle-timeout-millis>50</idle-timeout-millis>
<config-property name="HostName"
type="java.lang.String">pollux</config-property>
<config-property name="HostIP"
type="java.lang.String">172.17.100.146</config-property>
<config-property name="PortNumber"
type="java.lang.Integer">6013</config-property>
<config-property name="TimeOut"
type="java.lang.Integer">50000</config-property>
<config-property name="RetryActivated"
type="java.lang.Boolean">true</config-property>
<config-property name="RetrySleepTime"
type="java.lang.Integer">1500</config-property>
<config-property name="MaxRetryCount"
type="java.lang.Integer">3</config-property>
</no-tx-connection-factory>
</connection-factories>
------------------------------------------------------------------------------------
<<ra.xml>>
<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd"
version="1.5">
<display-name>Service Data Point resource adapter</display-name>
<vendor-name>XXX</vendor-name>
<eis-type>TCPIP</eis-type>
<resourceadapter-version>1.0</resourceadapter-version>
LGPL
<license-required>false</license-required>
<resourceadapter-class>org.jboss.resource.deployment.DummyResourceAdapter</resourceadapter-class>
<outbound-resourceadapter>
<connection-definition>
<managedconnectionfactory-class>
fr.xxx.ppd.mtools.ra.spi.SDPManagedConnectionFactory
</managedconnectionfactory-class>
<config-property>
<config-property-name>HostName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<config-property-name>HostIP</config-property-name>
<config-property-type>java.lang.String</config-property-type>
</config-property>
<config-property>
<config-property-name>PortNumber</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<config-property>
<config-property-name>TimeOut</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<!-- retry parameters -->
<config-property>
<config-property-name>RetryActivated</config-property-name>
<config-property-type>java.lang.Boolean</config-property-type>
</config-property>
<config-property>
<config-property-name>MaxRetryCount</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<config-property>
<config-property-name>RetrySleepTime</config-property-name>
<config-property-type>java.lang.Integer</config-property-type>
</config-property>
<connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>fr.xxx.ppd.mtools.ra.cci.SDPConnectionFactory</connectionfactory-impl-class>
<connection-interface>javax.resource.cci.Connection</connection-interface>
<connection-impl-class>fr.xxx.ppd.mtools.ra.cci.SDPConnection</connection-impl-class>
</connection-definition>
<transaction-support>NoTransaction</transaction-support>
<authentication-mechanism>
<authentication-mechanism-type>BasicPassword</authentication-mechanism-type>
<credential-interface>javax.resource.spi.security.PasswordCredential</credential-interface>
</authentication-mechanism>
<reauthentication-support>false</reauthentication-support>
</outbound-resourceadapter>
<security-permission>
Read Write access is required to the socket connection
<security-permission-spec> permission java.net.SocketPermission,
"*", "listen, accept, connect, resolve"; </security-permission-spec>
</security-permission>
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875268#3875268
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875268
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user