Examples of ConnectionContext


Examples of org.apache.derby.iapi.jdbc.ConnectionContext

    ** The current connection is the one in the current
    ** connection context, so get the context.
    */
    ContextManager  cm = getCurrentContextManager();

    ConnectionContext localCC = null;

    /*
      cm is null the very first time, and whenever
      we aren't actually nested.
     */
 
View Full Code Here

Examples of org.apache.derby.iapi.jdbc.ConnectionContext

   *
   * @exception SQLException    Thrown on failure to get connection
   */
  public Connection getCurrentConnection() throws SQLException {

    ConnectionContext cc =
      (ConnectionContext) getContextManager().getContext(ConnectionContext.CONTEXT_ID);

    return cc.getNestedConnection(true);
 
View Full Code Here

Examples of org.apache.oozie.jms.ConnectionContext

    public void testConnection() throws Exception {
        HCatAccessorService hcatService = services.get(HCatAccessorService.class);
        JMSAccessorService jmsService = services.get(JMSAccessorService.class);
        // both servers should connect to default JMS server
        JMSConnectionInfo connInfo = hcatService.getJMSConnectionInfo(new URI("hcat://hcatserver.blue.server.com:8020"));
        ConnectionContext ctxt1 = jmsService.createConnectionContext(connInfo);
        assertTrue(ctxt1.isConnectionInitialized());
        JMSConnectionInfo connInfo1 = hcatService.getJMSConnectionInfo(new URI("http://unknown:80"));
        ConnectionContext ctxt2 = jmsService.createConnectionContext(connInfo1);
        assertTrue(ctxt2.isConnectionInitialized());
        assertEquals(ctxt1, ctxt2);
        ctxt1.close();
    }
View Full Code Here

Examples of org.serviceconnector.net.connection.ConnectionContext

  /** {@inheritDoc} */
  @Override
  public void send(SCMPMessage message, int timeoutMillis, ISCMPMessageCallback callback) throws Exception {
    // return an already connected live instance
    IConnection connection = this.connectionPool.getConnection();
    ConnectionContext connectionContext = connection.getContext();
    try {
      ISCMPMessageCallback requesterCallback = new RequesterSCMPCallback(callback, connectionContext);
      // setting up operation timeout after successful send
      TimeoutWrapper timeoutWrapper = new TimeoutWrapper((ITimeout) requesterCallback);
      RequesterSCMPCallback reqCallback = (RequesterSCMPCallback) requesterCallback;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.