[appengine-java] Re: Discussion for Best Practices For App Engine With Example

2010-06-28 Thread djd
This is not quite an example, but a rather complete file listing,
along with specs And your question was?
Sorry I don't want to be negative, but your post is so long!

On Jun 27, 9:39 pm, RAVINDER MAAN rsmaan...@gmail.com wrote:
 Hello all
     I am working on a project which has following
 requirements.Actually this is not real project .I am used to work with
 relational DB`s and for future projects I want to use GAE.Through this
 project I just want to learn best ways to use GAE .
 It is basically implementation of discussion groups(Same as forums on
 different sites).In the website users can discuss different topics
 with friends and other users of the website.So I have to implement
 following features.
 1) User can have many friends.
 2) Each user can create multiple discussions.
 3) Each discussion will have participant in it.
 4) If there is any update in the discussion then participants of the
 discussion will get notifications.
 5) A user can observe his friends by adding them to his observed
 list.if an observed person creates any discussion a notification will
 be sent to his observers.
 6) Any user can view list of his observers and list of users he/she is
 observing.
 7) Every user can create his profile on website .He can put his
 picture ,title and tags.
 8) Every discussion will have profile on website .It will have
 picture ,title and tags.
 9) Any user of the website can search people or discussions based on
 the tags associated with the users and discussions.For example If user
 A has 3 tags in his profile like cooking,continental and Asian and
 user B has cooking and Asian in his tags and there is discussion named
 D1 on website which has tags continental and chines then if any user
 search for keyword continental user A and discussion D1 should come as
 search results.
 10) If a user has created a discussion all the participants of that
 discussion will be added to his work group.For example let us say
 there are 4 users A,B,C,D and A creates a discussion named D1 and add
 user B,C in it.then work group of A will have B and C in it. Work
 group of B will have A and C in it.Work group of C will have A and B
 in it.Now if user D creates discussion named D2 and add C as
 participant in it then work group of D will have C in it.work group of
 C  will now have A,B and D in it.In other words work group is list of
 all the users with whom a user is participating in any discussion.

 Its GUI will be as below
  1) After log in,  user Home page will be shown.On the home page there
 will be right bar and main content area.
 In the right bar we will show
     a) His 10 recent active friends along with link to see all his
 friends list and total count of his friends.
     b) His 10 recent discussions created by him with link to see list
 of all discussions created by him and total count of his discussions.
     c) 10 recent discussion in which he is participant with link to
 see list of all discussions in which he his participant and total
 count of his discussions.
    d) 10 recent active user to whom he is observing along with link to
 see list of all observed user and total count of user observed.
    f) 10 recent active user who are observing him along with link to
 see list of all his observers and total count of users observing.
    g) 10 recent active users from his work group along with link to
 see list of all the users in work group.(Work group is list of all the
 participants of all discussions in which user is participating) and
 total count of his work group.
 In the Main Content we will have
   a) Initially after log in it will display all the notifications of
 the user.
   b) If user click on any link in the right bar then result of that
 action will be displayed in main content.

 To implement this I have written following entities.I do not know
 whether it is the best way to do it .Please help me to know how we can
 improve this .

 I am planing to keep Discussion , Message , Workgroup , Notification
 in one entity group.

 package com.test;

 import java.io.Serializable;
 import java.util.Date;
 import java.util.HashSet;
 import java.util.Set;

 import javax.jdo.annotations.IdGeneratorStrategy;
 import javax.jdo.annotations.IdentityType;
 import javax.jdo.annotations.PersistenceCapable;
 import javax.jdo.annotations.Persistent;
 import javax.jdo.annotations.PrimaryKey;

 import com.google.appengine.api.datastore.Key;

 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 public class Discussion implements Serializable{
         private static final long serialVersionUID = -9115235415573154018L;

         @PrimaryKey
     @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
     private Key key;

     @Persistent
     private String title;

     @Persistent
     private String createdBy;

     @Persistent
     private Date creationDate;

         @Persistent
         private String profileImagePath;

         @Persistent(defaultFetchGroup = true)
         

Re: [appengine-java] Re: Discussion for Best Practices For App Engine With Example

2010-06-28 Thread Andrés Cerezo
You can share source code with a svn from eclipse, look at
http://www.youtube.com/watch?v=15jItreEX1M it's an installation and
investigate about svn and google codes.

2010/6/28 RAVINDER MAAN rsmaan...@gmail.com

 I am sorry for long post .But i just want to know about other peoples view
 on this .In a way I just want to know what is the best way to implement this
 specification.May be it can be example project for other people .
I am new to GAE so i dont know where to put its code and how to discuss
 it with other people.I am sorry for that can anyone suggest me the best way
 to discuss it with other people and how to share code ?
 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.comgoogle-appengine-java%2bunsubscr...@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: Limiting the number of requests per IP each minute

2010-06-28 Thread mscwd01
I assume my idea was the best anyone can come up with?

On Jun 27, 10:27 am, mscwd01 mscw...@gmail.com wrote:
 Hey,

 I am developing an app which awards users for visiting a specific
 link. However, I want to ensure this is not abused by people writing
 scripts to visit the link rather than manually viewing it.

 Is there a way to check how many times a specific IP address has
 accessed your application within the last minute and deny access if
 the visit count is higher than, say, 20.

 I guess I could use the memcache to insert the users IP (if they have
 not visited before), then on each subsequent visit check if the IP
 exists and if so increment the visit count. However, will this work if
 you have thousands of concurrent users?

 Is there a better way?

 Many 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.



[appengine-java] Documentation request: JDO inequality filter matching null values

2010-06-28 Thread Ian Marshall
I refer to the discussion thread entitled jdo inequality filter
matching null values of 18th May 2009:

 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/28210dae6923284b/21dede4d8c4e647c?lnk=gstq=null+value+inequality#21dede4d8c4e647c


I had the same trouble as J Robert Ray, examined the GAE/J query
documentation closely for any clues, and then found the above thread
where my issue is discussed satisfactorily. For your information, my
work-around was of the form:

  ... WHERE ... (dtDate  null)  (dtDate  p1)// p1 is a
parameter


which is very similar to J Robert Ray's work-around.

Is it possible for the GAE/J query documentation to be amended to
mention the treatment of null values in inequality filters as Max Ross
mentioned in the above thread, in order to save others time in the
future?

Regards,

Ian Marshall

-- 
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] a google app engine sample with objectify

2010-06-28 Thread KeremPekcabuk
Hi,

is there any google app engine sample application which use objectify ?

-- 
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: Google Plugin for Eclipse 3.6 is now available

2010-06-28 Thread Jason Parekh
On Fri, Jun 25, 2010 at 1:01 AM, Philippe Marschall 
philippe.marsch...@gmail.com wrote:



 On Jun 23, 11:14 pm, Jason Parekh jasonpar...@gmail.com wrote:
  Hey folks,
 
  Google Plugin for Eclipse 1.3.3 is out with support for Eclipse 3.6.
   Install it with Eclipse 3.6's new Eclipse Marketplace feature by going
 to
  Help  Eclipse Marketplace, and search for Google Plugin for Eclipse.
 
  Alternatively, here are the update sites:
  - Eclipse Helios (3.6):http://dl.google.com/eclipse/plugin/3.6
  - Eclipse Galileo (3.5):http://dl.google.com/eclipse/plugin/3.5
  - Eclipse Ganymede (3.4):http://dl.google.com/eclipse/plugin/3.4
  - Eclipse Europa (3.3):http://dl.google.com/eclipse/plugin/3.3
 
  Need detailed instructions?  Check out the quick start guide:
 http://code.google.com/eclipse/docs/getting_started.html

 I find it a bit strange that you have and update site for each and
 every eclipse version. Eclipse has a very strict API versioning policy
 and good tool support that make it easy to create a plugin that runs
 on multiple versions. What's the reason why you need to do this?


We've had to use internal Eclipse APIs for some of our features (two
examples are JSNI editing inside the Java editor and custom at-rules for
CssResource inside UiBinder XML templates.)  Unfortunately, with the use of
internal APIs comes future incompatibility issues, leading to our separate
GPE update site for each Eclipse release.

jason


 Cheers
 Philippe

 --
 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.comgoogle-appengine-java%2bunsubscr...@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] JDO delete objects

2010-06-28 Thread Lu
Hi,

How can I delete all the objects existed in the database? That means I
want my application to have a empty database everytime when it gets
started.

Is there anywhere actually we can see the content of the database?

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.



[appengine-java] Re: GAE Spring3 + Tiles 2- localhost works, appspot fail - Unable to the determine sourceType S and targetType T...

2010-06-28 Thread Pablo Henrique
I changed the repository name
http://github.com/phstc/spring-gae

Anyone have same problem?

On Jun 17, 11:16 pm, Pablo Henrique pabloh...@gmail.com wrote:
 Hello everybody,

 I tried to create spring blank app, with Spring MVC 3 + Tiles 2
 capabilities.

 This application is avaiable on githubhttp://github.com/phstc/SpringGAE

 In localhost with GAE eclipse plugin, this applications works fine,
 but when I try deploy on appspot I get

 org.springframework.web.servlet.FrameworkServlet initServletBean:
 Context initialization failed
 org.springframework.beans.factory.BeanCreationException: Error
 creating bean with name 'tilesViewResolver' defined in ServletContext
 resource [/WEB-INF/spring-app-servlet.xml]: Initialization of bean
 failed; nested exception is
 org.springframework.beans.factory.BeanExpressionException: Expression
 parsing failed; nested exception is
 java.lang.IllegalArgumentException: Unable to the determine sourceType
 S and targetType T which your ConverterS, T converts between;
 declare these generic types.
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
 519)
         at
 org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:
 450)
         at org.springframework.beans.factory.support.AbstractBeanFactory
 $1.getObject(AbstractBeanFactory.java:290)
         at
 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:
 222)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:
 287)
         at
 org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:
 189)
         at
 org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
 557)
         at
 org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
 842)
         at
 org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
 416)
         at
 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:
 443)
         at
 org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:
 459)
         at
 org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:
 340)
         at
 org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:
 307)
         at
 org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:
 127)
         at javax.servlet.GenericServlet.init(GenericServlet.java:215)
         at
 org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:
 440)
         at org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:
 263)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 50)
         at
 org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:
 685)
         at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
         at
 org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:
 1250)
         at
 org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:
 517)
         at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 467)
         at
 org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
 50)
         at
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java:
 191)
         at
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler(AppVersionHandlerMap.java:
 168)
         at
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
 123)
         at
 com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
 250)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
 $6.handleBlockingRequest(RuntimePb.java:5838)
         at com.google.apphosting.base.RuntimePb$EvaluationRuntime
 $6.handleBlockingRequest(RuntimePb.java:5836)
         at
 com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
 24)
         at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
 398)
         at com.google.net.rpc.impl.Server$2.run(Server.java:852)
         at
 com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
 56)
         at
 com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
 576)
         at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
         at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
         at
 

Re: [appengine-java] GWT Hosted Mode with App Engine

2010-06-28 Thread Jason Parekh
On Fri, Jun 25, 2010 at 1:48 PM, alexh alexanderhar...@gmail.com wrote:

 Hi,

 I am currently developing a GWT 2.0 application that will run on
 Google
 App Engine. I have chosen to use Maven and am running my application
 from the command line for debugging and testing.

 What I would like to do is run my application in the GWT 2.0 hosted
 environment
 but still initialize the App Engine runtime server. Can someone help
 me out
 with what I need to configure in order to make this happen? I'm
 currently using gwt-maven-plugin in my pom.xml. Any help with this
 would be greatly appreciated.

 I realize that the Google Plugin for Eclipse handles this seamlessly,
 but I have been unable to get it to cooperate with M2Eclipse and my
 Maven project.


Have you tried STS 2.3.3 M1?  That combined with GPE 1.4 M1 will let you use
Maven easily.  Check out
http://blog.springsource.com/2010/06/02/using-springsource-tool-suite-2-3-3-m1-with-roo-and-gwt/.

Alternatively, you can try installing the GPE 1.4 M1 into your existing
Eclipse (w/ m2eclipse).  See
http://code.google.com/eclipse/docs/download_1_4_m1.html .



 Thanks

 alex

 --
 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.comgoogle-appengine-java%2bunsubscr...@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] Another Blob to Image Question

2010-06-28 Thread nearmars
Hello
I'm building a servlet to display an image - nothing new here. The
problem I'm facing is that the image is being forced to download in
the browser instead of being displayed on the page. I've tested in
Chrome/Firefox and IE.
When the image is downloaded the file size is correct, but the file is
downloaded with the filename the same as the requesting page
(getimage). And the type application/octetstream. I do set the content
type in the getImage servlet.

The code steps:
0. Call the getimage servlet from jsp
1. retrieve the image info - blob and content type. The query uses the
current user to fetch the image from the datastore so on url params
are needed in this case.
2. Explicitly set the content type of the response
3. Write the blob as bytes into the output stream

The code:
#0. profile.jsp
img src=/getimage

#1-3 #Servlet_GetImage.java
public class Servlet_GetImage extends HttpServlet {
private static final Logger log =
Logger.getLogger(Servlet_GetImage.class.getName());

public void doGet(HttpServletRequest req, HttpServletResponse resp){
UserService userService = UserServiceFactory.getUserService();
User user = userService.getCurrentUser();
if(req.getParameter(imageId)==nulluser!=null){//we will 
fetch
the profile image - no imageId params are needed  the user must be
logged on
DS_ProfileImage myImage =
(DS_ProfileImage)ProfileImage.fetchImage(user);
if(myImage!=null){
try{

resp.setCharacterEncoding(myImage.getContentType());

resp.getOutputStream().write(myImage.getBlob().getBytes());
}
catch(Exception e){
log.warning(ERROR: +e.getMessage());
}
}
}
else{
//TODO: create a fetch image method for images other 
than Profile
images
}
}
}

-- 
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: Any ETA for a backup/restore facility?

2010-06-28 Thread François Masurel
I really would like to have a convenient backup/restore solution on
GAE too.

Anybody interested, please star the following issue :

http://code.google.com/p/googleappengine/issues/detail?id=776

On 28 juin, 13:16, mscwd01 mscw...@gmail.com wrote:
 Hey Google Employees,

 There has been a backup/restore facility on the roadmap for a while
 now. Can you let us know if and when we may get an in-built tool that
 will allow us to easily save the contents of the datastore to our
 local machines and restore it if needs be?

 In the meantime, what is the preferred solution to backup/restore our
 Java based apps?

 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.



[appengine-java] Java Heap Space Error, Correct Increasing Method?

2010-06-28 Thread Mike Dillon
Hello all,

Im working on a project that reads GTFS archives as part of its
functionality. When we are importing
a particular set of data that has ~60,000 entries my dev server locks
up around the 27,000 entry. The
error is the java heap space error. I would like to know if anyone has
successfully upped their heap
space. I searched, and found general instructions but after
implementing them I'm still failing around
the same entry. This is leading me to believe that my command line
args are not taking affect. Here
is what I have so far:

appengine-sdk-java/bin/dev_appserver.sh:
#!/bin/bash
# Launches the development AppServer
[ -z ${DEBUG} ] || set -x  # trace if $DEBUG env. var. is non-zero
SDK_BIN=`dirname $0 | sed -e s#^\\([^/]\\)#${PWD}/\\1#` # sed makes
absolute
SDK_LIB=$SDK_BIN/../lib
SDK_CONFIG=$SDK_BIN/../config/sdk
java -Xms1024m -Xmx1024m -ea -cp  $SDK_LIB/appengine-tools-api.jar \
  com.google.appengine.tools.KickStart \
  com.google.appengine.tools.development.DevAppServerMain $*

