Giter Club home page Giter Club logo

Comments (5)

gcv avatar gcv commented on September 28, 2024

appengine-magic should work fine in conjunction with Java servlets. When you run lein appengine-new, the task generates a war/WEB-INF/web.xml file pre-filled with everything necessary for the Ring handler, as a servlet. You can add other servlet handlers to the configuration. You'll have to figure out how to link building your Java and your Clojure code, but perhaps Leiningen can help there.

Let me know if you already tried this approach and it didn't work.

from appengine-magic.

roti avatar roti commented on September 28, 2024

Well, I'm not using the ring handler. I have a java servlet to do the job. I want to use appengine-magic for the other services (like datastore). Currently appengine-magic.core/serve requires an "application" as parameter.

Razvan

from appengine-magic.

gcv avatar gcv commented on September 28, 2024

Right, appengine-magic does need to be started in order to provide Google's services. Why don't you just make a placeholder application which does not serve up any HTTP requests? You don't even need to have it mapped in web.xml.

from appengine-magic.

roti avatar roti commented on September 28, 2024

Not sure exactly what you mean by the placeholder app. Anyway, I took a more daring path: I tried to start an embedded dev_appserver (which is started by dev_appserver.sh, from the appengine sdk), but ran into some problems. The security manager does not allow reading of web.xml files. I posted a question on the appengine forum and am currently waiting for some help.

Maybe it would be a good idea to integrate this into appengine-magic: to start the real dev_appserver with the start method, instead of a blank jetty instance. With this I think you won't need to do any of those "/_ah/*" mappings. What do you think? I'm willing to share the code once I get the thing right.

Razvan


From: Constantine Vetoshev [email protected]
To: Razvan Rotaru [email protected]
Sent: Friday, January 13, 2012 12:00 AM
Subject: Re: [appengine-magic] Add support for Servlets (#53)

Right, appengine-magic does need to be started in order to provide Google's services. Why don't you just make a placeholder application which does not serve up any HTTP requests? You don't even need to have it mapped in web.xml.


Reply to this email directly or view it on GitHub:
#53 (comment)

from appengine-magic.

gcv avatar gcv commented on September 28, 2024

I tried to figure out what dev_appserver does and start it sometime in September 2010, ran into massive problems, and did what you see in appengine-magic today.

Rereading the thread, I finally realized that you're having trouble with using interactive mode. I see. The easiest solution is for you to modify appengine-magic.jetty to respect extra servlets mapped in web.xml. You'll have to figure out the right way of doing this from the Jetty API, and there are several reasonable approaches.

from appengine-magic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.