[appengine-java] Re: Change namespace on existing entities

2010-10-29 Thread Didier Durand
Hi,

Question from side: do Payment & Invoice belong to the same entity
group as Party ? I ask this because of the transactional implications
it will have when you modify keys in Payments & Invoices.

regards
didier

On Oct 30, 5:04 am, aswath satrasala 
wrote:
> Hi,
> Further, on this... which leads to how changing of the namespace can be done
> using mapreduce.
>
> If I recreate entities, then if the keys are stored as references in other
> entities also needs to be recreated.
> Ex.
> class Party {
>   @Long id
>   Key tenantKey;  // partitioning/filtering
>   String fname
>
> }
>
> I have several other entitities dependent on the Party Key.
> class Invoice {
> �...@long id
>  Key partyKey
>  ...}
>
> class Payment {
> �...@long id
>  Key partyKey
>
> }
>
> All invoices/Payments has to be re-created.
>
> So, how can this be done using mapreduce jobs.  One option is
> - Using mapreduce, all the Party entities are recreated.  The originalkey
> and the newkey is stored in a different mapping table, something like this
> and operates in the empty namespace.
> class MigrationMappingKeys {
> @Long id;
> Key oldKey
> Key newKey
>
> }
>
> Then, I run the mapreduce job on the Invoice and Payment, and recreate based
> on the above class.
>
> Any other options...?
> -Aswath
>
> On Thu, Oct 28, 2010 at 3:25 PM, Didier Durand wrote:
>
> > Hi,
>
> >http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
> > says
>
> > "When a namespace aware class (e.g., Key, Query and MemcacheService)
> > is constructed, it determines which namespace will be used by calling
> > get() if it is otherwise unspecified. If get() returns null, the
> > current namespace is unset and these APIs will use the empty ("")
> > namespace in its place. "
>
> > So, I would guess that you have to recreate / copy your entities after
> > having set namespace via NameSpaceManager.set() if you want to move
> > them into a new namespace
>
> > regards
> > didier
>
> > On Oct 28, 11:34 am, aswath satrasala 
> > wrote:
> > > Hello,
> > > I have an multi-tenant app-id, and I have designed on partitioning the
> > > entities based on  url parameters.  I am not using the namespace yet.
>
> > > For example,
>
> > > Tenant {
> > > @Id name+email;
>
> > > }
>
> > > class Party {
> > >   @Long id
> > >   Key tenantKey;  // partitioning/filtering
> > >   String fname
>
> > > }
>
> > > Now, I am planning to use the NamespaceManager for the Party entities.  I
> > > want to use the mapreduce and apply the namespace on the existing Party
> > > entities.
> > > Can a namespace be changed from empty to certain value on the existing
> > > entity.
>
> > > -Aswathhttp://vs-accounting.appspot.com
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine for Java" group.
> > To post to this group, send email to
> > google-appengine-j...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine-java+unsubscr...@googlegroups.com
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.

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



[appengine-java] Re: Simple cron job causes "This request caused a new process to be started for your application"

2010-10-29 Thread Didier Durand
Hi,

You're not doing anything wrong: just that after long inactivity, your
app gets unloaded from app engine, when it restarts (here because of
cron), it needs to reload classes and al.  Hence the message.

This happens fairly often when the application doesn't have much
trafic.

regards
didier

On Oct 30, 7:10 am, Richard Berger  wrote:
> Just testing to see if I can get a basic cron job working. Set up the
> cron.xml, create a servlet, modify web.xml, deploy. And every two
> minutes it runs and correctly prints the message I am logging:
>
> W10-29 09:44PM 30.390
> com.rb.commit1.DailyNotificationServlet doGet: This is our cron test
>
> But (a) CPU usage is high (1400ms) and that is because my app code is
> being loaded over and over as shown by the message that I also get
> every two minutes:
> I10-29 09:44PM 30.413
> This request caused a new process to be started for your application,
> and thus caused your application code to be loaded for the first time.
> This request may thus take longer and use more CPU than a typical
> request for your application.
>
> My servlet code seems as simple as possible:
>
> public class DailyNotificationServlet extends HttpServlet {
>
> private static Logger logger =
> Logger.getLogger(DailyNotificationServlet.class.getName());
>
> public void doGet(HttpServletRequest req, HttpServletResponse resp)
> throws IOException {
>
> logger.warning("This is our cron test");
>
> }
> }
>
> Any idea of what I might be doing wrong?
>
> Thanks so much,
>
> RB

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