Is this correct?

Also the way we get our data is through a custom import function that
chunks the data into groups of 20
and then processes them and stores them into the datastore.  We are
only using one instance of the
persistance manager as per the recommendations to use a singleton
class. Each batch hits a servlet on
our app and then does its work. Should we close the persistence
manager after every batch is completed?
I'm wondering if this would be a memory leak.

Thanks,

-Mike

-- 
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: Any ETA for a backup/restore facility?

2010-06-28 Thread Mike Dillon
Mscwd01,

I'm not a google employee, but I have had success backing up our
datastore and then restoring our datastore with
the bulkloader utility. Currently the bulkloader is in the python sdk,
so all you need to do is download that and then
youll be able to do backups and restore from those backups.  Check out
the literature on the app engine, and try
a couple searches to get your bearings.  Nick Johnson has commented or
written every search result that comes
back when I was researching this a couple of weeks back, and there is
also an  I/O video on the bulkloader.

Make sure you read some of the fine print, i.e. one caveat is that you
must have had your datastore populated for
at least 12 hours which is the amount of time it takes for the
statistics info to be built. That what the bulkloader
works off of to do its datastore dump.

- Mike

On Jun 28, 7:16 am, mscwd01 mscw...@gmail.com wrote:
 Hey Google Employees,

 There has been a backup/restore facility on the roadmap for a while
 now. Can you let us know if and when we may get an in-built tool that
 will allow us to easily save the contents of the datastore to our
 local machines and restore it if needs be?

 In the meantime, what is the preferred solution to backup/restore our
 Java based apps?

 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.



