assembler.createProxyFactory(config.configureService(ProxyFactoryInfo.class));
assembler.createTransactionManager(config.configureService(TransactionServiceInfo.class));
assembler.createSecurityService(config.configureService(SecurityServiceInfo.class));
final StatefulSessionContainerInfo statefulContainerInfo = config
.configureService(StatefulSessionContainerInfo.class);
statefulContainerInfo.properties.setProperty("BulkPassivate", "1");
// clear cache every 3 seconds
statefulContainerInfo.properties.setProperty("Frequency", "3");
assembler.createContainer(statefulContainerInfo);