[jboss-user] [JBoss Seam] - Re: Long Time Running Stateful Bean Problem

koenhandekyn do-not-reply at jboss.com
Thu Jun 21 09:55:43 EDT 2007


i'm having an issue with passivation of a seam statefull session bean:

anonymous wrote : 
  | 15:49:23,387 ERROR [SimpleStatefulCache] problem passivation thread
  | javax.ejb.EJBException: Could not passivate; failed to save state
  |         at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java
  |         at org.jboss.ejb3.cache.simple.SimpleStatefulCache.passivate(SimpleStatefulCache.java:196)
  |         at org.jboss.ejb3.cache.simple.SimpleStatefulCache$SessionTimeoutTask.run(SimpleStatefulCache.java:129)
  | Caused by: java.io.IOException
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:129)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.mx.util.MBeanProxyExt.writeExternal(MBeanProxyExt.java:432)
  |         at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.ProxyPersister.writeData(ProxyPersister.java:58)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
  |         at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
  |         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
  |         at org.jboss.serial.io.MarshalledObject.(MarshalledObject.java:51)
  |         at org.jboss.ejb3.stateful.StatefulBeanContext.writeExternal(StatefulBeanContext.java:405)
  |         at org.jboss.serial.persister.ExternalizePersister.writeData(ExternalizePersister.java:58)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.io.JBossObjectOutputStream.writeObjectOverride(JBossObjectOutputStream.java:181)
  |         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
  |         at org.jboss.ejb3.cache.simple.StatefulSessionFilePersistenceManager.passivateSession(StatefulSessionFilePersistenceManager.java
  |         ... 2 more
  | Caused by: java.lang.reflect.InvocationTargetException
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:597)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
  |         ... 42 more
  | Caused by: java.io.IOException
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:129)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.ObjectOutputStreamProxy.writeObjectOverride(ObjectOutputStreamProxy.java:60)
  |         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
  |         at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.writeObject(ConcurrentReaderHashMap.java:1230)
  |         ... 47 more
  | Caused by: java.lang.reflect.InvocationTargetException
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:597)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
  |         ... 54 more
  | Caused by: java.io.IOException
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:129)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.ObjectOutputStreamProxy.writeObjectOverride(ObjectOutputStreamProxy.java:60)
  |         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
  |         at EDU.oswego.cs.dl.util.concurrent.ConcurrentReaderHashMap.writeObject(ConcurrentReaderHashMap.java:1230)
  |         ... 59 more
  | Caused by: java.lang.reflect.InvocationTargetException
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:597)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
  |         ... 91 more
  | Caused by: java.io.IOException
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:129)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:86)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.ObjectOutputStreamProxy.writeObjectOverride(ObjectOutputStreamProxy.java:60)
  |         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
  |         at EDU.oswego.cs.dl.util.concurrent.CopyOnWriteArrayList.writeObject(CopyOnWriteArrayList.java:772)
  |         ... 96 more
  | Caused by: java.lang.reflect.InvocationTargetException
  |         at sun.reflect.GeneratedMethodAccessor333.invoke(Unknown Source)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:597)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
  |         ... 113 more
  | Caused by: java.lang.NoClassDefFoundError: org/jaxen/VariableContext
  |         at java.lang.Class.getDeclaredMethods0(Native Method)
  |         at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
  |         at java.lang.Class.getDeclaredMethod(Class.java:1935)
  |         at org.jboss.serial.classmetamodel.ClassMetaData.lookupMethodOnHierarchy(ClassMetaData.java:102)
  |         at org.jboss.serial.classmetamodel.ClassMetaData.lookupInternalMethods(ClassMetaData.java:432)
  |         at org.jboss.serial.classmetamodel.ClassMetaData.(ClassMetaData.java:122)
  |         at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:350)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:168)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.ArrayPersister.saveObjectArray(ArrayPersister.java:110)
  |         at org.jboss.serial.persister.ArrayPersister.writeData(ArrayPersister.java:101)
  |         at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
  |         at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
  |         at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
  |         at org.jboss.serial.persister.ObjectOutputStreamProxy.writeFields(ObjectOutputStreamProxy.java:79)
  |         at org.jboss.serial.persister.ObjectOutputStreamProxy.defaultWriteObject(ObjectOutputStreamProxy.java:68)
  |         at java.util.Vector.writeObject(Vector.java:1012)
  |         ... 117 more
  | 15:49:23,647 WARN  [Contexts] Could not destroy component: subscriptionManager
  | javax.ejb.EJBNoSuchObjectException: Could not find Stateful bean: 5c4o23-vgmimt-f379zen9-1-f37a9mb9-f
  |         at org.jboss.ejb3.cache.simple.SimpleStatefulCache.get(SimpleStatefulCache.java:268)
  |         at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.removeSession(StatefulRemoveInterceptor.java:127)
  |         at org.jboss.ejb3.stateful.StatefulRemoveInterceptor.invoke(StatefulRemoveInterceptor.java:87)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:77)
  |         at org.jboss.ejb3.security.Ejb3AuthenticationInterceptor.invoke(Ejb3AuthenticationInterceptor.java:102)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
  |         at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
  |         at org.jboss.ejb3.stateful.StatefulContainer.localInvoke(StatefulContainer.java:203)
  |         at org.jboss.ejb3.stateful.StatefulLocalProxy.invoke(StatefulLocalProxy.java:98)
  |         at $Proxy122.destroy(Unknown Source)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:597)
  |         at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
  |         at org.jboss.seam.intercept.RootInvocationContext.proceed(RootInvocationContext.java:31)
  |         at org.jboss.seam.intercept.ClientSideInterceptor$1.proceed(ClientSideInterceptor.java:72)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:57)
  |         at org.jboss.seam.interceptors.SecurityInterceptor.aroundInvoke(SecurityInterceptor.java:37)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  |         at org.jboss.seam.interceptors.RemoveInterceptor.aroundInvoke(RemoveInterceptor.java:40)
  |         at org.jboss.seam.intercept.SeamInvocationContext.proceed(SeamInvocationContext.java:69)
  |         at org.jboss.seam.intercept.RootInterceptor.invoke(RootInterceptor.java:103)
  |         at org.jboss.seam.intercept.ClientSideInterceptor.invoke(ClientSideInterceptor.java:50)
  |         at org.javassist.tmp.java.lang.Object_$$_javassist_89.destroy(Object_$$_javassist_89.java)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |         at java.lang.reflect.Method.invoke(Method.java:597)
  |         at org.jboss.seam.util.Reflections.invoke(Reflections.java:20)
  |         at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:123)
  |         at org.jboss.seam.Component.callComponentMethod(Component.java:1834)
  |         at org.jboss.seam.Component.callDestroyMethod(Component.java:1765)
  |         at org.jboss.seam.contexts.Contexts.destroy(Contexts.java:231)
  |         at org.jboss.seam.contexts.Lifecycle.destroyConversationContext(Lifecycle.java:535)
  |         at org.jboss.seam.contexts.Lifecycle.endSession(Lifecycle.java:288)
  |         at org.jboss.seam.servlet.SeamListener.sessionDestroyed(SeamListener.java:45)
  |         at org.apache.catalina.session.StandardSession.expire(StandardSession.java:687)
  |         at org.apache.catalina.session.StandardSession.isValid(StandardSession.java:579)
  |         at org.apache.catalina.session.ManagerBase.processExpires(ManagerBase.java:678)
  |         at org.apache.catalina.session.ManagerBase.backgroundProcess(ManagerBase.java:663)
  |         at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1284)
  |         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1569)
  |         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
  |         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1578)
  |         at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1558)
  |         at java.lang.Thread.run(Thread.java:619)