[appengine-java] Re: Bulkupload int key?

2010-06-28 Thread Nate Bauernfeind
FWIW, I've been looking for a solution to this myself.

I generally need to automate and bulk uploads to my app on a daily
basis. Having any manual interaction to move the data will prevent my
goal from ever being reached.

So, the solution that I have found that seems to work is to create
your own bulk uploader via the FileUpload example from here:
http://code.google.com/appengine/kb/java.html#fileforms

And you can then use python's poster library to post files to your
app. You will still need to figure out how you want to handle
administrative privileges.

On May 21, 10:21 pm, Craig Berry cdbe...@gmail.com wrote:
 I have an xml file containing data which I wish to bulkupload to GAE.
 I am using the preview version of the new bulk uploader, if that
 matters. How do I include an int value for the __key__ derived from a
 field in the xml data? If I specify no import transform, like so

     - property: __key__
       external_name: id
       export_transform: transform.key_id_or_name_as_string

 it loads the key as a string 'name', so it sorts lexicographically
 rather than numerically. I want an int id instead. But I can't find
 what to put in as an import_transform to make this happen.

 Thanks in advance for any help on this.

 --
 Craig Berry -http://lapidum.org/home.html
 Magicians lie to the universe, and the
 universe believes them.  -- Lenore Berry

 --
 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 
 athttp://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: Google Plugin for Eclipse 3.6 is now available

