1 Reply Latest reply on Oct 30, 2009 4:53 AM by jaikiran

    JBoss 5: Advised method calls in stateful beans; Where do th

      We recently moved our JBoss 4.2.2. projekt to JBoss 5.1.0.GA. It works quite well, however, we are facing this problem:

      When call a certain method of a stateful bean, the server calls antoher method of this bean before. For example, when calling bean.getPartner() the system "automatically" calls the method getName() before calling getPartner().

      Is this a new AOP feature? How can we configure it?

      This problem does not exists using the same code with Jboss 4.2.2.


      [advisedMethod=public void com.tm3.erp.warehouse.service.impl.LogisticAdapterInboundManagerBean.commitProcess(), unadvisedMethod=public void com.tm3.erp.warehouse.service.impl.LogisticAdapterInboundManagerBean.commitProcess(), metadata=[metaData={DISPATCHER={OID=[type=AS_ISvalue=jboss.j2ee:jar=com.tm3.erp.server.jar,name=LogisticAdapterInboundManagerBean,service=EJB3]}, REMOTING={SUBSYSTEM=[type=AS_ISvalue=AOP], INVOKER_LOCATOR=[type=AS_ISvalue=InvokerLocator [socket://165.0.0.51:3873/]]}, SFSBInvocation={SessionID=[type=AS_ISvalue=4l001f-g7hi12-g1dqx5lz-1-g1drp45h-bl]}, security={principal=[type=MARSHALLEDvalue=org.jboss.aop.util.MarshalledValue@30be8490], context=[type=MARSHALLEDvalue=[org.jboss.security.plugins.JBossSecurityContext()CLIENT)]], credential=[type=MARSHALLEDvalue=org.jboss.aop.util.MarshalledValue@1acfd7cb]}, IS_LOCAL={GUID=[type=AS_ISvalue=jboss.j2ee:jar=com.tm3.erp.server.jar,name=LogisticAdapterInboundManagerBean,service=EJB3,VMID=04ca4ccf7f5e36c6:-699c128a:124a12f6931:-7ff9]}, SessionInvocation={InvokedMethod=[type=AS_ISvalue=com.tm3.erp.warehouse.service.interfaces.LogisticAdapterInboundManagerRemote: com.tm3.erp.warehouse.service.LogisticExecutionManagerInterface.getLogisticExecution()]}}], targetObject=com.tm3.erp.warehouse.service.impl.LogisticAdapterInboundManagerBean@1d46f77, arguments=[Ljava.lang.Object;@1edc5c8]

        • 1. Re: JBoss 5: Advised method calls in stateful beans; Where d
          jaikiran

           

          Is this a new AOP feature? How can we configure it?


          There's no such featured :-)

          What makes you think that that getName() is being called? Can you post the relevant code from your bean? The log that you posted doesn't have much info.

          While posting logs or xml content or code, please remember to wrap it in a code block by using the Code button in the message editor window. Please use the Preview button to ensure that your post is correctly formatted.