package org.jboss.as.test.clustering.twoclusters.bean.forwarding;

import org.jboss.as.test.clustering.twoclusters.bean.stateful.RemoteStatefulSB;
import org.jboss.ejb3.annotation.Clustered;

import javax.ejb.Stateful;
import javax.ejb.TransactionAttribute;
import javax.ejb.TransactionAttributeType;

@Stateful
@Clustered
@TransactionAttribute(TransactionAttributeType.REQUIRED) // this is the default anyway
public class ForwardingStatefulSBImpl extends AbstractForwardingStatefulSBImpl implements RemoteStatefulSB {
}

@@ -511,11 +511,405 @@
 efulSB %7B
+%0A%0A    // we need to override these methods so that the TransactionAttribute gets processed on this class!%0A%0A    @Override%0A    public int getSerial()%0A    %7B%0A        return super.getSerial();%0A    %7D%0A%0A    @Override%0A    public int getSerialAndIncrement()%0A    %7B%0A        return super.getSerialAndIncrement();%0A    %7D%0A%0A    @Override%0A    public byte%5B%5D getCargo()%0A    %7B%0A        return super.getCargo();%0A    %7D
 %0A%7D%0A

Add in overrides for methods otherwise TransactionAttribute changes don't get applied.