javax.resource.spi.ManagedConnectionMetaData Java Examples

The following examples show how to use javax.resource.spi.ManagedConnectionMetaData. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JCAManagedConnection.java    From gemfirexd-oss with Apache License 2.0 6 votes vote down vote up
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
  if (DEBUG) {
    try {
      throw new NullPointerException("Asif:JCAManagedConnection:getMetaData");
    }
    catch (NullPointerException npe) {
      npe.printStackTrace();
    }
  }
  if (this.initDone && !this.cache.isClosed()) {
    LogWriter logger = this.cache.getLogger();
    if (logger.fineEnabled()) {
      logger.fine("JCAManagedConnection:getMetaData");
    }
  }
  return new JCAManagedConnectionMetaData(this.factory.getProductName(),
      this.factory.getVersion(), this.factory.getUserName());
}
 
Example #2
Source File: JCAManagedConnection.java    From gemfirexd-oss with Apache License 2.0 6 votes vote down vote up
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
  if (DEBUG) {
    try {
      throw new NullPointerException("Asif:JCAManagedConnection:getMetaData");
    }
    catch (NullPointerException npe) {
      npe.printStackTrace();
    }
  }
  if (this.initDone && !this.cache.isClosed()) {
    LogWriter logger = this.cache.getLogger();
    if (logger.fineEnabled()) {
      logger.fine("JCAManagedConnection:getMetaData");
    }
  }
  return new JCAManagedConnectionMetaData(this.factory.getProductName(),
      this.factory.getVersion(), this.factory.getUserName());
}
 
Example #3
Source File: ActiveMQRAManagedConnection.java    From activemq-artemis with Apache License 2.0 5 votes vote down vote up
/**
 * Get the meta data for the connection.
 *
 * @return The meta data for the connection.
 * @throws ResourceException     Thrown if the operation fails.
 * @throws IllegalStateException Thrown if the managed connection already is destroyed.
 */
@Override
public ManagedConnectionMetaData getMetaData() throws ResourceException {
   if (logger.isTraceEnabled()) {
      ActiveMQRALogger.LOGGER.trace("getMetaData()");
   }

   if (isDestroyed.get()) {
      throw new IllegalStateException("The managed connection is already destroyed");
   }

   return new ActiveMQRAMetaData(this);
}
 
Example #4
Source File: JcaExecutorServiceManagedConnection.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
public ManagedConnectionMetaData getMetaData() throws ResourceException {
  return null;
}
 
Example #5
Source File: HelloWorldManagedConnectionImpl.java    From ci.maven with Apache License 2.0 4 votes vote down vote up
/**
 * @see ManagedConnection#getMetaData()
 */
public ManagedConnectionMetaData getMetaData() throws ResourceException {

	return new HelloWorldManagedConnectionMetaDataImpl(connection.getMetaData());
}
 
Example #6
Source File: ConnectorProxyTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@Override
public ManagedConnectionMetaData getMetaData() throws ResourceException {
    return null;
}
 
Example #7
Source File: ConnectorProxyNoNoArgConstructorTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@Override
public ManagedConnectionMetaData getMetaData() throws ResourceException {
    return null;
}
 
Example #8
Source File: AutoConnectionTrackerTest.java    From tomee with Apache License 2.0 4 votes vote down vote up
@Override
public ManagedConnectionMetaData getMetaData() throws ResourceException {
    return null;
}
 
Example #9
Source File: SampleManagedConnection.java    From tomee with Apache License 2.0 4 votes vote down vote up
public ManagedConnectionMetaData getMetaData() throws ResourceException {
    log.finest("getMetaData()");
    return new SampleManagedConnectionMetaData();
}
 
Example #10
Source File: SampleManagedConnection.java    From tomee with Apache License 2.0 4 votes vote down vote up
public ManagedConnectionMetaData getMetaData() throws ResourceException {
    log.finest("getMetaData()");
    return new SampleManagedConnectionMetaData();
}
 
Example #11
Source File: TestManagedConnection.java    From ironjacamar with Eclipse Public License 1.0 4 votes vote down vote up
/**
 * {@inheritDoc}
 */
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
   return new TestManagedConnectionMetaData();
}
 