Re: [appengine-java] Problem with persistence

2010-10-29 Thread A. Stevko
I can understand why this might seem to work.

The problem I see is that unTomeo was detached from the database and either
needs to be reattached or refetched before adding unEquipo to it.

Here is some documentation that may help explain.
http://www.jpox.org/docs/1_1/attach_detach.html

try this

  tx.begin();

   pm.makePersistent(unTorneo);

   unTorneo.agregarEquipo(unEquipo);

   tx.commit();


On Fri, Oct 29, 2010 at 6:22 PM, lisandrodc  wrote:

> Hi ! I have a problem with persist a class. The problem is that
> sometimes, persist and sometimes not persist the class "Equipo" . I
> have a persist class "Torneo" that has to many class "Equipo", and
> when persist "Equipo" sometimes persist in the datastore and sometimes
> not persist.
> I have to try restarting the application in order that sometimes it
> work. Someone will be able to help me?
> The code to persist:
>
>public void agregarEquipoConTorneo(Torneo unTorneo, Equipo unEquipo)
> {
>/*add Equipo with a existing "Torneo" in the datastore, the
> "unTorneo"(param) class obtain with: Torneo b =
> pm.getObjectById(model.Torneo.class, idTorneo);*/
>Transaction tx = pm.currentTransaction();
>
>try {
>tx.begin();
>
>unTorneo.agregarEquipo(unEquipo);
>//pm.makePersistent(unEquipo);
>
>pm.makePersistentAll(unTorneo);
>
>tx.commit();
>
>System.out.println("persistioTorneoConEquipo");
>} finally {
> pm.close();
>if (tx.isActive()) {
>tx.rollback();
>}
>}
>
> }
>
> Regards
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



[appengine-java] Simple cron job causes "This request caused a new process to be started for your application"

2010-10-29 Thread Richard Berger
Just testing to see if I can get a basic cron job working. Set up the
cron.xml, create a servlet, modify web.xml, deploy. And every two
minutes it runs and correctly prints the message I am logging:

W10-29 09:44PM 30.390
com.rb.commit1.DailyNotificationServlet doGet: This is our cron test


But (a) CPU usage is high (1400ms) and that is because my app code is
being loaded over and over as shown by the message that I also get
every two minutes:
I10-29 09:44PM 30.413
This request caused a new process to be started for your application,
and thus caused your application code to be loaded for the first time.
This request may thus take longer and use more CPU than a typical
request for your application.

My servlet code seems as simple as possible:


public class DailyNotificationServlet extends HttpServlet {

private static Logger logger =
Logger.getLogger(DailyNotificationServlet.class.getName());

public void doGet(HttpServletRequest req, HttpServletResponse resp)
throws IOException {

logger.warning("This is our cron test");

}

}


Any idea of what I might be doing wrong?

Thanks so much,

RB

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



[appengine-java] bytes array into file

2010-10-29 Thread asianCoolz
1.i have byte[] array that get from blobstore. I want to input the
byte [] into new File("") but appengine prevent from using
OutputStream/FileOutputStream.   what is the workaround to write byte
into new File[] ?  this new File[] is only required to be read , no
need to write into filesystem



2. currently only max 10mb of static file can be uploaded into
production appengine. for pay service, anyway to request for 100mb? i
only need to read the file, do not need to write into filesystem

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



Re: [appengine-java] Re: Change namespace on existing entities

2010-10-29 Thread aswath satrasala
Hi,
Further, on this... which leads to how changing of the namespace can be done
using mapreduce.

If I recreate entities, then if the keys are stored as references in other
entities also needs to be recreated.
Ex.
class Party {
  @Long id
  Key tenantKey;  // partitioning/filtering
  String fname
}

I have several other entitities dependent on the Party Key.
class Invoice {
 @Long id
 Key partyKey
 ...
}
class Payment {
 @Long id
 Key partyKey
}

All invoices/Payments has to be re-created.

So, how can this be done using mapreduce jobs.  One option is
- Using mapreduce, all the Party entities are recreated.  The originalkey
and the newkey is stored in a different mapping table, something like this
and operates in the empty namespace.
class MigrationMappingKeys {
@Long id;
Key oldKey
Key newKey
}

