Package org.apache.geronimo.connector.outbound

Examples of org.apache.geronimo.connector.outbound.PoolingAttributes


                        factory.setConfigProperty(entry.getKey().substring("property-".length()),
                                entry.getValue());
                    }
                }
                //todo: push the lookup into ManagementHelper
                PoolingAttributes pool = (PoolingAttributes) factory.getConnectionManagerContainer();
                pool.setPartitionMinSize(
                        data.minSize == null || data.minSize.equals("") ? 0 : Integer.parseInt(data.minSize));
                pool.setPartitionMaxSize(
                        data.maxSize == null || data.maxSize.equals("") ? 10 : Integer.parseInt(data.maxSize));
                pool.setBlockingTimeoutMilliseconds(
                        data.blockingTimeout == null || data.blockingTimeout.equals("") ? 5000 : Integer.parseInt(
                                data.blockingTimeout));
                pool.setIdleTimeoutMinutes(
                        data.idleTimeout == null || data.idleTimeout.equals("") ? 15 : Integer.parseInt(
                                data.idleTimeout));
            } catch (Exception e) {
                log.error("Unable to save connection pool", e);
            }
View Full Code Here


            }
        } catch (Exception e) {
            log.error("Unable to look up connection property", e);
        }
        //todo: push the lookup into ManagementHelper
        PoolingAttributes pool = (PoolingAttributes) factory.getConnectionManagerContainer();
        data.minSize = Integer.toString(pool.getPartitionMinSize());
        data.maxSize = Integer.toString(pool.getPartitionMaxSize());
        data.blockingTimeout = Integer.toString(pool.getBlockingTimeoutMilliseconds());
        data.idleTimeout = Integer.toString(pool.getIdleTimeoutMinutes());

    }
View Full Code Here

            }
        } catch (Exception e) {
            log.error("Unable to look up connection property", e);
        }
        //todo: push the lookup into ManagementHelper
        PoolingAttributes pool = (PoolingAttributes) factory.getConnectionManagerContainer();
        data.minSize = Integer.toString(pool.getPartitionMinSize());
        data.maxSize = Integer.toString(pool.getPartitionMaxSize());
        data.blockingTimeout = Integer.toString(pool.getBlockingTimeoutMilliseconds());
        data.idleTimeout = Integer.toString(pool.getIdleTimeoutMinutes());

    }
View Full Code Here

                        factory.setConfigProperty(entry.getKey().substring("property-".length()),
                                entry.getValue());
                    }
                }
                //todo: push the lookup into ManagementHelper
                PoolingAttributes pool = (PoolingAttributes) factory.getConnectionManagerContainer();
                pool.setPartitionMinSize(
                        data.minSize == null || data.minSize.equals("") ? 0 : Integer.parseInt(data.minSize));
                pool.setPartitionMaxSize(
                        data.maxSize == null || data.maxSize.equals("") ? 10 : Integer.parseInt(data.maxSize));
                pool.setBlockingTimeoutMilliseconds(
                        data.blockingTimeout == null || data.blockingTimeout.equals("") ? 5000 : Integer.parseInt(
                                data.blockingTimeout));
                pool.setIdleTimeoutMinutes(
                        data.idleTimeout == null || data.idleTimeout.equals("") ? 15 : Integer.parseInt(
                                data.idleTimeout));
            } catch (Exception e) {
                log.error("Unable to save connection pool", e);
            }
View Full Code Here

        data.idleTimeout = Integer.toString(pool.getIdleTimeoutMinutes());
        */
        try {
            Jsr77Naming naming = new Jsr77Naming();
            AbstractName connectionManagerName = naming.createChildName(abstractFactoryName, data.getName(), NameFactory.JCA_CONNECTION_MANAGER);
            PoolingAttributes pool = (PoolingAttributes) PortletManager.getManagedBean(actionRequest, connectionManagerName);

            data.minSize = Integer.toString(pool.getPartitionMinSize());
            data.maxSize = Integer.toString(pool.getPartitionMaxSize());
            data.blockingTimeout = Integer.toString(pool.getBlockingTimeoutMilliseconds());
            data.idleTimeout = Integer.toString(pool.getIdleTimeoutMinutes());
        } catch (Exception e) {
            log.error("Cannot load pool data", e);
        }
    }
