Fwd: [play-framework] [1.2.4][siena-2.0.7][gae-1.6.0] play gae:deploy doesn't seem to send info on backends.xml to AppSpot

48 views
Skip to first unread message

Pascal Voitot Dev

unread,
May 21, 2012, 5:59:51 PM5/21/12
to siena-...@googlegroups.com, jesus.vi...@overlaymedia.com
forwarding to siena list...
Anyone tried using backend.xml with Play+GAE?

Thanks
Pascal

---------- Forwarded message ----------
From: jesusvp <jesus.vi...@overlaymedia.com>
Date: Mon, May 21, 2012 at 6:45 PM
Subject: [play-framework] [1.2.4][siena-2.0.7][gae-1.6.0] play gae:deploy doesn't seem to send info on backends.xml to AppSpot
To: play-fr...@googlegroups.com


Hello!

I'm trying to use backends on GAE but I've got the impression that I'm missing something. I created a backends.xml file in war/WEB-INF (at the same level as appengine-web.xml) with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<backends>
  <backend name="backup">
    <class>B1</class>
    <instances>1</instances>
  </backend>
</backends>

When I deploy the app with play gae:deploy I can see on the console that it is parsed:

INFO: Successfully processed /var/folders/6q/7kj374f17vj_f2vhb0dcthq80000gp/T/(nameofapp).war/WEB-INF/backends.xml
Beginning server interaction for (nameofapp)...

However, when I go to my app's backends administration page I only see a message explaining that I have not created backends for my application and that I need to define them using backends.xml for Java.

Has anybody used backends or been able to configure them on GAE?

Thank you for your help.

Jesús

--
You received this message because you are subscribed to the Google Groups "play-framework" group.
To view this discussion on the web visit https://groups.google.com/d/msg/play-framework/-/tATo2kUAwJIJ.
To post to this group, send email to play-fr...@googlegroups.com.
To unsubscribe from this group, send email to play-framewor...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/play-framework?hl=en.

Emanuele Ziglioli

unread,
May 21, 2012, 9:10:43 PM5/21/12
to Siena
no, I don't really understand what backends is for. It is to implement
websockets?

On May 22, 9:59 am, Pascal Voitot Dev <pascal.voitot....@gmail.com>
wrote:

Pascal Voitot Dev

unread,
May 22, 2012, 2:46:39 AM5/22/12
to siena-...@googlegroups.com
According to the doc: (actually this is something like a more "persistent" instance and I can imagine the price is more persistent also :) )

Backends (Java)

This reference describes how to use App Engine Backends in Java. Backends are special App Engine instances that have no request deadlines, higher memory and CPU limits, and persistent state across requests. They are started automatically by App Engine and can run continously for long periods. Each backend instance has a unique URL to use for requests, and you can load-balance requests across multiple instances.

Backends can handle HTTP requests from users or other parts of your application, start and run continuously in the background, or be driven by Task Queue tasks or Cron jobs. The following sections describe how to configure backends, best practices for using them, and how App Engine bills for them.



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


Developers di Paola

unread,
Apr 25, 2013, 11:49:54 AM4/25/13
to siena-...@googlegroups.com
I made it work by running

appcfg backends "pathtomyplayproject\war" update

i had to add a web.xml and backends.xml (attached to this post)

Regards!
backends.xml
web.xml
Reply all
Reply to author
Forward
0 new messages