Then, I run the mapreduce job on the Invoice and Payment, and recreate based
on the above class.

Any other options...?
-Aswath



On Thu, Oct 28, 2010 at 3:25 PM, Didier Durand wrote:

> Hi,
>
>
> http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/NamespaceManager.html
> says
>
> "When a namespace aware class (e.g., Key, Query and MemcacheService)
> is constructed, it determines which namespace will be used by calling
> get() if it is otherwise unspecified. If get() returns null, the
> current namespace is unset and these APIs will use the empty ("")
> namespace in its place. "
>
> So, I would guess that you have to recreate / copy your entities after
> having set namespace via NameSpaceManager.set() if you want to move
> them into a new namespace
>
> regards
> didier
>
> On Oct 28, 11:34 am, aswath satrasala 
> wrote:
> > Hello,
> > I have an multi-tenant app-id, and I have designed on partitioning the
> > entities based on  url parameters.  I am not using the namespace yet.
> >
> > For example,
> >
> > Tenant {
> > @Id name+email;
> >
> > }
> >
> > class Party {
> >   @Long id
> >   Key tenantKey;  // partitioning/filtering
> >   String fname
> >
> > }
> >
> > Now, I am planning to use the NamespaceManager for the Party entities.  I
> > want to use the mapreduce and apply the namespace on the existing Party
> > entities.
> > Can a namespace be changed from empty to certain value on the existing
> > entity.
> >
> > -Aswathhttp://vs-accounting.appspot.com
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



[appengine-java] Problem with persistence

2010-10-29 Thread lisandrodc
Hi ! I have a problem with persist a class. The problem is that
sometimes, persist and sometimes not persist the class "Equipo" . I
have a persist class "Torneo" that has to many class "Equipo", and
when persist "Equipo" sometimes persist in the datastore and sometimes
not persist.
I have to try restarting the application in order that sometimes it
work. Someone will be able to help me?
The code to persist:

public void agregarEquipoConTorneo(Torneo unTorneo, Equipo unEquipo)
{
/*add Equipo with a existing "Torneo" in the datastore, the
"unTorneo"(param) class obtain with: Torneo b =
pm.getObjectById(model.Torneo.class, idTorneo);*/
Transaction tx = pm.currentTransaction();

try {
tx.begin();

unTorneo.agregarEquipo(unEquipo);
//pm.makePersistent(unEquipo);

pm.makePersistentAll(unTorneo);

tx.commit();

System.out.println("persistioTorneoConEquipo");
} finally {
 pm.close();
if (tx.isActive()) {
tx.rollback();
}
}

}

Regards

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



Re: [appengine-java] Re: 1.3.8 Console Logging Issue

2010-10-29 Thread Rajeev Dayal
Drop you launch configuration's log level down to TRACE. Do you see the
messages now?

On Fri, Oct 29, 2010 at 1:23 PM, John Bito wrote:

> Starred the issue:
> http://code.google.com/p/googleappengine/issues/detail?id=3969
>
>  --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

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



[appengine-java] appcfg update_indexes does not require a password?

2010-10-29 Thread Fred
Hi Group,

am I the only one who can update his indexes without requiring to
enter a password to do so? If not, am I the only one who considers
that being scary? If yes, why should I not worry?

Here is what I just got from appcfg:

29.10.2010 21:35:04 java.util.prefs.WindowsPreferences 
WARNUNG: Could not open/create prefs root node Software\JavaSoft\Prefs
at root 0x8002. Windows RegCreateKeyEx(...) returned error code 5.
Reading application configuration data...
29.10.2010 21:35:05
com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
INFO: Successfully processed war\WEB-INF/appengine-web.xml
29.10.2010 21:35:05
com.google.apphosting.utils.config.AbstractConfigXmlReader
readConfigXml
INFO: Successfully processed war\WEB-INF/web.xml
29.10.2010 21:35:05
com.google.apphosting.utils.config.AbstractConfigXmlReader
readConfigXml
INFO: Successfully processed war\WEB-INF/cron.xml
29.10.2010 21:35:05
com.google.apphosting.utils.config.AbstractConfigXmlReader
readConfigXml
INFO: Successfully processed war\WEB-INF/queue.xml
29.10.2010 21:35:05
com.google.apphosting.utils.config.IndexesXmlReader readConfigXml
INFO: Successfully processed war\WEB-INF/datastore-indexes.xml
Beginning server interaction for #obscuredappid#...
0% Uploading index definitions.
Success.
Cleaning up temporary files...

