Igor, Thanks for the response. Sorry, I wasn't very clear when I said "wicket realm."
What I meant was to be able to access the Wicket DAO's and stuff like that. Maybe what I am talking about is only directly possible with objects that share the same classloader? Would the best way to offload the incoming REST requests with RMI? Also, would it be possible to map wicket to /* and services to /services/*? Finally, thanks for everything you and all the other Wicket developers do to advance Wicket and make it the best Web Framework on the planet!! It's really a pleasure to work with :) Jamie igor.vaynberg wrote: > > map your wicket filter to /app/* and your services filter/servlet to > /services/* > > im not sure what you mean by services impl calling objects in the > wicket realm - all that is or should be in the wicket realm are ui > objects you wont have a need to reuse in your services.. > > -igor > > On Wed, Apr 1, 2009 at 6:03 PM, Jamie Swain <[email protected]> wrote: >> I'm sorry this isn't directly a Wicket question, but I thought you >> guys in here might be able to help :). What I'm doing is building a >> Wicket-based web app, and I would additionally like to offer some data >> to other sites/clients in the form of an HTTP-REST API (that responds >> to simple GET and POST requests and returns XML and/or JSON). (It >> would be something that works kind of like the Twitter API >> http://apiwiki.twitter.com/REST+API+Documentation). >> >> My question is what is the best way to access the objects and classes >> that Wicket can see and call methods on from my REST Web Service API. >> >> Do I create a separate servlet running the the same Tomcat Server that >> can call somehow objects in the Wicket realm? >> >> Or is there a class I can implement within my Wicket-based app that >> can respond to these REST requests? It would probably be most >> feasible for now to have it all integrated into the same app. >> >> I have been working with Wicket for a while, and feel pretty >> comfortable with it, but I don't really have any experience working >> with servlets, so I'd really appreciate a little guidance on this. >> >> I appreciate the help guys! >> Thanks, >> Jamie >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > -- View this message in context: http://www.nabble.com/setting-up-REST-API-that-can-respond-to-requests-alongside-Wicket-tp22839000p22839851.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
