Comments (5)
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.
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.
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.
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.
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)
- get the interactive mode running HOT 2
- Appengine 1.6.3 + support HOT 3
- lein appengine-prepare broken with lein 1.7.0 HOT 3
- fails on Appengine Java SDK >= 1.6.4 HOT 4
- Unable to use com.google.appengine.api.ThreadManager in dev HOT 2
- Update for GAE sdk 1.7.0 and Clojure 1.4 HOT 1
- Namespaces/Multitenancy issue and fix HOT 1
- Add Support for Lein 2 HOT 3
- ^:clj should be ^{:tag :clj}?
- Error on lein appengine-prepare HOT 4
- ae architecture HOT 2
- repl mystery HOT 4
- Writing (and reading) files to the blobstore throws an error HOT 3
- Provide insight/comments to Clojure Core issue to add support for App Engine Threads HOT 1
- Consider splitting appengine-magic to multiple libraries HOT 1
- I don't know why. help me :( HOT 6
- NullPointerException on query HOT 4
- Could not find 0.5.1-SNAPSHOT in clojars when running lein deps
- new fresh app crash on dev_appserver.sh HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appengine-magic.