protected ManagedExecutorServiceBase createConfigBean(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure { ManagedScheduledExecutorService managedExecutorService = param.createChild(ManagedScheduledExecutorService.class); setAttributesOnConfigBean(managedExecutorService, properties); return managedExecutorService; } }
protected ManagedExecutorServiceBase createConfigBean(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure { ManagedExecutorService managedExecutorService = param.createChild(ManagedExecutorService.class); setAttributesOnConfigBean(managedExecutorService, properties); managedExecutorService.setMaximumPoolSize(maximumPoolSize); managedExecutorService.setTaskQueueCapacity(taskQueueCapacity); return managedExecutorService; }
private JdbcResource createConfigBean(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure { JdbcResource jdbcResource = param.createChild(JdbcResource.class); jdbcResource.setJndiName(jndiName); if (description != null) { jdbcResource.setDescription(description); } jdbcResource.setPoolName(poolName); jdbcResource.setEnabled(enabled); if (properties != null) { for ( Map.Entry e : properties.entrySet()) { Property prop = jdbcResource.createChild(Property.class); prop.setName((String)e.getKey()); prop.setValue((String)e.getValue()); jdbcResource.getProperty().add(prop); } } return jdbcResource; }
private ContextService createConfigBean(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure { ContextService contextService = param.createChild(ContextService.class); contextService.setJndiName(jndiName); if (description != null) { contextService.setDescription(description); } contextService.setContextInfoEnabled(contextInfoEnabled); contextService.setContextInfo(contextInfo); contextService.setEnabled(enabled); if (properties != null) { for ( Map.Entry e : properties.entrySet()) { Property prop = contextService.createChild(Property.class); prop.setName((String)e.getKey()); prop.setValue((String)e.getValue()); contextService.getProperty().add(prop); } } return contextService; }
private ManagedThreadFactory createConfigBean(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure { ManagedThreadFactory managedThreadFactory = param.createChild(ManagedThreadFactory.class); managedThreadFactory.setJndiName(jndiName); if (description != null) { managedThreadFactory.setDescription(description); } managedThreadFactory.setContextInfoEnabled(contextInfoEnabled); managedThreadFactory.setContextInfo(contextInfo); managedThreadFactory.setThreadPriority(threadPriority); managedThreadFactory.setEnabled(enabled); if (properties != null) { for ( Map.Entry e : properties.entrySet()) { Property prop = managedThreadFactory.createChild(Property.class); prop.setName((String)e.getKey()); prop.setValue((String)e.getValue()); managedThreadFactory.getProperty().add(prop); } } return managedThreadFactory; }
private MailResource createConfigBean(Resources param, Properties props) throws PropertyVetoException, TransactionFailure { MailResource newResource = param.createChild(MailResource.class); newResource.setJndiName(jndiName); newResource.setFrom(fromAddress); newResource.setUser(mailUser); newResource.setHost(mailHost); newResource.setEnabled(enabled); newResource.setStoreProtocol(storeProtocol); newResource.setStoreProtocolClass(storeProtocolClass); newResource.setTransportProtocol(transportProtocol); newResource.setTransportProtocolClass( transportProtocolClass); newResource.setDebug(debug); if (description != null) { newResource.setDescription(description); } if (props != null) { for (java.util.Map.Entry e : props.entrySet()) { Property prop = newResource.createChild(Property.class); prop.setName((String) e.getKey()); prop.setValue((String) e.getValue()); newResource.getProperty().add(prop); } } return newResource; }
private JdbcConnectionPool createConfigBean(Resources param, Properties properties) throws PropertyVetoException, TransactionFailure { JdbcConnectionPool newResource = param.createChild(JdbcConnectionPool.class); newResource.setWrapJdbcObjects(wrapJDBCObjects); if (validationtable != null)