2 Replies Latest reply on Nov 5, 2001 4:16 AM by Oliver Henlich

    Can SFSB be remved?

    Oliver Henlich Newbie


      Hi guys.
      I did have a look on the forums and the mail list (i could only find a discussion
      on the meaning of remove for a SLSB).

      Simple outline of problem:
      - i have a simple statefull session bean
      - in the web tier i have a business delegate/proxy for this bean
      - the delegate holds a reference to the beans:
      --- home (from lookup, narrow etc)
      --- remote (from home.create)
      - i can use the remote reference sucessfully
      - when i try to remove the bean with 'home.remove()'
      i get the following error:

      [ejb/twang/client] TRANSACTION ROLLBACK EXCEPTION:Not Yet Implemented; nested exception is:
      java.lang.Error: Not Yet Implemented
      [ejb/twang/client] java.lang.Error: Not Yet Implemented
      [ejb/twang/client] at org.jboss.ejb.StatefulSessionContainer.removeHome(StatefulSessionContainer.java:442)
      [ejb/twang/client] at java.lang.reflect.Method.invoke(Native Method)
      [ejb/twang/client] at org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invokeHome(StatefulSessionContainer.java:594)
      [ejb/twang/client] at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:103)
      [ejb/twang/client] at org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invokeHome(StatefulSessionInstanceInterceptor.java:123)
      [ejb/twang/client] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:135)
      [ejb/twang/client] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:307)
      [ejb/twang/client] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:86)
      [ejb/twang/client] at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:106)
      [ejb/twang/client] at org.jboss.ejb.StatefulSessionContainer.invokeHome(StatefulSessionContainer.java:326)
      [ejb/twang/client] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invokeHome(JRMPContainerInvoker.java:372)
      [ejb/twang/client] at java.lang.reflect.Method.invoke(Native Method)
      [ejb/twang/client] at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
      [ejb/twang/client] at sun.rmi.transport.Transport$1.run(Transport.java:152)
      [ejb/twang/client] at java.security.AccessController.doPrivileged(Native Method)
      [ejb/twang/client] at sun.rmi.transport.Transport.serviceCall(Transport.java:148)
      [ejb/twang/client] at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:465)
      [ejb/twang/client] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:706)
      [ejb/twang/client] at java.lang.Thread.run(Thread.java:484)


      Do i read this as 'removing stateful session beans is really not implemented' or
      am i doing something wrong here....i did see some notes about how you
      cannot call remove in a Tx...i'm not as far as i can tell.

      Any hints/help would be much appreciated.
      cheers
      Oliver Henlich