package demo;

import fr.hhdev.ocelot.Constants;
import fr.hhdev.ocelot.annotations.DataService;
import fr.hhdev.ocelot.annotations.JsCacheResult;
import javax.ejb.Stateless;

/**
 * Classe de test sur l'ejbResolver
 * @author hhfrancois
 */
@Stateless
@DataService(resolver = Constants.Resolver.EJB)
public class TestEJBService {

	public String getMessage(int i) {
		return "Message from ejb service getMessage(int "+i+")";
	}

	public String getMessage(String i) {
		return "Message from ejb service getMessage(String "+i+")";
	}

	@JsCacheResult(minute = 1)
	public String getMessageCached() {
		return "Message from ejb service getMessageCached():"+Math.random();
	}
}

@@ -691,12 +691,221 @@
 ();%0D%0A%09%7D%0D
+%0A%0D%0A%09@JsCacheResult(minute = 1, keys = %22*, id, -, **%22)%0D%0A%09public String getMessageCached2(int i, User u, long l, short s, boolean b) %7B%0D%0A%09%09return %22Message from ejb service getMessageCached():%22+Math.random();%0D%0A%09%7D%0D
 %0A%7D%0D%0A

add methodwith cachekey complex