[appengine-java] Re: Which one is best for development...Spring Framework or Servlet& Jsp....

2011-04-19 Thread Starman
I'm using a combination of Spring, Objectify and Spring Security. App spins up in 20 secs. Could be a lot faster if I was not using classpath scanning. But with always up and correct warmup request config, anything under 30 secs will do just fine. What you want is to get sub 10 secs startup in dev

[appengine-java] Query on list properties not working within unit tests using mock LocalServiceTestHelper datastore.

2010-08-17 Thread Starman
Hello all and thank you for reading this. I am using JPA. I have implemented free text search using list properties (Set). Using the same datastore content (local_db.bin), my free text search is working fine when I run the app, but returns nothing if I run the query in unit tests. I am using Loc

[appengine-java] Re: Spring MVC on GAE: Slow Load Time

2010-10-07 Thread Starman
I have a Spring app with a pretty full stack currently being developed on gae. I quickly hit the 30 seconds limit at startup, hence the app would no longer even boot. I removed jpa in favor of Objectify, removed all the transaction management as I don't use entity groups, removed some features that

[appengine-java] Re: Two apps hitting the same datastore

2010-11-07 Thread Starman
As you know, you can deploy many versions of an app for the same app id. There is nothing that says it has to be the same app. Just deploy another app that does your weekly updates using another version string. Each version, even though it may not be the default one, gets its own url. You just need

[appengine-java] Re: DTO object

2010-11-08 Thread Starman
Remap these complex types onto native Java types while copying your entities onto your dtos... or are you sending your entities to the client directly? Usually, you will not want to send the entities to the client as it exposes your data model directly. You should create your service layer so as t

[appengine-java] Re: GAE or EC2

2010-11-08 Thread Starman
Having worked for a SaaS company with 500K users and +500M items in its database, the cost of just managing your infrastructure are enormous. Recently, I have been working on two unrelated projects, but both of pretty similar sizes. One on AWS, the other on GAE. AWS is rented virtualized servers

[appengine-java] Re: Initializing DataStore with minimal required values

2010-11-10 Thread Starman
I created a datastore manipulation service that can execute, using the task queue service, pieces of code found in 'plugins'. I have plugins for the initial sourcing and some others to create test and demo data. I favor this approach over the bulk uploader as you need to also prepare for the task

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-11 Thread Starman
Something like the following will setup the datastore helper and create the datastore-indexes-auto.xml: LocalDatastoreServiceTestConfig dsConfig = new LocalDatastoreServiceTestConfig(); File location = new File("war/WEB-INF/appengine-generated/ local_db.bin"); dsConfig.s

[appengine-java] Re: Does that datastore mains sort order for list properties?

2010-11-15 Thread Starman
>From my reading and experience, the type of collection type used will determine if order is preserved. To maintain the ordering, a system field is added to the values. This may impact the CUD operations performance. I don't need to keep the order in my current app so I am using Set for my proper

[appengine-java] Re: ImageService from dev server

2010-11-18 Thread Starman
Just remove the protocol:ip:port prefix before you store the serving url. On Nov 18, 3:03 pm, andrew wrote: > I am having issues getting a url for an image to be served from the > ImageService when running locally on the dev server. > > The code (which works fine when deployed) is this: > >      

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-18 Thread Starman
st to trigger all auto-index because my app has many > possible combinations of query filters. > > Thanks! > > On Nov 11, 11:24 am, Starman wrote: > > > > > Something like the following will setup the datastore helper and > > create the datastore

[appengine-java] Re: blobstore - map returned empty

2010-11-20 Thread Starman
What I do is remove the prot:ip:port prefix if the ip is 0.0.0.0 before I store the url. In dev, a relative path is OK. In prod, I store exactly what is returned. R. On Oct 31, 5:45 am, pac wrote: > I have gone through your sample code few times, could not find what I > am missing. > What I trie

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-20 Thread Starman
rry" wrote: > > > >Great tip but it's not working. Running the test updates the mod date > > >of local_db.bin but not datastore-indexes-auto.xml. > > > >I'm also configuring a LocalUserServiceTestConfig for a logged in > > >user, but that d

[appengine-java] Re: Problem switching to 1.4.0 - JSP compilation fails

2010-12-09 Thread Starman
I was using a servlet mapping to make my url nicer. Instead of appid.appspot.com/MyApp.jsp, I had appid.appspot.com/servletname. And I was using the jsp-file tag to map the servlet to the jsp file. I have commented out the servlet definition and just let the jsp auto mapping do its thing. And ever

[appengine-java] Re: Deleting orphan blobs in blobstore

2011-03-19 Thread Starman
BlobInfoFactory.queryBlobInfos(). Iterate on the BlobInfo returned and try to find the blobkey references in your entity store. If you can't, it is safe to delete that blob. If the blobkey reference field in your entities is not indexed, you'll have to do a full scan of your datastore entities. I