Package org.apache.cxf.jca.cxf

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


    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

    protected Bus createMockBus() {
        return EasyMock.createMock(Bus.class);
    }

    protected CXFConnectEJBServant createCXFConnectEJBServant(Bus bus) throws Exception {
        JCABusFactory bf = new JCABusFactory(new ManagedConnectionFactoryImpl());
        return createCXFConnectEJBServant(bf, bus);
    }
View Full Code Here

                               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

               
        CXFConnectionRequestInfo cri = new CXFConnectionRequestInfo(Greeter.class,
                                           wsdl,
                                           service.getServiceName(),
                                           portName);
        ManagedConnectionFactoryImpl 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

               
        CXFConnectionRequestInfo cri = new CXFConnectionRequestInfo(Greeter.class,
                                           wsdl,
                                           service.getServiceName(),
                                           portName);
        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

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

                               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();       
        BusFactoryHelper.newInstance().setDefaultBus(bus);       
        return invokeNext(proxy, method, args);
    }
View Full Code Here

               
        CXFConnectionRequestInfo cri = new CXFConnectionRequestInfo(Greeter.class,
                                           wsdl,
                                           service.getServiceName(),
                                           portName);
        ManagedConnectionFactoryImpl 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

    protected Bus createMockBus() {
        return EasyMock.createMock(Bus.class);
    }

    protected CXFConnectEJBServant createCXFConnectEJBServant(Bus bus) throws Exception {
        JCABusFactory bf = new JCABusFactory(new ManagedConnectionFactoryImpl());
        return createCXFConnectEJBServant(bf, bus);
    }
View Full Code Here

TOP

Related Classes of org.apache.cxf.jca.cxf.ManagedConnectionFactoryImpl

Copyright © 2018 www.massapicom. 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.