Example #12
Source File: ManagedConnectionImplTest.java    From cxf with Apache License 2.0 4 votes vote down vote up
@Test
public void testGetMetaData() throws Exception {
    ManagedConnectionMetaData data = mci.getMetaData();
    assertEquals("Checking the EISProductionVersion", "1.1", data.getEISProductVersion());
    assertEquals("Checking the EISProductName", "WS-based-EIS", data.getEISProductName());
}
 
Example #13
Source File: AbstractManagedConnectionImpl.java    From cxf with Apache License 2.0 4 votes vote down vote up
public ManagedConnectionMetaData getMetaData() throws ResourceException {
    return new CXFManagedConnectionMetaData();
}
 
Example #14
Source File: ManagedConnectionImpl.java    From cxf with Apache License 2.0 4 votes vote down vote up
public ManagedConnectionMetaData getMetaData() throws ResourceException {
    return new CXFManagedConnectionMetaData(getUserName());
}
 
Example #15
Source File: ManagedConnectionImpl.java    From cxf with Apache License 2.0 4 votes vote down vote up
public ManagedConnectionMetaData getMetaData() throws ResourceException {
    return new CXFManagedConnectionMetaData();
}
 
Example #16
Source File: ManagedTransactionAssistance.java    From genericconnector with Apache License 2.0 4 votes vote down vote up
@Override
public ManagedConnectionMetaData getMetaData() throws ResourceException {
    return new ManagedTransactionAssistanceMetaData();
}
 
Example #17
Source File: PerfManagedConnection.java    From ironjacamar with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Gets the metadata information for this connection's underlying EIS resource manager instance. 
 *
 * @return ManagedConnectionMetaData instance
 * @throws ResourceException generic exception if operation fails
 */
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
   return new PerfManagedConnectionMetaData();
}
 
Example #18
Source File: TxLogManagedConnection.java    From ironjacamar with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Gets the metadata information for this connection's underlying EIS resource manager instance. 
 *
 * @return ManagedConnectionMetaData instance
 * @throws ResourceException generic exception if operation fails
 */
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
   return new TxLogManagedConnectionMetaData();
}
 
Example #19
Source File: LazyManagedConnection.java    From ironjacamar with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Gets the metadata information for this connection's underlying EIS resource manager instance. 
 *
 * @return ManagedConnectionMetaData instance
 * @throws ResourceException generic exception if operation fails
 */
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
   log.trace("getMetaData()");
   return new LazyManagedConnectionMetaData();
}
 
Example #20
Source File: HelloWorldManagedConnection.java    From ironjacamar with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Gets the metadata information for this connection's underlying 
 * EIS resource manager instance. 
 *
 * @return ManagedConnectionMetaData instance
 * @throws ResourceException generic exception if operation fails
 */
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
   return new HelloWorldManagedConnectionMetaData();
}
 
Example #21
Source File: HelloWorldManagedConnection.java    From ironjacamar with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Gets the metadata information for this connection's underlying 
 * EIS resource manager instance. 
 *
 * @return ManagedConnectionMetaData instance
 * @throws ResourceException generic exception if operation fails
 */
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
   return new HelloWorldManagedConnectionMetaData();
}
 
Example #22
Source File: HelloWorldManagedConnection.java    From ironjacamar with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Gets the metadata information for this connection's underlying 
 * EIS resource manager instance. 
 *
 * @return ManagedConnectionMetaData instance
 * @throws ResourceException generic exception if operation fails
 */
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
   return new HelloWorldManagedConnectionMetaData();
}
 
Example #23
Source File: WorkManagedConnection.java    From ironjacamar with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Gets the metadata information for this connection's underlying EIS resource manager instance. 
 *
 * @return ManagedConnectionMetaData instance
 * @throws ResourceException generic exception if operation fails
 */
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
   return new WorkManagedConnectionMetaData();
}
 
Example #24
Source File: UnifiedSecurityManagedConnection.java    From ironjacamar with Eclipse Public License 1.0 2 votes vote down vote up
/**
 * Gets the metadata information for this connectionSet's underlying EIS resource manager instance.
 *
 * @return ManagedConnectionMetaData instance
 * @throws ResourceException generic exception if operation fails
 */
public ManagedConnectionMetaData getMetaData() throws ResourceException
{
   log.trace("getMetaData()");
   return new UnifiedSecurityManagedConnectionMetaData(this);
}