try { mcf.setDatabase(DB_DATASOURCE_URL); } catch (javax.resource.ResourceException re){ }
mcf.setDatabase(DB_DATASOURCE_URL);
    public FBManagedConnectionFactory initMcf() {        FBManagedConnectionFactory mcf = new FBManagedConnectionFactory();        try {            mcf.setDatabase(DB_DATASOURCE_URL);		  }        catch (javax.resource.ResourceException re){		  }        FBConnectionRequestInfo cri = new FBConnectionRequestInfo();        cri.setProperty(GDS.isc_dpb_user_name, DB_USER);        cri.setProperty(GDS.isc_dpb_password, DB_PASSWORD);        cri.setProperty(GDS.isc_dpb_num_buffers, new byte[] {90});        cri.setProperty(GDS.isc_dpb_dummy_packet_interval, new byte[] {120, 10, 0, 0});        cri.setProperty(GDS.isc_dpb_sql_dialect, new byte[] {3, 0, 0, 0});        mcf.setConnectionRequestInfo(cri);        /*        HashSet tpb = new HashSet();        tpb.add(new Integer(GDS.isc_tpb_write));        tpb.add(new Integer(GDS.isc_tpb_read_committed));        tpb.add(new Integer(GDS.isc_tpb_no_rec_version));        tpb.add(new Integer(GDS.isc_tpb_wait));        mcf.setTpb(tpb);        */        return mcf;    }