Hello,
Is there any documentation about how to test server-side code under
tomcat?
I have code like this:
...
public class ServicoImpl extends RemoteServiceServlet implements
Servico {
public SerializableResponse<Cliente> requestRows(Request request,
Cliente qbe) {
SerializableResponse result = null;
EntityManager entityManager = CommonEntityManager.getEm();
entityManager.getTransaction().begin();
Query q = entityManager.createQuery("from Cliente c");
q.setMaxResults(request.getNumRows());
q.setFirstResult(request.getStartRow());
entityManager.getTransaction().commit();
result = new SerializableResponse<Cliente>(q.getResultList());
System.out.println("I'm here");
return result;
}
...
which give nothing (or gives something that I cannot see, including
log "I'm here"...) to this client code:
...
public void requestRows(
final Request request,
final Callback<Cliente> callback)
{
Servico.Util.getInstance().requestRows(request, null,
new AsyncCallback<SerializableResponse<Cliente>>() {
public void onFailure(Throwable caught)
{
callback.onFailure(new Exception("falha
rpc"));
}
public void onSuccess
(SerializableResponse<Cliente> result)
{
callback.onRowsReady(request, result);
}
});
}
...
Regards,
-Andrey
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---