View Full Code Here

                    }
                }
                /*Make pool setting effective after server restart*/        
                Jsr77Naming naming = new Jsr77Naming();
                AbstractName connectionManagerName = naming.createChildName(new AbstractName(URI.create(data.getAbstractName())), data.getName(), NameFactory.JCA_CONNECTION_MANAGER);
                PoolingAttributes pool = (PoolingAttributes) PortletManager.getManagedBean(request, connectionManagerName);
               
                pool.setPartitionMinSize(
                        data.minSize == null || data.minSize.equals("") ? 0 : Integer.parseInt(data.minSize));
                pool.setPartitionMaxSize(
                        data.maxSize == null || data.maxSize.equals("") ? 10 : Integer.parseInt(data.maxSize));
                pool.setBlockingTimeoutMilliseconds(
                        data.blockingTimeout == null || data.blockingTimeout.equals("") ? 5000 : Integer.parseInt(
                                data.blockingTimeout));
                pool.setIdleTimeoutMinutes(
                        data.idleTimeout == null || data.idleTimeout.equals("") ? 15 : Integer.parseInt(
                                data.idleTimeout));
                               
            } catch (Exception e) {
                log.error("Unable to save connection pool", e);
View Full Code Here

            }
        } catch (Exception e) {
            log.error("Unable to look up connection property", e);
        }
        //todo: push the lookup into ManagementHelper
        PoolingAttributes pool = (PoolingAttributes) factory.getConnectionManagerContainer();
        data.minSize = Integer.toString(pool.getPartitionMinSize());
        data.maxSize = Integer.toString(pool.getPartitionMaxSize());
        data.blockingTimeout = Integer.toString(pool.getBlockingTimeoutMilliseconds());
        data.idleTimeout = Integer.toString(pool.getIdleTimeoutMinutes());

    }
View Full Code Here

                        factory.setConfigProperty(entry.getKey().substring("property-".length()),
                                entry.getValue());
                    }
                }
                //todo: push the lookup into ManagementHelper
                PoolingAttributes pool = (PoolingAttributes) factory.getConnectionManagerContainer();
                pool.setPartitionMinSize(
                        data.minSize == null || data.minSize.equals("") ? 0 : Integer.parseInt(data.minSize));
                pool.setPartitionMaxSize(
                        data.maxSize == null || data.maxSize.equals("") ? 10 : Integer.parseInt(data.maxSize));
                pool.setBlockingTimeoutMilliseconds(
                        data.blockingTimeout == null || data.blockingTimeout.equals("") ? 5000 : Integer.parseInt(
                                data.blockingTimeout));
                pool.setIdleTimeoutMinutes(
                        data.idleTimeout == null || data.idleTimeout.equals("") ? 15 : Integer.parseInt(
                                data.idleTimeout));
            } catch (Exception e) {
                log.error("Unable to save connection pool", e);
            }
View Full Code Here

            }
        } catch (Exception e) {
            log.error("Unable to look up connection property", e);
        }
        //todo: push the lookup into ManagementHelper
        PoolingAttributes pool = (PoolingAttributes) factory.getConnectionManagerContainer();
        data.minSize = Integer.toString(pool.getPartitionMinSize());
        data.maxSize = Integer.toString(pool.getPartitionMaxSize());
        data.blockingTimeout = Integer.toString(pool.getBlockingTimeoutMilliseconds());
        data.idleTimeout = Integer.toString(pool.getIdleTimeoutMinutes());

    }
View Full Code Here

                        Map.Entry entry = (Map.Entry) it.next();
                        factory.setConfigProperty(((String) entry.getKey()).substring("property-".length()), entry.getValue());
                    }
                }
                //todo: push the lookup into ManagementHelper
                PoolingAttributes pool = (PoolingAttributes) factory.getConnectionManagerContainer();
                pool.setPartitionMinSize(data.minSize == null || data.minSize.equals("") ? 0 : Integer.parseInt(data.minSize));
                pool.setPartitionMaxSize(data.maxSize == null || data.maxSize.equals("") ? 10 : Integer.parseInt(data.maxSize));
                pool.setBlockingTimeoutMilliseconds(data.blockingTimeout == null || data.blockingTimeout.equals("") ? 5000 : Integer.parseInt(data.blockingTimeout));
                pool.setIdleTimeoutMinutes(data.idleTimeout == null || data.idleTimeout.equals("") ? 15 : Integer.parseInt(data.idleTimeout));
            } catch (Exception e) {
                log.error("Unable to save connection pool", e);
            }
        }
        return null;
View Full Code Here

TOP

Related Classes of org.apache.geronimo.connector.outbound.PoolingAttributes

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.