the bean is quit simple:

package upr.action;
  | 
  | import ...
  | 
  | @Stateful
  | @Name("subscriptionManager")
  | @Restrict("#{identity.loggedIn}")
  | public class SubscriptionManagerAction implements Serializable, SubscriptionManagerI {
  | 
  |   private static final long serialVersionUID = 4002064955216930775L;
  | 
  |   @PersistenceContext(type = EXTENDED)
  |   private EntityManager em;
  | 
  |   @Logger
  |   Log log;
  | 
  |   @In
  |   private FacesMessages facesMessages;
  | 
  |   @In
  |   private Actor actor;
  | 
  |   @DataModel
  |   private List<Subscription> subscriptions;
  | 
  |   @DataModelSelection
  |   @Out // (scope = ScopeType.SESSION)
  |   private Subscription selectedSubscription;
  | 
  |   @In(create = true)
  |   @Out
  |   DocumentManagerI documentManager;
  | 
  |   @Begin
  |   @Factory("subscriptions")
  |   public void findSubscriptions() {
  | 
  |     final Query query;
  |     query = em.createQuery("SELECT subscription FROM Account account, IN(account.profile.subscriptions) subscription WHERE account.credentials.login = #{identity.username}");
  | 
  |     subscriptions = query.getResultList();
  | 
  |     if (subscriptions != null && subscriptions.size() > 0) {
  |       selectedSubscription = subscriptions.get(0);
  |       select();
  |     }
  | 
  |     // facesMessages.add(FacesMessage.SEVERITY_INFO, "found %d subscriptions.", subscriptions.size());
  |     log.info("subscriptions: #0", subscriptions);
  |   }
  | 
  |   public Subscription getSelectedSubscription() {
  | 
  |     return selectedSubscription;
  |   }
  | 
  |   public void setSelectedSubscription(Subscription selectedSubscription) {
  | 
  |     this.selectedSubscription = selectedSubscription;
  |     select();
  |   }
  | 
  |   // TODO : clean up the default actor id
  |   @RaiseEvent("onSelectSubscription")
  |   public void select() {
  | 
  |     actor.getGroupActorIds().clear();
  |     actor.getGroupActorIds().add("default");
  |     for (final String actorName : selectedSubscription.getRole().getActors()) {
  |       actor.getGroupActorIds().add(actorName);
  |       System.out.println(" adding actor : " + actorName);
  |     }
  |   }
  | 
  |   @Remove
  |   @Destroy
  |   public void destroy() {
  | 
  |   }
  | 
  | }

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056507#4056507

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056507



More information about the jboss-user mailing list