Hi to all...
I want to invoke an ECA when the logout servlet is called(before or after tha call)i wrote this in ECA: //************** begin ***************** <service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/service-eca.xsd"> <eca service="userLogin" event="return"> <action service="myStatusUserLogin" mode="sync"/> </eca> <eca service="logout" event="return"> <action service="myStatusUserLogout" mode="sync"/> </eca> </service-eca> //*************** end **************** When the logout is called the ECA "myStatusUserLogout" that is attached to it didn't take action. With notice that the Other ECA "myStatusUserLogin" that is attached to the login service was called successfully. These services were built in the service.xml in the myStatus mudule like this: //**************** begin ********************* <service name="myStatusUserLogin" engine="java" location="org.ofbiz.MyStatus.MyStatus" invoke="myStatusUserLogin" auth="true"> <description>Update the MyStatus for the current Employee</description> <attribute name="userLogin" type="org.ofbiz.entity.GenericValue" mode="IN"/> <attribute name="userLoginSession" type="java.util.Map" mode="IN" optional="true"/> </service> <service name="myStatusUserLogout" engine="java" location="org.ofbiz.MyStatus.MyStatus" invoke="myStatusUserLogout" auth="true"> <description>Update the MyStatus for the current Employee</description> <attribute name="userLogin" type="org.ofbiz.entity.GenericValue" mode="IN"/> <attribute name="userLoginSession" type="java.util.Map" mode="IN" optional="true"/> </service> //***************** end ********************** so please if any one know where is the problem? thanks in advanced. Bye _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev |
In the main OFBiz code base there is no login service, it is only an event. -David On Oct 20, 2005, at 1:54 PM, CRM-TEAM wrote: > Hi to all... > I want to invoke an ECA when the logout servlet is called(before > or after tha call)i wrote this in ECA: > //************** begin ***************** > <service-eca xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:noNamespaceSchemaLocation="http://www.ofbiz.org/dtds/ > service-eca.xsd"> > <eca service="userLogin" event="return"> > <action service="myStatusUserLogin" mode="sync"/> > </eca> > > <eca service="logout" event="return"> > <action service="myStatusUserLogout" mode="sync"/> > </eca> > > </service-eca> > > //*************** end **************** > > When the logout is called the ECA "myStatusUserLogout" that is > attached to it didn't take action. > With notice that the Other ECA "myStatusUserLogin" that is attached > to the login service was called successfully. > > These services were built in the service.xml in the myStatus mudule > like this: > //**************** begin ********************* > <service name="myStatusUserLogin" engine="java" > location="org.ofbiz.MyStatus.MyStatus" > invoke="myStatusUserLogin" auth="true"> > <description>Update the MyStatus for the current Employee</ > description> > <attribute name="userLogin" > type="org.ofbiz.entity.GenericValue" mode="IN"/> > <attribute name="userLoginSession" type="java.util.Map" > mode="IN" optional="true"/> > </service> > > <service name="myStatusUserLogout" engine="java" > location="org.ofbiz.MyStatus.MyStatus" > invoke="myStatusUserLogout" auth="true"> > <description>Update the MyStatus for the current Employee</ > description> > <attribute name="userLogin" > type="org.ofbiz.entity.GenericValue" mode="IN"/> > <attribute name="userLoginSession" type="java.util.Map" > mode="IN" optional="true"/> > </service> > //***************** end ********************** > > so please if any one know where is the problem? > thanks in advanced. > Bye > > _______________________________________________ > Dev mailing list > [hidden email] > http://lists.ofbiz.org/mailman/listinfo/dev _______________________________________________ Dev mailing list [hidden email] http://lists.ofbiz.org/mailman/listinfo/dev smime.p7s (3K) Download Attachment |
Free forum by Nabble | Edit this page |