db-torque-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bryce Nesbitt <bry...@obviously.com>
Subject Re: What are possible causes of: IDBroker ... does not support transactions.
Date Thu, 16 Feb 2006 17:51:24 GMT
Greg Monroe wrote:
> Some additional quick thoughts...
>
> You will also see the Broker message if you are doing two calls to 
> Torque init, e.g. Torque is being initialized in two different web 
> apps. They should be wrapped in a check to see if Torque has already 
> been initialized.
    public void init(ServletConfig config) throws ServletException {
        String path =
config.getServletContext().getRealPath("/WEB-INF/torque.properties");
        try {
            if( !Torque.isInit() ) {
                Torque.init(path);
            }
            PropertyConfigurator.configure(path);
        } ....


---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org


Mime
View raw message