1 57 58 package com.myeis.j2c; 59 60 import javax.naming.*; 61 import javax.resource.*; 62 import javax.resource.cci.*; 63 import javax.resource.spi.*; 64 65 public class MyEISConnectionFactory implements ConnectionFactory { 66 67 private ConnectionManager fieldConnectionManager = null; 68 private ManagedConnectionFactory fieldManagedConnectionFactory = null; 69 70 73 public MyEISConnectionFactory(ConnectionManager connectionManager, ManagedConnectionFactory managedConnectionFactory) { 74 75 this.fieldConnectionManager = connectionManager; 76 this.fieldManagedConnectionFactory = managedConnectionFactory; 77 } 78 79 82 public Connection getConnection() throws ResourceException { 83 84 if (this.fieldConnectionManager == null) { 85 return (Connection)this.fieldManagedConnectionFactory.createManagedConnection(null, null).getConnection(null, null); 86 } 87 88 return null; 89 } 90 91 94 public Connection getConnection(ConnectionSpec arg0) throws ResourceException { 95 return null; 96 } 97 98 101 public RecordFactory getRecordFactory() throws ResourceException { 102 return null; 103 } 104 105 108 public ResourceAdapterMetaData getMetaData() throws ResourceException { 109 return null; 110 } 111 112 115 public void setReference(Reference arg0) { 116 } 117 118 121 public Reference getReference() throws NamingException { 122 return null; 123 } 124 125 } 126 127 | Popular Tags |