Package org.apache.openejb

Examples of org.apache.openejb.ClusteredRPCContainer


public class BasicClusterableRequestHandler implements ClusterableRequestHandler {

    public void updateServer(BeanContext beanContext, ClusterableRequest req, ClusterableResponse res) {
        Container container = beanContext.getContainer();
        if (container instanceof ClusteredRPCContainer) {
            ClusteredRPCContainer clusteredContainer = (ClusteredRPCContainer) container;
            URI[] locations = clusteredContainer.getLocations(beanContext);
            if (null != locations) {
                ServerMetaData server = new ServerMetaData(locations);
                if (req.getServerHash() != server.buildHash()) {
                    res.setServer(server);
                }
View Full Code Here


    public void updateServer(final BeanContext beanContext, final ClusterableRequest req, final ClusterableResponse res) {

        final Container container = beanContext.getContainer();

        if (container instanceof ClusteredRPCContainer) {
            final ClusteredRPCContainer clusteredContainer = (ClusteredRPCContainer) container;
            final URI[] locations = clusteredContainer.getLocations(beanContext);
            if (null != locations) {
                final ServerMetaData server = new ServerMetaData(locations);
                if (req.getServerHash() != server.buildHash()) {
                    res.setServer(server);
                }
View Full Code Here

public class BasicClusterableRequestHandler implements ClusterableRequestHandler {

    public void updateServer(DeploymentInfo deploymentInfo, ClusterableRequest req, ClusterableResponse res) {
        Container container = deploymentInfo.getContainer();
        if (container instanceof ClusteredRPCContainer) {
            ClusteredRPCContainer clusteredContainer = (ClusteredRPCContainer) container;
            URI[] locations = clusteredContainer.getLocations(deploymentInfo);
            if (null != locations) {
                ServerMetaData server = new ServerMetaData(locations);
                if (req.getServerHash() != server.buildHash()) {
                    res.setServer(server);
                }
View Full Code Here

TOP

Related Classes of org.apache.openejb.ClusteredRPCContainer

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.