public Object getConnection(Class iface, URL wsdlLocation, QName serviceName, QName portName)
throws ResourceException {
if (!iface.isInterface()) {
throw new ResourceAdapterInternalException(
"The first argument to getConnection must be an Interface",
new IllegalArgumentException(iface.toString() + " is not an Interface."));
}
LOG.info("connecting to: " + iface);