[appengine-java] Re: Query on date

2011-05-05 Thread captain
Check out this link

http://www.java2s.com/Code/Java/JPA/DateTypeParameter.htm

Regards
Captain


On May 4, 9:14 pm, Ramesh ramesh.v1...@gmail.com wrote:
 Hi all,
 Even after searching i am not able to see any correct answer on how to
 work with GAE java dates.

 My Model:
 /**
  */
 @Entity
 @Table(name = testDetail)
 public class TestDetail {

         /**
          *
          */
         private static final long serialVersionUID = 1L;

         /**
      */
     @Column(name = spreadSheetName, length = 2000, nullable = false)
     private String spreadSheetName;

    /**
      * The date the entity was created.
      */
     @Column(name = created_on, nullable = false)
     @Temporal(TemporalType.TIMESTAMP)
     private Date createdOn;

     /**
      * The date the entity was last modified.
      */
     @Column(name = modified_on, nullable = false)
     @Temporal(TemporalType.TIMESTAMP)
     private Date modifiedOn;

     /**
      */
     @Column(name = id, nullable = false)
     @GeneratedValue(strategy=GenerationType.SEQUENCE)
     @Id
     private Long id;

     //all setters and getters

 }

 And the dates in GAE datastore is stored in this format Sat Apr 23
 18:25:28 UTC 2011

 I am using JPA and my dao looks like this

 public class TestDetailDaoImpl extends JpaDaoSupport {

         @Autowired
         public TestDetailDaoImpl(EntityManagerFactory entityManagerFactory){
                 setEntityManagerFactory(entityManagerFactory);
         }

         public ListTestDetailDetail findAllByDate(Date fromDate, Date
 toDate) {
                 ListTestDetail testDetailList=null;//ListObject[]
                 try{
                         String query=Select  from 
 +TestDetail.class.getName()+ where
 createdOn=+fromDate.getTime()+ and createdOn +toDate.getTime()
 +;
                         log.info(query);
                         testDetailList=getJpaTemplate().find(query);
                         log.info(testDetailList:+testDetailList);
                 }
                 catch(RuntimeException re){
                         re.printStackTrace();
                         throw re;
                 }
                 return testDetailList;
         }

 }

 The above findAllByDate method always returns zero rows, even it has
 data valid in it.

 Can any one please tell me how should i handle dates in java.
 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-java@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: A couple of datastore questions!

2011-05-05 Thread captain

Went thru the same issues. Im also using unowned relationships as a
workaround

You are not alone ;-)

Captain
On May 4, 5:32 am, Muhammad Ijaz Khan aija...@gmail.com wrote:
 so no other way?

 On Wed, May 4, 2011 at 12:08 AM, Muhammad Ijaz Khan 
 aija...@gmail.comwrote: This is exactly what I am doing for now but was 
 wondering if there is a
  better way and better way of loading the actual object from key. Thanks for
  your comment as it reduced my loneliness :)

  On Wed, May 4, 2011 at 12:03 AM, Luca Matteis lmatt...@gmail.com wrote:

  Owned relationships are a bit weird in my opinion. I was having your
  same issue. I had a `MyImage` class that was defined inside two
  different classes. This didn't work... I didn't quite understand why
  and so to avoid all weirdness I decided that for more complex
  relationship cases I would always use unowned relationships (defining
  the Key of the reference object instead of the object itself).

  So I only use owned relationships when the child object can only exist
  under 1 (and only 1) parent.

  Hope this helped... it's only what I experienced... I'm not a JDO expert.

     Luca

  On Tue, May 3, 2011 at 10:51 PM, Muhammad Ijaz Khan aija...@gmail.com
  wrote:
   Hi,
   I am building an application and have used JDO for datastore for
   implementing use cases. Now when I am implementing the backend machine
  which
   is a bit complex in relationships among objects then I am facing hard
  times
   with JDO (May be due to lack of my knowledge). I have following
  questions to
   ask,
   1. Can I use reference of objects in more than one classes? For example,
   Class A is persistent and being used as foreign key in Class B and Class
  C.
   Do I need to create unowned relationships through Key or can I use some
   annotation (or something) to mark a field of type A as foreign key? When
  I
   make a field of type A in class B, and assign an object of class A to
  it, it
   is stored as new object as child of B :s
   2. Can I use objectify for this use case only (mixing with jdo) and will
  it
   simplify stuff or not, any experience comment?
   Thanks in advance.
   regards
   Ijaz

   --
   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-java@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-java@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-java@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: Stripes + UrlBinding + Google App Engine