2010-06-28 Thread Arian


On Jun 23, 11:14 pm, Jason Parekh jasonpar...@gmail.com wrote:
 Hey folks,

 Google Plugin for Eclipse 1.3.3 is out with support for Eclipse 3.6.
  Install it with Eclipse 3.6's new Eclipse Marketplace feature by going to
 Help  Eclipse Marketplace, and search for Google Plugin for Eclipse.

 Alternatively, here are the update sites:
 - Eclipse Helios (3.6):http://dl.google.com/eclipse/plugin/3.6
 - Eclipse Galileo (3.5):http://dl.google.com/eclipse/plugin/3.5
 - Eclipse Ganymede (3.4):http://dl.google.com/eclipse/plugin/3.4
 - Eclipse Europa (3.3):http://dl.google.com/eclipse/plugin/3.3

 Need detailed instructions?  Check out the quick start 
 guide:http://code.google.com/eclipse/docs/getting_started.html

 Enjoy!

I installed the plugin on Helios, but I don't see the project
templates, nor the deploy button, nor any button or function related
to Google web toolkit and appengine..

it seems like it fails to load the plugin or something :(

-- 
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: Java Heap Space Error, Correct Increasing Method?

2010-06-28 Thread Toby Reyelts
You need to supply --jvm_flag as a command-line argument to dev_appserver.sh
(aka KickStart), not to java.exe. That should work the same way for the ant,
dev_appserver/ task. (You can see this in config/user/ant-macros.xml).

On Mon, Jun 28, 2010 at 3:51 PM, Mike Dillon mikedillo...@gmail.com wrote:

 Another thing to consider. I'm not using eclipse, and I'm building and
 running the server with 'ant runserver'. I just realized that ant
 isn't calling
 dev_appserver.sh so I haven't been executing those args at all. When I
 use dev_appserver.sh to run my server it chokes on --jvm_flag but will
 run with just the -Xmx, however that has no affect.

 - Mike

 On Jun 28, 2:47 pm, Mike Dillon mikedillo...@gmail.com wrote:
  Thanks,
 
  Yes that is exactly whats going on, the linux box has 4gb of ram, my
  mac has 2gb...
 
  And yes I tried the --jvm_flag=-Xmx512m on my mac with no success.
 
  - Mike
 
  On Jun 28, 2:42 pm, Don Schwarz schwa...@google.com wrote:
 
 
 
   Have you tried --jvm_flag=-Xmxwhateverm on your Mac?  It should work
 there
   too.
 
   As for the Linux box, the default heap size is different depending on
   whether you have a server-class machine or not, so it is possible
 that you
   are seeing a much higher default heap size just by virtue of using a
 machine
   with more RAM or more processors.
 
   The -Xmx setting you added to dev_appserver.sh has no effect.  Your
 code is
   executed in a subprocess, which is why --jvm_flag must be used to pass
 Java
   args through to this process.
 
   On Mon, Jun 28, 2010 at 6:38 PM, Mike Dillon mikedillo...@gmail.com
 wrote:
Thanks Don,
 
I forgot to mention that I'm using a mac with the latest snow leopard
update. It seems that these heap space
commands are incorrect for my machine, because we just tested it on a
linux box and it works fine, even
without the --jvm_flag prefix.
 
Any ideas?
 
- Mike
 
On Jun 28, 1:18 pm, Don Schwarz schwa...@google.com wrote:
 I believe you want the following flag:
 
 --jvm_flag=-Xmx512m
 
 On Sun, Jun 27, 2010 at 3:13 PM, Mike Dillon 
 mikedillo...@gmail.com
wrote:
  Hello all,
 
  Im working on a project that reads GTFS archives as part of its
  functionality. When we are importing
  a particular set of data that has ~60,000 entries my dev server
 locks
  up around the 27,000 entry. The
  error is the java heap space error. I would like to know if
 anyone has
  successfully upped their heap
  space. I searched, and found general instructions but after
  implementing them I'm still failing around
  the same entry. This is leading me to believe that my command
 line
  args are not taking affect. Here
  is what I have so far:
 
  appengine-sdk-java/bin/dev_appserver.sh:
  #!/bin/bash
  # Launches the development AppServer
  [ -z ${DEBUG} ] || set -x  # trace if $DEBUG env. var. is
 non-zero
  SDK_BIN=`dirname $0 | sed -e s#^\\([^/]\\)#${PWD}/\\1#` # sed
 makes
  absolute
  SDK_LIB=$SDK_BIN/../lib
  SDK_CONFIG=$SDK_BIN/../config/sdk
  java -Xms1024m -Xmx1024m -ea -cp
  $SDK_LIB/appengine-tools-api.jar \
   com.google.appengine.tools.KickStart \
   com.google.appengine.tools.development.DevAppServerMain $*
 
  Is this correct?
 
  Also the way we get our data is through a custom import function
 that
  chunks the data into groups of 20
  and then processes them and stores them into the datastore.  We
 are
  only using one instance of the
  persistance manager as per the recommendations to use a singleton
  class. Each batch hits a servlet on
  our app and then does its work. Should we close the persistence
  manager after every batch is completed?
  I'm wondering if this would be a memory leak.
 
 I believe our documentation recommends storing the
PersistenceManagerFactory
 as a singleton, but using a new PersistenceManager each time
 (remembering
to
 close it before discarding).
 
 However, the local implementation of the datastore does keep
 everything
in
 memory (and simply flushes to disk periodically), so you will run
 into
size
 issues at some point.
 
--
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.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B
 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 

[appengine-java] Re: Java Heap Space Error, Correct Increasing Method?

2010-06-28 Thread Mike Dillon
Solved!

Okay here is a quick format for how to increase your java heap space:

If you are running your dev server by running ./dev_appserver.sh war
dir then do this:
#!/bin/bash
# Launches the development AppServer
[ -z ${DEBUG} ] || set -x  # trace if $DEBUG env. var. is non-zero
SDK_BIN=`dirname $0 | sed -e s#^\\([^/]\\)#${PWD}/\\1#` # sed makes
absolute
SDK_LIB=$SDK_BIN/../lib
SDK_CONFIG=$SDK_BIN/../config/sdk
java -ea -cp  $SDK_LIB/appengine-tools-api.jar \
  com.google.appengine.tools.KickStart \
  com.google.appengine.tools.development.DevAppServerMain --jvm_flag=-
Xmxmem size here $*

*** Notice where the --jvm_flag is !

If you are using ant runserver then you need to edit appengine-sdk-
java/config/user/ang-macros.xml :
Find this, and add an arg value:
 macrodef name=dev_appserver description=Runs the App Engine
Development App Server
attribute name=war description=The exploded war directory
containing the application/
attribute name=port default=8080 description=The port the
server starts on/
attribute name=address default=localhost description=The
interface the server binds to/
element name=options optional=true description=Additional
options for dev_appserver/
element name=args optional=true description=Additional
arguments for the java task/

sequential
  java classname=com.google.appengine.tools.KickStart
classpath=${appengine.tools.classpath}
fork=true failonerror=true
arg
value=com.google.appengine.tools.development.DevAppServerMain/
arg value=--po...@{port}/
arg value=--addre...@{address}/
arg value=--jvm_flag=-Xmxmem size here/
options/
arg value=@{war}/
args/
  /java
/sequential
  /macrodef


Thanks for the help Don.

- Mike

On Jun 28, 3:51 pm, Mike Dillon mikedillo...@gmail.com wrote:
 Another thing to consider. I'm not using eclipse, and I'm building and
 running the server with 'ant runserver'. I just realized that ant
 isn't calling
 dev_appserver.sh so I haven't been executing those args at all. When I
 use dev_appserver.sh to run my server it chokes on --jvm_flag but will
 run with just the -Xmx, however that has no affect.

 - Mike

 On Jun 28, 2:47 pm, Mike Dillon mikedillo...@gmail.com wrote:



  Thanks,

  Yes that is exactly whats going on, the linux box has 4gb of ram, my
  mac has 2gb...

  And yes I tried the --jvm_flag=-Xmx512m on my mac with no success.

  - Mike

  On Jun 28, 2:42 pm, Don Schwarz schwa...@google.com wrote:

   Have you tried --jvm_flag=-Xmxwhateverm on your Mac?  It should work 
   there
   too.

   As for the Linux box, the default heap size is different depending on
   whether you have a server-class machine or not, so it is possible that 
   you
   are seeing a much higher default heap size just by virtue of using a 
   machine
   with more RAM or more processors.

   The -Xmx setting you added to dev_appserver.sh has no effect.  Your code 
   is
   executed in a subprocess, which is why --jvm_flag must be used to pass 
   Java
   args through to this process.

   On Mon, Jun 28, 2010 at 6:38 PM, Mike Dillon mikedillo...@gmail.com 
   wrote:
Thanks Don,

I forgot to mention that I'm using a mac with the latest snow leopard
update. It seems that these heap space
commands are incorrect for my machine, because we just tested it on a
linux box and it works fine, even
without the --jvm_flag prefix.

Any ideas?

- Mike

On Jun 28, 1:18 pm, Don Schwarz schwa...@google.com wrote:
 I believe you want the following flag:

 --jvm_flag=-Xmx512m

 On Sun, Jun 27, 2010 at 3:13 PM, Mike Dillon mikedillo...@gmail.com
wrote:
  Hello all,

  Im working on a project that reads GTFS archives as part of its
  functionality. When we are importing
  a particular set of data that has ~60,000 entries my dev server 
  locks
  up around the 27,000 entry. The
  error is the java heap space error. I would like to know if anyone 
  has
  successfully upped their heap
  space. I searched, and found general instructions but after
  implementing them I'm still failing around
  the same entry. This is leading me to believe that my command line
  args are not taking affect. Here
  is what I have so far:

  appengine-sdk-java/bin/dev_appserver.sh:
  #!/bin/bash
  # Launches the development AppServer
  [ -z ${DEBUG} ] || set -x  # trace if $DEBUG env. var. is non-zero
  SDK_BIN=`dirname $0 | sed -e s#^\\([^/]\\)#${PWD}/\\1#` # sed 
  makes
  absolute
  SDK_LIB=$SDK_BIN/../lib
  SDK_CONFIG=$SDK_BIN/../config/sdk
  java -Xms1024m -Xmx1024m -ea -cp  
  $SDK_LIB/appengine-tools-api.jar \
   com.google.appengine.tools.KickStart \
   com.google.appengine.tools.development.DevAppServerMain $*

  Is this correct?

  Also the way we get our data is through a custom import function 
  that
  chunks the data 

[appengine-java] Re: Java Heap Space Error, Correct Increasing Method?

2010-06-28 Thread Mike Dillon
Thanks Toby, I had figured this out before you replied but didn't
refresh the page before I posted my solution. I appreciate the help!

On Jun 28, 3:59 pm, Toby Reyelts to...@google.com wrote:
 You need to supply --jvm_flag as a command-line argument to dev_appserver.sh
 (aka KickStart), not to java.exe. That should work the same way for the ant,
 dev_appserver/ task. (You can see this in config/user/ant-macros.xml).



 On Mon, Jun 28, 2010 at 3:51 PM, Mike Dillon mikedillo...@gmail.com wrote:
  Another thing to consider. I'm not using eclipse, and I'm building and
  running the server with 'ant runserver'. I just realized that ant
  isn't calling
  dev_appserver.sh so I haven't been executing those args at all. When I
  use dev_appserver.sh to run my server it chokes on --jvm_flag but will
  run with just the -Xmx, however that has no affect.

  - Mike

  On Jun 28, 2:47 pm, Mike Dillon mikedillo...@gmail.com wrote:
   Thanks,

   Yes that is exactly whats going on, the linux box has 4gb of ram, my
   mac has 2gb...

   And yes I tried the --jvm_flag=-Xmx512m on my mac with no success.

   - Mike

   On Jun 28, 2:42 pm, Don Schwarz schwa...@google.com wrote:

Have you tried --jvm_flag=-Xmxwhateverm on your Mac?  It should work
  there
too.

As for the Linux box, the default heap size is different depending on
whether you have a server-class machine or not, so it is possible
  that you
are seeing a much higher default heap size just by virtue of using a
  machine
with more RAM or more processors.

The -Xmx setting you added to dev_appserver.sh has no effect.  Your
  code is
executed in a subprocess, which is why --jvm_flag must be used to pass
  Java
args through to this process.

On Mon, Jun 28, 2010 at 6:38 PM, Mike Dillon mikedillo...@gmail.com
  wrote:
 Thanks Don,

 I forgot to mention that I'm using a mac with the latest snow leopard
 update. It seems that these heap space
 commands are incorrect for my machine, because we just tested it on a
 linux box and it works fine, even
 without the --jvm_flag prefix.

 Any ideas?

 - Mike

 On Jun 28, 1:18 pm, Don Schwarz schwa...@google.com wrote:
  I believe you want the following flag:

  --jvm_flag=-Xmx512m

  On Sun, Jun 27, 2010 at 3:13 PM, Mike Dillon 
  mikedillo...@gmail.com
 wrote:
   Hello all,

   Im working on a project that reads GTFS archives as part of its
   functionality. When we are importing
   a particular set of data that has ~60,000 entries my dev server
  locks
   up around the 27,000 entry. The
   error is the java heap space error. I would like to know if
  anyone has
   successfully upped their heap
   space. I searched, and found general instructions but after
   implementing them I'm still failing around
   the same entry. This is leading me to believe that my command
  line
   args are not taking affect. Here
   is what I have so far:

   appengine-sdk-java/bin/dev_appserver.sh:
   #!/bin/bash
   # Launches the development AppServer
   [ -z ${DEBUG} ] || set -x  # trace if $DEBUG env. var. is
  non-zero
   SDK_BIN=`dirname $0 | sed -e s#^\\([^/]\\)#${PWD}/\\1#` # sed
  makes
   absolute
   SDK_LIB=$SDK_BIN/../lib
   SDK_CONFIG=$SDK_BIN/../config/sdk
   java -Xms1024m -Xmx1024m -ea -cp
   $SDK_LIB/appengine-tools-api.jar \
    com.google.appengine.tools.KickStart \
    com.google.appengine.tools.development.DevAppServerMain $*

   Is this correct?

   Also the way we get our data is through a custom import function
  that
   chunks the data into groups of 20
   and then processes them and stores them into the datastore.  We
  are
   only using one instance of the
   persistance manager as per the recommendations to use a singleton
   class. Each batch hits a servlet on
   our app and then does its work. Should we close the persistence
   manager after every batch is completed?
   I'm wondering if this would be a memory leak.

  I believe our documentation recommends storing the
 PersistenceManagerFactory
  as a singleton, but using a new PersistenceManager each time
  (remembering
 to
  close it before discarding).

  However, the local implementation of the datastore does keep
  everything
 in
  memory (and simply flushes to disk periodically), so you will run
  into
 size
  issues at some point.

 --
 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.comgoogle-appengine-java%2B
  unsubscr...@googlegroups.comgoogle-appengine-java%2B
  unsubscr...@googlegroups.com
 .
 For more options, visit this 

Re: [appengine-java] Re: Discussion for Best Practices For App Engine With Example

2010-06-28 Thread RAVINDER MAAN
I have set up this project at http://code.google.com/p/forumdiscussion/
Please look at it and let me know if I need to change something.



2010/6/28 Andrés Cerezo acerezoguil...@gmail.com

 You can share source code with a svn from eclipse, look at
 http://www.youtube.com/watch?v=15jItreEX1M it's an installation and
 investigate about svn and google codes.

 2010/6/28 RAVINDER MAAN rsmaan...@gmail.com

 I am sorry for long post .But i just want to know about other peoples view
 on this .In a way I just want to know what is the best way to implement this
 specification.May be it can be example project for other people .
I am new to GAE so i dont know where to put its code and how to discuss
 it with other people.I am sorry for that can anyone suggest me the best way
 to discuss it with other people and how to share code ?
 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.comgoogle-appengine-java%2bunsubscr...@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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Regards,
Ravinder Singh Maan

-- 
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: Another Blob to Image Question

2010-06-28 Thread nearmars
I found the problem.
Doh, setCharacterEncoding != setContentType.

-- 
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: Discussion for Best Practices For App Engine With Example

2010-06-28 Thread Jake
Hey all,

I've seen a lot of posts like this that are overwhelmed with getters/
setters.  I wonder why more people haven't started to use lombok?
http://projectlombok.org/  It is, by far, the best tool I've found
when programming Java.  I'm just wondering why it's not more commonly
used.

Jake

On Jun 28, 5:02 pm, RAVINDER MAAN rsmaan...@gmail.com wrote:
 I have set up this project athttp://code.google.com/p/forumdiscussion/
 Please look at it and let me know if I need to change something.

 2010/6/28 Andrés Cerezo acerezoguil...@gmail.com



  You can share source code with a svn from eclipse, look at
 http://www.youtube.com/watch?v=15jItreEX1Mit's an installation and
  investigate about svn and google codes.

  2010/6/28 RAVINDER MAAN rsmaan...@gmail.com

  I am sorry for long post .But i just want to know about other peoples view
  on this .In a way I just want to know what is the best way to implement 
  this
  specification.May be it can be example project for other people .
     I am new to GAE so i dont know where to put its code and how to discuss
  it with other people.I am sorry for that can anyone suggest me the best way
  to discuss it with other people and how to share code ?
  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.comgoogle-appengine-java%2bunsubscr...@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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

 --
 Regards,
 Ravinder Singh Maan

-- 
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: Any ETA for a backup/restore facility?

2010-06-28 Thread mscwd01
Thanks for your replying guys, it would be great if we could get an
official Google response to update us on this as well though!

I'll definitely have a look at the Bulk Loader in the meantime...

On Jun 28, 1:52 pm, Mike Dillon mikedillo...@gmail.com wrote:
 Mscwd01,

 I'm not a google employee, but I have had success backing up our
 datastore and then restoring our datastore with
 the bulkloader utility. Currently the bulkloader is in the python sdk,
 so all you need to do is download that and then
 youll be able to do backups and restore from those backups.  Check out
 the literature on the app engine, and try
 a couple searches to get your bearings.  Nick Johnson has commented or
 written every search result that comes
 back when I was researching this a couple of weeks back, and there is
 also an  I/O video on the bulkloader.

 Make sure you read some of the fine print, i.e. one caveat is that you
 must have had your datastore populated for
 at least 12 hours which is the amount of time it takes for the
 statistics info to be built. That what the bulkloader
 works off of to do its datastore dump.

 - Mike

 On Jun 28, 7:16 am, mscwd01 mscw...@gmail.com wrote:



  Hey Google Employees,

  There has been a backup/restore facility on the roadmap for a while
  now. Can you let us know if and when we may get an in-built tool that
  will allow us to easily save the contents of the datastore to our
  local machines and restore it if needs be?

  In the meantime, what is the preferred solution to backup/restore our
  Java based apps?

  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.



[appengine-java] Application restart for almost every request? What happened?

2010-06-28 Thread opok
Error Message: 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 App just read a cache string with small size (if not exist query
from database) and then output the response, why it always turns out
that it need to restart the whole application? It happens in 95% of
incoming requests.

-- 
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: JDO delete objects

2010-06-28 Thread Didier Durand
Hi Lu,

You can see the content of the database and delete it all from the App
Engine Console

https://appengine.google.com/dashboard?app_id=yourappid [Adapt
yourappid to yours] and then go to Datastore Viewer or Datastore
Statistics