Hope somebody can shed some light :-)

Cheers and thanks,
Fred

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



[appengine-java] Re: 1.3.8 Console Logging Issue

2010-10-29 Thread John Bito
Starred the issue:
http://code.google.com/p/googleappengine/issues/detail?id=3969

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



[appengine-java] Re: 1.3.8 Console Logging Issue

2010-10-29 Thread timzon
Same problem.

Issue logged: http://code.google.com/p/googleappengine/issues/detail?id=3969

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



[appengine-java] Re: Blobstore doesn't redirect

2010-10-29 Thread Carlos Gama
My servlet has a code to do the redirectthe problem is, my servlet
doesn't is called...the rewritten request to my app not is done...
In the browser I see a blank page with a URL like that "..._ah/upload/
AMmfu6Z6D8QpMK_Df3iu3eHmzMlKuPdN9j2luyvqv9NGnUw7afohVmnIhzlfgNfnG85QrgYQNqU_EYBHa7jLaTn7tVheR-
QLBQ/ALBNUaYATMrydwSc87ZlqBlrYlf44n4y-7gQeuDY/"

Log:
E - MyServlet doPost: null
W - Invalid HTTP response code (200) for Blob upload. Valid codes are
301, 302, and 303.


On Oct 29, 6:07 am, Pieter Coucke  wrote:
> Status code 200 is the default response code.  You need to do a redirect
> after uploading (this is status code 301 or 302).
>
> Seehttp://code.google.com/appengine/docs/java/blobstore/overview.html#Up...

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



[appengine-java] Re: Spring 3 + JPA

2010-10-29 Thread Sorvigolova
I finally fixed it. This error "Object with id "" is managed by a
different Object Manager" broke my app. I turned on transactions and
now everything works fine. If somebody need the sample app based on
Spring + Tiles + JSR-303 validation you can find it here (http://s-
sandbox.blogspot.com/2010/10/gae-spring-3-tiles-jsr-303.html). This
article is on Russian but there is a source code in the end if the
page.

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



[appengine-java] Re: Text enclosed with

