Examples of ManagedConnectionFactoryImpl


Examples of org.apache.cxf.jca.cxf.ManagedConnectionFactoryImpl

        CXFConnectionRequestInfo cri = new CXFConnectionRequestInfo(Greeter.class,
                                           wsdl,
                                           service.getServiceName(),
                                           portName);
        cri.setAddress("http://localhost:" + PORT + "/SoapContext/SoapPort");
        ManagedConnectionFactory managedFactory = new ManagedConnectionFactoryImpl();
        Subject subject = new Subject();
        ManagedConnection mc = managedFactory.createManagedConnection(subject, cri);       
        Object o = mc.getConnection(subject, cri);
       
        // test for the Object hash()
        try {
            o.hashCode();
View Full Code Here

Examples of org.apache.cxf.jca.cxf.ManagedConnectionFactoryImpl

    public void testGetConnectionFromSEI() throws Exception {
        CXFConnectionRequestInfo requestInfo = new CXFConnectionRequestInfo();
        requestInfo.setInterface(Greeter.class);
        requestInfo.setAddress("http://localhost:" + PORT + "/SoapContext/SoapPort");
       
        ManagedConnectionFactory factory = new ManagedConnectionFactoryImpl();
        ManagedConnection mc = factory.createManagedConnection(null, requestInfo);
        Object client = mc.getConnection(null, requestInfo);
       
        verifyResult(client);
    }
View Full Code Here

Examples of org.apache.cxf.jca.cxf.ManagedConnectionFactoryImpl

                               final Method method,
                               final Object args[]) throws Throwable {
      
        LOG.fine(this + " on " + method);
        Object o = getData().getManagedConnection().getManagedConnectionFactory();
        ManagedConnectionFactoryImpl mcf = (ManagedConnectionFactoryImpl)o;
        //NOTE reset the inited bus to current ,so CXF-rt can play with JCA setup bus
        Bus bus = mcf.getBus();       
        BusFactory.setDefaultBus(bus);       
        return invokeNext(proxy, method, args);
    }
View Full Code Here

Examples of org.objectweb.joram.client.connector.ManagedConnectionFactoryImpl

      Queue queue = (Queue) ictx.lookup("queue");
      Topic topic = (Topic) ictx.lookup("topic");
    
      ictx.close();

      ManagedConnectionFactoryImpl mcf = new ManagedConnectionFactoryImpl();
      mcf.setResourceAdapter(ja);
      System.out.println("ManagedConnectionFactoryImpl ok");
    
      ManagedConnectionImpl mci = (ManagedConnectionImpl) mcf.createManagedConnection(null,null);
      System.out.println("ManagedConnectionImpl ok");

      OutboundConnection oc = (OutboundConnection) mci.getConnection(null,null);
      System.out.println("OutboundConnection ok");
     
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.