I've created a couple of mapreduce mappers that successfully run. Now,
I wanted to use my existing classes (DAOs and Managers) from within
these mappers. I developed them for my existing GAE application (that
the mapreduce mappers are part of now). I use Guice in my GAE
application successfully. So how would I plug mapreduce mappers with
Guice DI - so far I have not succeeded with that?

So far I've got this going:
I do use Guice Servlet and I have defined

serve("/mapreduce/*").with(MyMapReduceServlet.class);

in MyServletModule along with my other servlets. mapreduce servlet is
defined:

@Singleton
public class MyMapReduceServlet extends MapReduceServlet {


All of them work including mapreduce servlet. But when I launch
mapreduce job I get NPE on injected property:

@Inject
private WineDAO wineDAO;

@Inject  // not sure this is needed...
public DeleteAllMapper() {
       super();
}

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to