2011-05-05 Thread rml
Hi,

I use Stripes and DynamicMappingFilter on GAE production without
issues.

Here's the Stripes related part of my web.xml:

filter
display-nameStripes Filter/display-name
filter-nameStripesFilter/filter-name
filter-classnet.sourceforge.stripes.controller.StripesFilter/
filter-class
!-- have some Stripes init params here --
/filter

filter
filter-nameDynamicMappingFilter/filter-name
filter-
classnet.sourceforge.stripes.controller.DynamicMappingFilter/filter-
class
/filter

filter-mapping
filter-nameDynamicMappingFilter/filter-name
url-pattern/*/url-pattern
url-pattern/_ah/mail/*/url-pattern
dispatcherREQUEST/dispatcher
dispatcherFORWARD/dispatcher
dispatcherINCLUDE/dispatcher
/filter-mapping

As you can see I don't use mapping for Stripes filter (setup long time
ago, don't remember why).

I hope this helps.

Radomir




On May 4, 6:45 pm, Pauli Savolainen savolainen.pa...@gmail.com
wrote:
 Hello

 I am developing a Stripes webapp with Google App Engine. I have run into a
 problem trying to implement clean URLs using Stripes' UrlBinding annotation
 and the DynamicMappingFilter.

 I have configured my action to answer to URL /hoblaa i.e. I have a
 @UrlBinding('/hoblaa) in my ActionBean. This result apparently in some
 sort of a redirect loop. The address bar looks like this
 /hoblaa/;jsessionid=lr9opztbd98s and the page could not
 be served.

 ActionBeans without the @UrlBinding work as expected.

 Also, what strikes me odd, is that in my development environment (running
 the app locally on eclipse) the @UrlBinding works OK and /hoblaa does what
 it is expected to.

 The DynamicMappingFilter document says that checks for 404 and then tries to
 find appropriate ActionBean for the URL. Could it be that App Engine does
 not like this sort of a method?

 My filter/servlet mappings in the web.xml are (ommitted the servlet and
 filter declarations):
   servlet-mapping
       servlet-nameDispatcherServlet/servlet-name
       url-pattern*.action/url-pattern
   /servlet-mapping
   filter-mapping
     filter-nameStripesFilter/filter-name
     url-pattern*.jsp/url-pattern
     dispatcherREQUEST/dispatcher
     dispatcherFORWARD/dispatcher
   /filter-mapping
   filter-mapping
     filter-nameStripesFilter/filter-name
     servlet-nameDispatcherServlet/servlet-name
     dispatcherREQUEST/dispatcher
     dispatcherFORWARD/dispatcher
   /filter-mapping
   filter-mapping
     filter-nameDynamicMappingFilter/filter-name
     url-pattern/*/url-pattern
     dispatcherREQUEST/dispatcher
     dispatcherFORWARD/dispatcher
     dispatcherINCLUDE/dispatcher
   /filter-mapping

 I would greatly appreciate some insight on this. Is it an App Engine
 specific issue or have I configure something wrong? I don't think I have
 misconfigured anything since all is fine in development environment, but who
 knows.

 Thanks
 Pauli Savolainen

-- 
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-java@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] Can an app request external webpages?

2011-05-05 Thread Luke Waldron
I have created a servlet which requests a webpage, parses the html and 
retrieves information from it.
This works fine locally. However when I deploy the application it doesn't 
retrieve the webpage.
Can anyone tell me what might be the problem?

-- 
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-java@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: Can an app request external webpages?

2011-05-05 Thread Didier Durand
Hi,

To get the page, do you use the specific URL Fetch service that is
part of the gae sdk ?

See http://code.google.com/appengine/docs/java/urlfetch/overview.html

If not, may be the source of your issue.

regards

didier

On May 5, 1:22 pm, Luke Waldron therabidw...@gmail.com wrote:
 I have created a servlet which requests a webpage, parses the html and
 retrieves information from it.
 This works fine locally. However when I deploy the application it doesn't
 retrieve the webpage.
 Can anyone tell me what might be the problem?

-- 
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-java@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] Query on child list

2011-05-05 Thread pavb
Hello

I would like to know if it is possible to make query with constraints
on the number of childs.
My model represents a user and his evaluations, I have a parent /
child relationship between them.
In my user class I have a ListKey which represents the links but how
to filter on it?
I would like to be able to retreive only the user who have at least 2
evaluations for example.

Thanks for your help

Pa

-- 
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-java@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] Help Me..!

2011-05-05 Thread Felipe Teixeira
try Put in folder lib , docList API and SpreedSheet API , later make the
build path.

java.lang.NoClassDefFoundError: com/google/gdata/client/spreadsheet/
SpreadsheetService

This error talk :SpreadsheetService not found...

bye

2011/5/5 Rambo 

 Hi Friends...!

   Am trying to use spreadsheet service in the servlet but am
 getting error
 Here i gave code and the error msg...


 package guestbook;

 import java.io.*;
 import java.net.URL;

 import javax.servlet.http.*;
 import com.google.gdata.client.spreadsheet.SpreadsheetService;
 import com.google.gdata.data.spreadsheet.SpreadsheetFeed;

 @SuppressWarnings(serial)
 public class GuestbookServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse
 resp)
  throws IOException {
//SpreadsheetService service=new SpreadsheetService(sample);
String[] spreadsheet_name = null;
PrintWriter out=resp.getWriter();

com.google.gdata.data.spreadsheet.SpreadsheetEntry entry=null;
SpreadsheetService service = new
 SpreadsheetService(Sample);
try
{
service.setUserCredentials(
 ramkumarpec...@gmail.com,
 october87);
URL metafeedUrl = new URL(
 https://spreadsheets.google.com/feeds/
 spreadsheets/private/full);
SpreadsheetFeed feed = service.getFeed(metafeedUrl,
 SpreadsheetFeed.class);

  java.util.Listcom.google.gdata.data.spreadsheet.SpreadsheetEntry
 spreadsheets = feed.getEntries();
for (int i = 0; i  spreadsheets.size(); i++)
{
entry = spreadsheets.get(i);

  spreadsheet_name[i]=entry.getTitle().getPlainText();

  //if(spreadsheet_name[i].contains(input_file))
//{
out.println(\t +
 spreadsheet_name[i]);
//  break;
//}
}
}
catch(Exception e)
{
System.out.println(Exception +e);
}


}

 }



 And the error msg is


 HTTP ERROR 500

 Problem accessing /guestbook. Reason:

com/google/gdata/client/spreadsheet/SpreadsheetService
 Caused by:

 java.lang.NoClassDefFoundError: com/google/gdata/client/spreadsheet/
 SpreadsheetService
at guestbook.GuestbookServlet.doGet(GuestbookServlet.java:30)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 511)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1166)
at

 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 58)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at

 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 122)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1157)
at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 388)
at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 182)
at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 418)
at

 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:351)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
 org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
at org.mortbay.jetty.HttpConnection
 $RequestHandler.headerComplete(HttpConnection.java:923)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
 org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:
 409)
at org.mortbay.thread.QueuedThreadPool
 $PoolThread.run(QueuedThreadPool.java:582)


 Whats wrong 

[appengine-java] Re: Help Me..!

2011-05-05 Thread Rambo
Thank you Mr.Felipe but already i included those api's.

On May 5, 6:50 pm, Felipe Teixeira
felipe.teixe...@ipnetsolucoes.com.br wrote:
 try Put in folder lib , docList API and SpreedSheet API , later make the
 build path.

 java.lang.NoClassDefFoundError: com/google/gdata/client/spreadsheet/
 SpreadsheetService

 This error talk :SpreadsheetService not found...

 bye

 2011/5/5 Rambo 









  Hi Friends...!

        Am trying to use spreadsheet service in the servlet but am
  getting error
  Here i gave code and the error msg...

  package guestbook;

  import java.io.*;
  import java.net.URL;

  import javax.servlet.http.*;
  import com.google.gdata.client.spreadsheet.SpreadsheetService;
  import com.google.gdata.data.spreadsheet.SpreadsheetFeed;

  @SuppressWarnings(serial)
  public class GuestbookServlet extends HttpServlet {
     public void doGet(HttpServletRequest req, HttpServletResponse
  resp)
               throws IOException {
         //SpreadsheetService service=new SpreadsheetService(sample);
         String[] spreadsheet_name = null;
         PrintWriter out=resp.getWriter();

         com.google.gdata.data.spreadsheet.SpreadsheetEntry entry=null;
                 SpreadsheetService service = new
  SpreadsheetService(Sample);
                 try
                 {
                         service.setUserCredentials(
  ramkumarpec...@gmail.com,
  october87);
                         URL metafeedUrl = new URL(
 https://spreadsheets.google.com/feeds/
  spreadsheets/private/full);
                         SpreadsheetFeed feed = service.getFeed(metafeedUrl,
  SpreadsheetFeed.class);

   java.util.Listcom.google.gdata.data.spreadsheet.SpreadsheetEntry
  spreadsheets = feed.getEntries();
                         for (int i = 0; i  spreadsheets.size(); i++)
                         {
                                 entry = spreadsheets.get(i);

   spreadsheet_name[i]=entry.getTitle().getPlainText();

   //if(spreadsheet_name[i].contains(input_file))
                                 //{
                                         out.println(\t +
  spreadsheet_name[i]);
                                 //      break;
                                 //}
                         }
                 }
                 catch(Exception e)
                 {
                         System.out.println(Exception +e);
                 }

     }

  }

  And the error msg is

  HTTP ERROR 500

  Problem accessing /guestbook. Reason:

     com/google/gdata/client/spreadsheet/SpreadsheetService
  Caused by:

  java.lang.NoClassDefFoundError: com/google/gdata/client/spreadsheet/
  SpreadsheetService
         at guestbook.GuestbookServlet.doGet(GuestbookServlet.java:30)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
         at
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
  511)
         at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1166)
         at

  com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFi 
  lter.java:
  58)
         at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
         at

  com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans 
  actionCleanupFilter.java:
  43)
         at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
         at

  com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFile 
  Filter.java:
  122)
         at org.mortbay.jetty.servlet.ServletHandler
  $CachedChain.doFilter(ServletHandler.java:1157)
         at
  org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
  388)
         at
  org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
  216)
         at
  org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
  182)
         at
  org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
  765)
         at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
  418)
         at

  com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEn 
  gineWebAppContext.java:
  70)
         at
  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
  152)
         at com.google.appengine.tools.development.JettyContainerService
  $ApiProxyHandler.handle(JettyContainerService.java:351)
         at
  org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
  152)
         at org.mortbay.jetty.Server.handle(Server.java:326)
         at
  org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
  542)
         at org.mortbay.jetty.HttpConnection
  $RequestHandler.headerComplete(HttpConnection.java:923)
         at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:547)
         at 

[appengine-java] Multitenancy / Billing and Versions..

2011-05-05 Thread sledorze
Hi!
I am currently building an application.
This application will be licenced to clients and they will be charged
for this.
(as far everything is normal)

First I thought I could deploy an application for each client but I've
read it's against Google policy.

So I am now willing to use the multitenancy support.

I would need to charge more a client because he use more ressources.
1) So How can I know how much ressources a client consumes?


2) If I want to upload a new version of my application but want to let
clients choose if they want to upgrade it or not; is it possible?

Thanks!
Stephane

P.S.: Wouldn't it be simpler to offer the opportunity to also deploy
several similar apps (with the benefice of keeping fine grain control)
but share the costs instead of doing only one app???

-- 
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-java@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] Blobstore vs. Datastore for HTML files

2011-05-05 Thread bradr
I have an app that stores XML and HTML files, and i'm trying to decide
on the Blobstore vs. Datastore

Pro for Blobstore:  it is possible for the HTML files to exceed 1 MB
(although I have ready the average size of an HTML file is ~25 KB)

Pro for Datastore:  The blobstore allows for insert / deletes only, no
updates. So I would have to delete blobs and insert new blobs every
time a user saves an existing file, which could happen a few time a
minute (similar to editing a file in Google docs)

From a technical perspective, are there any repercussions to:
a) serving HTML files from the datastore vs.
b) serving HTML files fro the blobstore, but constantly having to add
and delete blobs?

-- 
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-java@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: Stuck Building Indexes

2011-05-05 Thread Casey
Well it looks like the index finally went through after 11 hours.
Strange that it would take that long for an empty database.

On May 5, 9:23 am, Casey j.casey.one...@gmail.com wrote:
 I recently published an update to my site and after the lastest build
 I receive the error message that The index for this query is not
 ready to serve. I find that a little strange since I've never
 received that message before. To see if it had something to do with
 the amount of data in the database, I deployed the application to a
 brand new instance that would have a completely empty database.
 Unfortunately I get the same message. It also happens that the only
 indexes that are stuck are the ones that are defined in the index.xml
 file. After nine hours all of the new indexes have the status of
 Building: Queued: 0 Running: 0 Completed: 2 Total: 2.

 Is something stuck? If the indexes are Completed why are they still
 Building? Is there something that I can do?

-- 
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-java@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: Index Names now throwing an error

2011-05-05 Thread Matt Farnell
I haven't created a Java Property, I create the property using the low level
api as I use these numbered properties for stats which I query on. It's been
working for over a year and still does, however I now can't upload any app
modifications as I'm getting an error due to this new property name type
check.

Can someone on the inside please chime in, it's been a few days and I need
to upload an app mod.

thanks,
Matt

On Thu, May 5, 2011 at 6:15 AM, Simon Knott knott.si...@gmail.com wrote:

 How have you managed to create a Java property which starts with a number?

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




-- 
thanks,
*Matt Farnell*
*follow on twitter http://twitter.com/lepah*

-- 
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-java@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 vs. Datastore for HTML files

2011-05-05 Thread Ugorji
One more thing. Blobstore is 1/3 the cost of High Replication datastore. So 
if you don't need to index the information, and you are okay doing multiple 
GET's/PUTs (ie one GET to get the blobkey, and one more to actually serve 
the file), and your code allows the inclusion of the blobstore, then the 
blobstore may be an attractive option.

-- 
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-java@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 vs. Datastore for HTML files

2011-05-05 Thread Brandon Donnelson
I choose the datastore so I wasn't constrained with the 1MB limit. I think 
it works great too. I made a rough demo to try it out.

GWT javascript has to init. http://demogaemultifileblobupload.appspot.com/ - 
the files are served from the datastore.

Brandon Donnelson
http://gwt-examples.googlecode.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-java@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 vs. Datastore for HTML files

2011-05-05 Thread bradr
Question, if I opt for datastore ... I noticed that certain types (ie
datastore.Blob and datastore.Text) can be up to 1 megabyte; not
indexed.  Can I have multiple 1mb text columns? Or is there an
overall size limit for the row?

On May 5, 3:42 pm, Brandon Donnelson branflake2...@gmail.com wrote:
 I choose the datastore so I wasn't constrained with the 1MB limit. I think
 it works great too. I made a rough demo to try it out.

 GWT javascript has to init.http://demogaemultifileblobupload.appspot.com/-
 the files are served from the datastore.

 Brandon Donnelsonhttp://gwt-examples.googlecode.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-java@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: Blobstore vs. Datastore for HTML files

2011-05-05 Thread Brandon Donnelson
Oops I mean blob store
On May 5, 2011 3:42 PM, Brandon Donnelson branflake2...@gmail.com wrote:
 I choose the datastore so I wasn't constrained with the 1MB limit. I think

 it works great too. I made a rough demo to try it out.

 GWT javascript has to init. http://demogaemultifileblobupload.appspot.com/-
 the files are served from the datastore.

 Brandon Donnelson
 http://gwt-examples.googlecode.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-java@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-java@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: Blobstore vs. Datastore for HTML files

2011-05-05 Thread Brandon Donnelson
Good question. You can have multiple object until the object limit.
On May 5, 2011 4:58 PM, bradr brad.rydzew...@gmail.com wrote:
 Question, if I opt for datastore ... I noticed that certain types (ie
 datastore.Blob and datastore.Text) can be up to 1 megabyte; not
 indexed. Can I have multiple 1mb text columns? Or is there an
 overall size limit for the row?

 On May 5, 3:42 pm, Brandon Donnelson branflake2...@gmail.com wrote:
 I choose the datastore so I wasn't constrained with the 1MB limit. I
think
 it works great too. I made a rough demo to try it out.

 GWT javascript has to init.
http://demogaemultifileblobupload.appspot.com/-
 the files are served from the datastore.

 Brandon Donnelsonhttp://gwt-examples.googlecode.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-java@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-java@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 vs. Datastore for HTML files

2011-05-05 Thread Brandon Donnelson
Entity limit is 1MB total. But you could have multiple blobs within one if 
they where less than 1MB.

Brandon

-- 
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-java@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] Google update available for Eclipse?

2011-05-05 Thread Sam Stigler
Hi all,

I got a message today that there are some Google updates available for the 
Eclipse plugin and installing the updates now, but I can't find release notes 
for them. Can someone please point me in the right direction?

Thanks,
Sam

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