regards
didier

On Jun 28, 4:56 pm, Lu chenglu.annal...@gmail.com wrote:
 Hi,

 How can I delete all the objects existed in the database? That means I
 want my application to have a empty database everytime when it gets
 started.

 Is there anywhere actually we can see the content of the database?

 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.



[appengine-java] Re: Google Plugin for Eclipse 3.6 is now available

2010-06-28 Thread Philippe Marschall


On Jun 28, 4:10 pm, Jason Parekh jasonpar...@gmail.com wrote:
 On Fri, Jun 25, 2010 at 1:01 AM, Philippe Marschall 



 philippe.marsch...@gmail.com wrote:

  On Jun 23, 11:14 pm, Jason Parekh jasonpar...@gmail.com wrote:
   Hey folks,

   Google Plugin for Eclipse 1.3.3 is out with support for Eclipse 3.6.
    Install it with Eclipse 3.6's new Eclipse Marketplace feature by going
  to
   Help  Eclipse Marketplace, and search for Google Plugin for Eclipse.

   Alternatively, here are the update sites:
   - Eclipse Helios (3.6):http://dl.google.com/eclipse/plugin/3.6
   - Eclipse Galileo (3.5):http://dl.google.com/eclipse/plugin/3.5
   - Eclipse Ganymede (3.4):http://dl.google.com/eclipse/plugin/3.4
   - Eclipse Europa (3.3):http://dl.google.com/eclipse/plugin/3.3

   Need detailed instructions?  Check out the quick start guide:
 http://code.google.com/eclipse/docs/getting_started.html

  I find it a bit strange that you have and update site for each and
  every eclipse version. Eclipse has a very strict API versioning policy
  and good tool support that make it easy to create a plugin that runs
  on multiple versions. What's the reason why you need to do this?

 We've had to use internal Eclipse APIs for some of our features (two
 examples are JSNI editing inside the Java editor and custom at-rules for
 CssResource inside UiBinder XML templates.)  Unfortunately, with the use of
 internal APIs comes future incompatibility issues, leading to our separate
 GPE update site for each Eclipse release.

