Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 70902 invoked from network); 15 Oct 2008 18:39:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Oct 2008 18:39:25 -0000 Received: (qmail 2713 invoked by uid 500); 15 Oct 2008 18:39:25 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 2675 invoked by uid 500); 15 Oct 2008 18:39:25 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 2663 invoked by uid 99); 15 Oct 2008 18:39:25 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 11:39:25 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mrgrimba@gmail.com designates 72.14.220.159 as permitted sender) Received: from [72.14.220.159] (HELO fg-out-1718.google.com) (72.14.220.159) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Oct 2008 18:38:18 +0000 Received: by fg-out-1718.google.com with SMTP id l27so2109484fgb.27 for ; Wed, 15 Oct 2008 11:38:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=m4eX+pgAQWDF24r4YDBEycAlt0/Z3WsdM83IXwin7TA=; b=UU95pdIbzdnFvhEapk3uiTcHhJiU46FEqNMr41wKPwZPLokethl44Si80NIjL16eE5 GgpJyuuAOsOAvwZEyx2jFzKJQru57zu+vj/lAG8I+mtTk9Q3/CpLGMW8H25W5FMv2xk2 lTdUs5XNVFISs9u7/uozXDMFVBfTv50HrS1zY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=eaI4r4sL71n9RlHzP5IqRxM0cl9Rr1BZNkRTb4HAUsG8YvBQc8TbY7Dj8Zq14UAI6N YUAu50KsCJL6ba+C0Jq8lbdRYowcuQjAIflmU1cXiKDkgmoYkYd43dhwXTA5HD+66V3o j3+GfoOcnKmt63TAnkMNhbxXEnFa5zPAiFTYk= Received: by 10.187.190.6 with SMTP id s6mr150157fap.51.1224095925340; Wed, 15 Oct 2008 11:38:45 -0700 (PDT) Received: by 10.187.177.9 with HTTP; Wed, 15 Oct 2008 11:38:45 -0700 (PDT) Message-ID: Date: Wed, 15 Oct 2008 15:38:45 -0300 From: "Rodrigo Baeza O" To: user@geronimo.apache.org Subject: Re: NO inserted BBDD openJPA In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_38031_16806368.1224095925324" References: X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_38031_16806368.1224095925324 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline David, Thank you very much for help, the problem in this pool of connections, add the configuration file in the pool and deployer in the console. and everything ok. the file is so ... console.dbpool actividades 1.0 rar oracle oracle 1.4 jar javax.sql.DataSource actividades true mvi oracle.jdbc.OracleDriver salfa jdbc:oracle:thin:@127.0.0.1:1521 :XE 2 1 100 1 I'm in chile. it seems that I am the only one who occupy geronimo .... :-) thanks. 2008/10/15 David Jencks > I think you are using a non-jdbc-spec-compliant driver such as (IIRC) > oracle that does not commit automatically when setAutocommit(true) is > called. There's a commitOnAutocommit config-property you can set in the > datasource plan for the generic tranql adapter to have tranql call commit() > before setAutocommit(true). > > If you need more information please tell us which database you are using, > which tranql adapter you are using, and show the datasource plan. > > thanks > david jencks > > > On Oct 15, 2008, at 6:38 AM, Rodrigo Baeza O wrote: > > Hello, >> I have a problem, when you insert a record in Geronimo 2.1.2, occupying >> pool of connections and openJPA for persistence. >> NO inserted into the databases at the time but when the server is down. >> DO NOT send error, not only records in the databases. >> >> -- >> Saludos >> Rodrigo Baeza O. >> > > -- Saludos Rodrigo Baeza O. ------=_Part_38031_16806368.1224095925324 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline
David,
   Thank you very much for help, the problem in this pool of connections, add the configuration file in the pool and deployer in the console. and everything ok.
the file is so ...

<?xml version="1.0" encoding="UTF-8"?>
<connector xmlns="http://geronimo.apache.org/xml/ns/j2ee/connector-1.2">
    <dep:environment xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.2">
        <dep:moduleId>
            <dep:groupId>console.dbpool</dep:groupId>
            <dep:artifactId>actividades</dep:artifactId>
            <dep:version>1.0</dep:version>
            <dep:type>rar</dep:type>
        </dep:moduleId>
        <dep:dependencies>
            <dep:dependency>
                <dep:groupId>oracle</dep:groupId>
                <dep:artifactId>oracle</dep:artifactId>
                <dep:version>1.4</dep:version>
                <dep:type>jar</dep:type>
            </dep:dependency>
        </dep:dependencies>
    </dep:environment>
    <resourceadapter>
        <outbound-resourceadapter>
            <connection-definition>
                <connectionfactory-interface>javax.sql.DataSource</connectionfactory-interface>
                <connectiondefinition-instance>
                    <name>actividades</name>
             <config-property-setting name="CommitBeforeAutocommit">true</config-property-setting>
                    <config-property-setting name="Password">mvi</config-property-setting>
                    <config-property-setting name="Driver">oracle.jdbc.OracleDriver</config-property-setting>
                    <config-property-setting name="UserName">salfa</config-property-setting>
                    <config-property-setting name="ConnectionURL">jdbc:oracle:thin:@127.0.0.1:1521:XE</config-property-setting>
                    <connectionmanager>
                        <local-transaction/>
                        <single-pool>
                            <max-size>2</max-size>
                            <min-size>1</min-size>
                            <blocking-timeout-milliseconds>100</blocking-timeout-milliseconds>
                            <idle-timeout-minutes>1</idle-timeout-minutes>
                            <match-one/>
                        </single-pool>
                    </connectionmanager>
                </connectiondefinition-instance>
            </connection-definition>
        </outbound-resourceadapter>
    </resourceadapter>
</connector>
I'm in chile. it seems that I am the only one who occupy geronimo .... :-)
thanks.

2008/10/15 David Jencks <david_jencks@yahoo.com>
I think you are using a non-jdbc-spec-compliant driver such as (IIRC) oracle that does not commit automatically when setAutocommit(true) is called.  There's a commitOnAutocommit config-property you can set in the datasource plan for the generic tranql adapter to have tranql call commit() before setAutocommit(true).

If you need more information please tell us which database you are using, which tranql adapter you are using, and show the datasource plan.

thanks
david jencks


On Oct 15, 2008, at 6:38 AM, Rodrigo Baeza O wrote:

Hello,
  I have a problem, when you insert a record in Geronimo 2.1.2, occupying pool of connections and openJPA for persistence.
NO inserted into the databases at the time but when the server is down.
DO NOT send error, not only records in the databases.

--
Saludos
Rodrigo Baeza O.




--
Saludos
Rodrigo Baeza O.
------=_Part_38031_16806368.1224095925324--