2010-10-29 Thread Ian Marshall
The 500 character or byte limit (don't ask me which is correct) only
applies to persisting String objects in the datastore.

The whole point of the Text class is to allow us to store longer
String objects in the datastore! Test with a long string and you
should see that this works. Beware: Text contents cannot be indexed in
the datastore.


On Oct 28, 9:18 am, Michael  wrote:
> Yes that works! Thank you - I did see this method, but it says it
> returns a String, which I thought would be back to the less than 500
> characters
>
> On Oct 28, 8:52 am, Cyrille Vincey  wrote:
>
> > You should use the method Text.getValue()
>
>

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



Re: [appengine-java] Transforming Images from the Blobstore

2010-10-29 Thread Jeremy Blythe
After you've manipulated the image you need to write the new image back to
the Blobstore using an HTTP multi-part/formdata POST. You can do this with
the URLFetchService.

I do this on my site and have just put a new blog entry up about it here:
http://jeremyblythe.blogspot.com/2010/10/manipulating-images-in-blobstore.html


J.

On Fri, Oct 15, 2010 at 8:44 PM, davisnog  wrote:

> I got this example from the site:
> http://code.google.com/intl/en/appengine/docs/java/images/overview.html
>
> I'm using the API in this way:
>BlobKey blobKey = blobs.get("image");
>
>ImagesService imagesService =
> ImagesServiceFactory.getImagesService();
>Image oldImage =
> ImagesServiceFactory.makeImageFromBlob(blobKey);
>Transform resize = ImagesServiceFactory.makeResize(200,
> 300);
>
>Image newImage = imagesService.applyTransform(resize,
> oldImage);
>
>
>String urlimg = images.getServingUrl(newImage.getBlobKey());
>
> my .jsp
>
> 
>
>
> when I invoke the method:
>
> images.getServingUrl(newImage.getBlobKey());
>
> newImage.getBlobKey() is always null.
>
> I'm looking to manipulate the image and then return the image url.
>
> How could I be doing?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To post to this group, send email to
> google-appengine-j...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-appengine-java+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

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



[appengine-java] Re: Newly deployed app doesn’t se em always reflected on the server.

2010-10-29 Thread dilbert
I have similar issues. Sometimes I have to deploy twice in order for
the changes to be visible on the production server. It is really
annoying since it takes a lot of time if the project is large. I'm
using Idea to deploy so maybe it is an Idea issue. What are You using
to deploy?

On Oct 29, 2:17 am, nnhobbit  wrote:
> Is version number change necessary? If I deploy it with the same
> version number, shouldn’t the old one simply be replaced?
>
> The page is not cached and I’m not behind any proxy. I’m now thinking
> it’s more likely there’s a zombie process running?
>
> On Oct 16, 10:12 am, Benjamin  wrote:
>
> > are you changing the version number? You'd need to go to the console
> > and change the version that's being served.
>
> > Maybe you're caching behind a proxy or viewing a cached version on
> > your end? try loading the url in a browser and hit F5
>
> > On Oct 15, 4:21 pm, nnhobbit  wrote:
>
> > > I deployed an app, in which an URL was originally serving simply a
> > > “hello”. Later I changed the content served from that URL to something
> > > else and deployed it again. However the new content did not show up
> > > and the page still showed the original “hello”.
>
> > > Another (possibly related) issue I'm experiencing is that an URL that
> > > was removed from my code remained accessible for about a day or so
> > > after the new code was deployed. (The issue could be either from the
> > > delayed deployment or some sort of cache?)
>
> > > p.s. everything is working as expected on devel environment.
> > > p.s. admin console shows successful deployment.
>
> > > Anyone encountered similar issues? Any suggestions?
>
> > > Thanks
>
>

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



Re: [appengine-java] Blobstore doesn't redirect

2010-10-29 Thread Pieter Coucke
Status code 200 is the default response code.  You need to do a redirect
after uploading (this is status code 301 or 302).

See
http://code.google.com/appengine/docs/java/blobstore/overview.html#Uploading_a_Blob

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



[appengine-java] Re: How can I keep the data saved in JDO datastore?

2010-10-29 Thread l.denardo
Hello,
live data are persistent until you delete them, so backup is not a
real necessity. AppEngine has replicated servers to handle failures,
and they have proved to work very well (search the groups for "post
mortem" to see how outages were handled).

The bulk loader can be used to import, export and transform data
between apps, and to localhost.

If you experience live data loss (i.e. you cannot read data from your
previously deployed version) this is probably an app design issue.
I suggest you keep a separate app to test data model changes against
real data between deploying to your business app.

Maybe other users can suggest more tools to handle data
transformation.
regards
Lorenzo

On Oct 29, 1:44 am, qiwawa  wrote:
> Thanks Lorenzo. I'd prefer if Google AE can provide a way for us to
> back up the data and restore it back.
>
> An export/import tool will be the most useful and make me feel better
> that my data is safe.
>
> Is there a way to back it up?
>
> Thanks again.
>
> Q
>
> On Oct 28, 3:14 am, "l.denardo"  wrote:
>
> > Data are persistent across deploys.
> > You only need to keep the same name for the entities and have
> > compatible models.
> > If you cannot see old data, probably you have done changes to your
> > data model. Anyway, you should be able to see your application data
> > from the admin console (datastore viewer). This can help you determine
> > whether you are having trouble with data persistence or with changes
> > in your data model. You should see all your previously existing
> > entities.
>
> > If you mean "update local data to live servers", so you can use data
> > you produced on your local machine to initialize your app, there's a
> > tool called bulk loader. I never used it but there's an interesting
> > post on Ikai Lan's 
> > bloghttp://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-eng...
>
> > Regards
> > Lorenzo
>
> > On Oct 28, 2:23 am, qiwawa  wrote:
>
> > > Is this a non-issue at all? Anyone?
> > > Thank you.
>
> > > On Oct 26, 7:37 pm, qiwawa  wrote:
>
> > > > I wanted to keep the data when upgrading my app to a new version. How
> > > > can I do this?
>
> > > > Each time I upgrade it it looks like my data was lost. There is no way
> > > > in admin area that i can back up my data before upgrade.
>
> > > > Thanks.
>
> > > > Q

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