IC, thanks for the explanation.

Cheers
Philippe

-- 
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: Discussion for Best Practices For App Engine With Example

2010-06-28 Thread RAVINDER MAAN
Hi Jake
   Thanks .I was not aware about this project .I watched introductory video
and It seems great.Thanks .

On Tue, Jun 29, 2010 at 3:48 AM, Jake jbrooko...@cast.org wrote:

 Hey all,

 I've seen a lot of posts like this that are overwhelmed with getters/
 setters.  I wonder why more people haven't started to use lombok?
 http://projectlombok.org/  It is, by far, the best tool I've found
 when programming Java.  I'm just wondering why it's not more commonly
 used.

 Jake

 On Jun 28, 5:02 pm, RAVINDER MAAN rsmaan...@gmail.com wrote:
  I have set up this project athttp://code.google.com/p/forumdiscussion/
  Please look at it and let me know if I need to change something.
 
  2010/6/28 Andrés Cerezo acerezoguil...@gmail.com
 
 
 
   You can share source code with a svn from eclipse, look at
  http://www.youtube.com/watch?v=15jItreEX1Mit'shttp://www.youtube.com/watch?v=15jItreEX1Mit%27san
   installation and
   investigate about svn and google codes.
 
   2010/6/28 RAVINDER MAAN rsmaan...@gmail.com
 
   I am sorry for long post .But i just want to know about other peoples
 view
   on this .In a way I just want to know what is the best way to
 implement this
   specification.May be it can be example project for other people .
  I am new to GAE so i dont know where to put its code and how to
 discuss
   it with other people.I am sorry for that can anyone suggest me the
 best way
   to discuss it with other people and how to share code ?
   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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  --
  Regards,
  Ravinder Singh Maan

 --
 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Regards,
Ravinder Singh Maan

-- 
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.