1 57 58 package com.myeis.j2c; 59 60 import java.io.PrintWriter ; 61 import java.util.Set ; 62 63 import javax.resource.*; 64 import javax.resource.spi.*; 65 import javax.security.auth.*; 66 67 public class MyEISManagedConnectionFactory implements ManagedConnectionFactory { 68 69 private String fieldRepositoryLocation = null; 70 71 74 public Object createConnectionFactory(ConnectionManager connectionManager) 75 throws ResourceException { 76 77 78 return new MyEISConnectionFactory(connectionManager, this); 79 } 80 81 84 public Object createConnectionFactory() throws ResourceException { 85 86 return new MyEISConnectionFactory(null, this); 87 } 88 89 92 public ManagedConnection createManagedConnection( 93 Subject subject, 94 ConnectionRequestInfo connectionRequestInfo) 95 throws ResourceException { 96 97 return new MyEISManagedConnection(subject, connectionRequestInfo, this); 98 } 99 100 103 public ManagedConnection matchManagedConnections( 104 Set arg0, 105 Subject arg1, 106 ConnectionRequestInfo arg2) 107 throws ResourceException { 108 return null; 109 } 110 111 114 public PrintWriter getLogWriter() throws ResourceException { 115 return null; 116 } 117 118 121 public void setLogWriter(PrintWriter arg0) throws ResourceException { 122 } 123 124 128 public String getRepositoryLocation() { 129 return fieldRepositoryLocation; 130 } 131 135 public void setRepositoryLocation(String fieldRepositoryLocation) { 136 this.fieldRepositoryLocation = fieldRepositoryLocation; 137 } 138 139 } 140 141 | Popular Tags |