Examples of ConnectionRequestInfo


Examples of javax.resource.spi.ConnectionRequestInfo

        if ((null != connectionSet) && !connectionSet.isEmpty()) {
            for (Object con : (Set<?>) connectionSet) {
                if (con instanceof ManagedConnectionImpl) {
                    ManagedConnectionImpl conn = (ManagedConnectionImpl) con;
                    ConnectionRequestInfo otherCxRequestInfo = conn.getCxRequestInfo();
                    if (null == otherCxRequestInfo || otherCxRequestInfo.equals(cxRequestInfo)) {
                        return conn;
                    }

                } else {
                    log(Level.WARNING, "Unexpected element in list: " + con);
View Full Code Here

Examples of javax.resource.spi.ConnectionRequestInfo

/*     */   }
/*     */
/*     */   public Connection getConnection(String user, String password)
/*     */     throws SQLException
/*     */   {
/* 100 */     ConnectionRequestInfo cri = new WrappedConnectionRequestInfo(user, password);
/*     */     try
/*     */     {
/* 103 */       WrappedConnection wc = (WrappedConnection)this.cm.allocateConnection(this.mcf, cri);
/* 104 */       wc.setDataSource(this);
/* 105 */       return wc;
View Full Code Here

Examples of javax.resource.spi.ConnectionRequestInfo

    private boolean isMatch(final AbstractManagedConnectionImpl candidateConn,
                            final ConnectionRequestInfo crInfo, final Subject subject)
        throws ResourceAdapterInternalException {
        boolean result = false;
        final ConnectionRequestInfo candidate = candidateConn.getConnectionRequestInfo();

        if (candidate.equals(crInfo) && (subject == null || subject.equals(candidateConn.getSubject()))) {
            try {
                validateReference(candidateConn, subject);
                result = true;
            } catch (Exception thrown) {
                result = false;
View Full Code Here

Examples of javax.resource.spi.ConnectionRequestInfo

    public Reference getReference() {
        return reference;
    }

    private ConnectionRequestInfo getConnectionRequestInfo() {
        return new ConnectionRequestInfo() {

            @Override
            public boolean equals(Object obj) {
                return true;
            }
View Full Code Here

Examples of org.exolab.jms.net.connector.ConnectionRequestInfo

     * @param principal the principal to use. May be <code>null</code>
     * @throws Exception for any error
     */
    protected ManagedConnectionAcceptor createAcceptor(Principal principal)
            throws Exception {
        ConnectionRequestInfo info = getAcceptorConnectionRequestInfo();
        Authenticator authenticator = new TestAuthenticator(principal);
        ManagedConnectionFactory factory = new HTTPSManagedConnectionFactory();
        return factory.createManagedConnectionAcceptor(authenticator, info);
    }
View Full Code Here

Examples of org.exolab.jms.net.connector.ConnectionRequestInfo

     * @param principal the principal to use. May be <code>null</code>
     * @throws Exception for any error
     */
    protected ManagedConnectionAcceptor createAcceptor(Principal principal)
        throws Exception {
        ConnectionRequestInfo info = getAcceptorConnectionRequestInfo();
        Authenticator authenticator = new TestAuthenticator(principal);
        ManagedConnectionFactory factory = new HTTPManagedConnectionFactory();
        return factory.createManagedConnectionAcceptor(authenticator, info);
    }
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.