ref.setResourceAdapterName(SysUtil.NAMESPACE + "-file.rar");
ref.setTxMode(J2EEResourceRef.TX_XA);
ref.setMaxConnections(fragment.getMaxPoolSize());
ref.addProperty(new J2EEProperty("persistenceConnection", true));
ref.addProperty(new J2EEProperty("inputConnection", false));
ref.addProperty(new J2EEProperty("outgoingDirectory", fragment.getDataDirectory()));
ref.addProperty(new J2EEProperty("outgoingTempDirectory", fragment.getTemporaryDirectory()));
ref.addProperty(new J2EEProperty("maxNameSplits", fragment.getMaxNameSplits()));
ref.addProperty(new J2EEProperty("nameSplitSize", fragment.getNameSplitSize()));