[appengine-java] ability to implement queue or wrapper to queue with an internal latch

2009-11-07 Thread Nichole
Hello, Thanks for use of the app engine! I'm wondering if there are future plans to implement something like the ability to use a concurrent count down latch with a wrapper to or within a queue implementation? It would be nice to be able to set a condition upon which multiple processors

[appengine-java] Re: Problem with Data Store using JDO Query

2009-11-08 Thread Nichole
Your error message says that the current app engine API doesn't support 'OR', and the docs state: 'An entity must match all filters to be a result. In the JDOQL string syntax, multiple filters are specified separated by (logical and). Other logical combinations of filters (logical or, not)

[appengine-java] Re: ability to implement queue or wrapper to queue with an internal latch

2009-11-11 Thread Nichole
, pushing it back onto the queue from a cron job sounds like the right solution for now. -Nichole On Nov 10, 2:51 pm, Ikai L (Google) ika...@google.com wrote: Nichole, Our Task Queue API will take care of distributing your background tasks across separate application instances:http

[appengine-java] number of tasks in queue

2010-03-02 Thread Nichole
Hello, In the near future will there be an API method to get the current number of tasks in a queue? Thanks for your time, Nichole -- 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] Bouncy Castle 3party jars no longer loaded?

2010-05-01 Thread Nichole
returned. Thanks for your time, Nichole -- 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] Re: persistent and scalable global atomic counter: not possible with GAE?

2010-12-29 Thread Nichole
). The combination of all 3 may lead to a guaranteed unique number. Cheers, Nichole (p.s. If you do use sharded counters in your approach, you can configure the datastore read consistency to be strong: http://code.google.com/appengine/docs/java/datastore/usingjdo.html) On Dec 28, 8:33 pm, MG

[appengine-java] 404's intercepted

2011-02-10 Thread Nichole
not found? Thanks for your time, Nichole -- 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] Re: How to log user generated traffic per user

2011-04-18 Thread Nichole
Or you could use a ServletContextListener or a ServletFilter. They're components so easy to swap in an out of your architecture. On Apr 18, 4:04 am, Simon Knott knott.si...@gmail.com wrote: Hi, Didier's solution will definitely do the job for servlets.  Alternatively, you could use a servlet

[appengine-java] Re: How to log user generated traffic per user

2011-04-20 Thread Nichole
or a ServletRequestListener or HttpSessionListener. There are attribute listeners too. In general, as convenient as listeners are, they also affect performance. On Apr 18, 9:51 pm, Nichole nichole.k...@gmail.com wrote: Or you could use a ServletContextListener or a ServletFilter.  They're

[appengine-java] Re: Getting class not found errors on my project... any ideas why?

2011-04-28 Thread Nichole
When I need to use document operations rather than a sax2 parser through the XMLReaderFactory reader, I set a system property which declares the first preferred implementation of the factory: String appEngineEnv = System.getProperty(com.google.appengine.runtime.environment); if (appEngineEnv !=

[appengine-java] Re: Struts2 result type xslt with Google App

2011-04-28 Thread Nichole
Is xml-apis.jar included in your build? I had to add the following jars to an appengine app that used various xml operations. dependency groupIdorg.apache.xerces/groupId artifactIdxml-apis/artifactId version2.9.1/version /dependency

[appengine-java] Re: Use Array as a query filter - possible?

2011-05-09 Thread Nichole
You can use contains in JDO instead of SQL's IN(), but the implementation is a separate query for each item in the list. (http://code.google.com/appengine/docs/java/datastore/jdo/ queries.html). There's also a limit of 30 to the number of items in the array. This from appengine tests is expected

[appengine-java] Re: Use Array as a query filter - possible?

2011-05-10 Thread Nichole
:57 am, Nichole nichole.k...@gmail.com wrote: You can use contains in JDO instead of SQL's IN(), but the implementation is a separate query for each item in the list. (http://code.google.com/appengine/docs/java/datastore/jdo/ queries.html). There's also a limit of 30 to the number

[appengine-java] Re: After upgrade to GAE SDK 1.5.0 - Cache is not working

2011-05-12 Thread Nichole
I've been programming to the jcache interface that's included in the appengine sdk javax.cache.Cache and that still works in SDK 1.5.0. appengine's service locator (MemcacheService) finds the implementation for the interface. import javax.cache.Cache; import javax.cache.CacheException; import

[appengine-java] Re: App engine SDK jars in WEB-INF/lib. Why???

2011-05-12 Thread Nichole
Just a quick summary, the servlet spec requires that a servlet container such as appengine provider an implementation for a service. Those jars such as servlet- api-2.4.jar are needed at compile time. They are sometimes provided by the servlet container/ engines at run time in a global directory

[appengine-java] Re: overcome onetomany limitation of 5000

2011-05-13 Thread Nichole
You might want to consider denormalizing that table by one field? That is, create a new entity holding a foreign key relation and the field of interest, and create an index for that query equality. Reads are fast, and updates are slower so creating new entities for that data rather than updating

[appengine-java] Re: Setting Namespace for an entire Request

2011-05-15 Thread Nichole
According to the docs, the namespace is set globally within the app, but you can use it On a per-User Basis for users that are logged in as an example and that user is the tenant. The docs aren't clear, but the namespace must be globally just for that tenant, yes? If that's the case, then you

[appengine-java] Re: How To: Persist an entity, if and only if, another successfully persists

2011-05-15 Thread Nichole
I like Jeff's solution as it's failsafe, but one more pattern I often use is to set a couple of flags, and complete the 2nd action in a finally clause if needed. The timeout for the 30 sec limit does allow for a very quick transaction to still succeed, so I use that time to persist any state

[appengine-java] Re: open source pdf engine for GAE

2011-05-17 Thread Nichole
You could try iText: http://groups.google.com/group/google-appengine-java/browse_thread/thread/7dfdf19cfdd410d6/ee7024dd040ba6eb?lnk=gstq=pdf#ee7024dd040ba6eb http://code.google.com/appengine/docs/java/mail/usingjavamail.html On May 16, 7:11 pm, Vik vik@gmail.com wrote:    Hie Trying

[appengine-java] Re: open source pdf engine for GAE

2011-05-24 Thread Nichole
Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, May 17, 2011 at 6:45 PM, Nichole nichole.k...@gmail.com wrote: You could try iText: http://groups.google.com/group/google-appengine-java/browse_thread/th... http://code.google.com/appengine/docs/java

[appengine-java] servlet filter and static pages

2011-05-29 Thread Nichole
Hello, Static pages within appengine are not picked up by the servlet filters. Are there plans to change that? Thanks for your time, Nichole -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send

[appengine-java] Re: open source pdf engine for GAE

2011-05-29 Thread Nichole
as an attachment via mail api on app engine Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Tue, May 17, 2011 at 6:45 PM, Nichole nichole.k...@gmail.com wrote: You could try iText: http://groups.google.com/group/google-appengine-java

[appengine-java] Re: open source pdf engine for GAE

2011-05-30 Thread Nichole
application is already authenticated with Google and authorized to access your Google Docs, you would read the PDF export stream directly into the response stream to the donor. A brief look at the Google Documents List API suggests that that's possible, but I haven't tried it. Cheers, Nichole On May

[appengine-java] Re: Is Google planning to offer HR datastore migration feature

2011-05-31 Thread Nichole
googling outside the list turns up a few examples: http://googleappengine.blogspot.com/2011/03/high-replication-datastore-solid-choice.html On May 31, 1:26 pm, Ian Marshall ianmarshall...@gmail.com wrote: I too can make do with cleaning all my datastore data for the transition, so that's

[appengine-java] Re: NoSuchFieldError: deferredExpression - JSTL library conflict

2011-05-31 Thread Nichole
Appengine uses servlet spec 2.4 so the compatible jstl library is version 1.1. the jsp library is version 2.0. You compile w/ those locally, and yes, they are provided by the container for production deployment so you don't include them in your war file/directory. If your custom tag is

[appengine-java] Re: Checking if I understand transactions correctly

2011-05-31 Thread Nichole
I didn't look at your snippet in detail, but you need transactions, and that means the entities need to be in the same entity group, that is have same ancestor. On May 31, 2:53 am, pavb pavieillardba...@gmail.com wrote: Hi, Yes all the datastore insert, update, delete done in the transaction

[appengine-java] Re: Would the following create problems for me in Google app engine?

2011-05-31 Thread Nichole
Adding to Ian's suggesting, you might want to look at Query Cursors and pre-prepare reports ahead of time... or pre-prepare reports iteratively, compress, store as blob and download... On May 31, 1:24 pm, Ian Marshall ianmarshall...@gmail.com wrote: You can reduce time-out issues if you

[appengine-java] Re: Checking if I understand transactions correctly

2011-06-02 Thread Nichole
I think you might be a little confused about the difference between appengine's transaction in a distributed environment and an enterprise 2-phase transaction in a more classic client server architecture? appengine uses a distributed datastore, so entities are stored all over the place by

[appengine-java] Re: simple request (change localhost for debug app engine server to my local ip)

2011-06-03 Thread Nichole
In your appengine directory there's a file called config/user/ant- macros.xml that accepts --address and --port as arguments for dev_appserver, but you have to include the file into your own build.xml. Instructions are at the top of the file. On Jun 3, 8:06 pm, Bourke Floyd IV chb...@gmail.com

[appengine-java] Re: Can't create application - SMS says account already verified

2011-06-03 Thread Nichole
Google Voice? On Jun 3, 3:01 pm, Ronoaldo José de Lana Pereira rpere...@beneficiofacil.com.br wrote: Sorry Joe, I don't know if you can unregister your phone number. I didn't found this kind of option. Ikai, any tips? -- You received this message because you are subscribed to the Google

[appengine-java] Re: Application Title available?

2011-06-03 Thread Nichole
You could parse your xml file or parse the System variable called user.dir. On Jun 3, 2:46 am, Marcel Overdijk marceloverd...@gmail.com wrote: Is the Application title accessible using the SDK? I guess not, but Maybe Google can make in available in the Environment class. -- You received

[appengine-java] Re: Application Title available?

2011-06-03 Thread Nichole
Make that System.getProperty(com.google.appengine.application.id) instead... no parsing On Jun 3, 9:53 pm, Nichole nichole.k...@gmail.com wrote: You could parse your xml file or parse the System variable called user.dir. On Jun 3, 2:46 am, Marcel Overdijk marceloverd...@gmail.com wrote

[appengine-java] Re: Problem deleting an entity which has a dependent Set Entity

2011-06-06 Thread Nichole
You might want to use @Persistent(mappedBy = parent) for your Parent entity declaration in your Child entity. Owned one-to-many http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html#Owned_One_to_Many_Relationships On Jun 5, 9:27 pm, Didier Durand durand.did...@gmail.com

[appengine-java] Re: Problem deleting an entity which has a dependent Set Entity

2011-06-06 Thread Nichole
this exception is occurring if possible. @Nichole - I currently have an unowned one to many relationship and don't really need an owned one, having said that could this make a difference? I will have to try and see when I get time. Thanks again On Jun 6, 5:27 am, Didier Durand durand.did

[appengine-java] Re: Lots of 500 errors

2011-06-07 Thread Nichole
Hi Hector, The apache commons http client isn't loaded by the appengine classloader now. It's included in a repackaged form for use in testing in appengine-api-stubs.jar, but shouldn't be included in the deployment. Any 3rd party library using that class will have the same problem. You can

[appengine-java] Re: JDO: 1-N relationships

2011-06-26 Thread Nichole
Just to add to objectuser, you definitely need to use entity groups to retrieve all entity types within a transaction if you use the model you're both describing. You might want to consider a change in your model though to move the most updated fields in User to a new and different entity,

[appengine-java] Re: Failed to compile jsp files.

2011-07-07 Thread Nichole
Looks like an error in your jsp file. On Jul 3, 8:12 am, ~Juli~ yoolc...@gmail.com wrote: Hi all! I faced with probem that i couldn't update war because jsp compilation failed. ---

[appengine-java] Re: How can I make sure a Collection of child classes gets fetched in a query?

2011-07-07 Thread Nichole
http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html#Owned_One_to_Many_Relationships entity groups and mappedBy in your parent class. On Jul 2, 1:39 pm, ksafez216 mell...@gmail.com wrote: After I get a Command object using PersistenceManager.getObjectById(), and then try

[appengine-java] Re: Scalability of inequality filters for multiple fields via Hilbert curve

2011-07-07 Thread Nichole
Since you're working with data that is presumably in entities, your fields such as long or date at any given time aren't continuous, so the algorithm to group by features should work. 'Any given time' here is the time that you actually start to write your entities that are to be your HilbertIndex

[appengine-java] Re: Facebook Federated Login

2011-07-07 Thread Nichole
Or use OpenAuth instead? On Jul 5, 10:33 pm, Shash Joshi sh...@perfode.com wrote: I have used it, and it works great! -- 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

[appengine-java] Re: Changing datastore property type

2011-07-07 Thread Nichole
The quickest solution might be to wrap your entity fetch in a try/ catch (Throwable t) block. Throwable will catch a runtime exception. Upon the expected exception, use the alternate variable type to try another fetch. On Jul 6, 1:34 pm, Jeff Schnitzer j...@infohazard.org wrote: On Wed, Jul

[appengine-java] Re: Changing datastore property type

2011-07-07 Thread Nichole
To update your existing entities to the new entity schema, you would need to rewrite your existing entities (create new w/ same fields and delete old). To find the existing older entities, you could use the low level API (DatastoreService) to fetch Entity instances for your entity Kind and then

[appengine-java] Re: email in yahoo junk - amazon ses

2011-07-09 Thread Nichole
It sounds like your main goal is to send email that does not get flagged by Yahoo's spam filter. The links you included had a discussion about key security added to google apps for business that signs your email and allows Yahoo spam filter service to check the public key w/ your DNS mx records.

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-11 Thread Nichole
I might add that you could add a try/catch/finally: use a transaction on the first operation in the try block that can be rolled back if a succeeded flag is false in the finally block; after the 2nd operation in the try block the succeeded gets set to true; and if you use the referred

[appengine-java] Re: can i load web form and then submit it, after showing only form's captcha on screen?

2011-07-11 Thread Nichole
I think I understood your question before your last addition: if you're wanting to add human verification, you might use the oddly named 'honeypot' :) On Jul 11, 1:11 am, Arvind Chari arvind.ik.ch...@gmail.com wrote: Hi Sorry for the late reply... I am trying to submit same/similar data to

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-12 Thread Nichole
as to how I can have two transactions in one try/catch and make sure both succeed. Maybe a quick code sample would help if you have the time. Thanks On Jul 11, 5:01 pm, Nichole nichole.k...@gmail.com wrote: I might add that you could add a try/catch/finally: use a transaction

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-12 Thread Nichole
successfully? Thanks On Jul 12, 9:37 am, Nichole nichole.k...@gmail.com wrote: Here's an implementation.  You might want to add checks for read staleness, and think about using a task structure for the operations to make retry easier. The unit test structure is from fromhttp

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-17 Thread Nichole
. * In this case a retry of transaction2 should be invoked and must eventually succeed. * * For that reason, any code using this pattern should design the logic so that the logic in the 2nd transaction can be consistent on a longer timescale. * * @author nichole */ public

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-18 Thread Nichole
design the * logic so that the logic in the 2nd transaction can be consistent * on a longer timescale. * * @author nichole */ public class TwoOperationPseudoTransactionTest extends LocalDatastoreTestCase { private final Logger log = Logger.getLogger( this.getClass

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-18 Thread Nichole
The answer to the nontransactionalread and write are below, but meanwhile, if you really do need those updates to be as close to atomic as possible, then you need them in the same entity group so they're co-located in the distributed file system. On Jul 18, 2:02 am, mscwd01 mscw...@gmail.com

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-07-18 Thread Nichole
By the way, if you wanted vary your jdoconfig.xml settings knowing which are impl in appengine, here's a link to appengine datanucleus test code: http://code.google.com/p/datanucleus-appengine/source/browse/trunk/tests/META-INF/jdoconfig.xml?r=514spec=svn514 On Jul 18, 8:44 pm, Nichole

[appengine-java] deployment to production stalling

2011-07-25 Thread Nichole
in the appengine-tools-api.jar Has anyone else had the same problem recently? If so, how did you solve it? Thanks, Nichole -- 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

[appengine-java] Re: deployment to production stalling

2011-07-26 Thread Nichole
Can anyone who's successfully today deploying to appengine production w/ sdk 1.5.0 confirm this md5 sum for me? MD5 (appengine-tools-api.jar) = 472e6d29ff6633cf1cc7fde3cabd6290 Thanks for your time On Jul 25, 11:05 am, Nichole nichole.k...@gmail.com wrote: Hello,    Anyone having troubles

[appengine-java] Re: Mining logs for performance data

2011-07-28 Thread Nichole
Or the script that's used to upload your application now offers the ability to download logs too: http://code.google.com/appengine/docs/java/tools/uploadinganapp.html You'd have to download frequently or not depending upon your log rate. Or you could create a servletrequestlistener to gather

[appengine-java] Re: How to ensure two entities are updated WITHOUT using transactions?

2011-08-02 Thread Nichole
(com.google.appengine.api.datastore.Key k); long ndeleted = qRT.deletePersistentAll(key); pm.flush(); tx.commit(); On Jul 18, 8:49 pm, Nichole nichole.k...@gmail.com wrote: By the way, if you wanted vary your jdoconfig.xml settings knowing which are impl in appengine,  here's a link to appengine datanucleus test code

[appengine-java] Re: Trying to save and retrieve data in google app engine in hierarchical manner.

2011-08-03 Thread Nichole
In the first case, you have an unowned one to many and the children are not persisted with pm.makePersitent(item); If the 2nd case, when Item owns Child entities, pm.makePersistent(item) will persist the children too, but you will have exceptions it you try to persist another item with the same

[appengine-java] Re: Retrieving keys involving corresponding entities in transaction

2011-08-03 Thread Nichole
Did you reverse the error and queries? In the first, you're getting a list of keys, so those aren't entities to have caused the multiple entity exception. On Aug 1, 11:12 pm, Mauricio Aristizabal aris...@gmail.com wrote: I was just trying retrieve a List of entities and do a .size() to get a

[appengine-java] Re: deployment to production stalling

2011-08-08 Thread Nichole
http://code.google.com/p/googleappengine/issues/detail?id=5524 Anyone had trouble with client-server-client data exchange that's lead to stalled updates? Thanks for your time, Nichole On Jul 26, 1:46 pm, Nichole nichole.k...@gmail.com wrote: Can anyone who's successfully today deploying

[appengine-java] Re: deployment to production stalling

2011-08-08 Thread Nichole
Ikai, can you recommend a work around? On Aug 8, 10:37 am, Nichole nichole.k...@gmail.com wrote: http://code.google.com/p/googleappengine/issues/detail?id=5524 Anyone had trouble with client-server-client data exchange that's lead to stalled updates? Thanks for your time,     Nichole

[appengine-java] Re: Server Error : Deployment Failed

2011-08-21 Thread Nichole
you can get notifications for the issue at: http://code.google.com/p/googleappengine/issues/detail?id=5474 On Aug 20, 12:10 am, steveb steve.buikhui...@gmail.com wrote: and me On Aug 20, 3:13 pm, BoulderGae sc...@scmlabs.com wrote: Me Too! On Aug 19, 10:34 pm, culov

[appengine-java] Re: java.lang.LinkageError encountered loading Google Checkout classes

2011-08-26 Thread Nichole
I started seeing errors due to changes in appengine security manager and a new appengine defined user-class loader on about July 21st for classes that I was constructing on the fly dynamically in the code using Constructor. In addition to ExceptionInInitializerErrors there were logs statements

[appengine-java] Re: BigTable LIKE

2011-08-29 Thread Nichole
In addition to the above, I'd say you might want to make new keyword entities for each keyword and store the reference/key to the original entities instead of storing your keywords as a list of properties in your original entity. A list of strings is stored implicitly as an embedded table so will

[appengine-java] Re: Retrieving keys involving corresponding entities in transaction

2011-09-11 Thread Nichole
Hi Mauricio, I think I need more information: What relationships do you have between your entities? For the Conversation/Comment example above I can derive something like this: === Conversation -- commentKey: Key status: String rank: Integer

[appengine-java] Re: Problem with URL paths in deployed version of Google App

2011-09-11 Thread Nichole
In addition to adding urls to your appengine-web.xml, if you intend app to be your application default root path, see: http://code.google.com/appengine/docs/java/config/appconfig.html#Changing_the_Root_Directory On Sep 9, 12:13 pm, jem...@gmail.com wrote: Static  file are dealt with

[appengine-java] Re: Delete Lots Of Data

2011-09-11 Thread Nichole
Can use low-level datastore and iterate over batches: binSize = 1000;// or smaller if needed 30 sec timeout DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); Keys only select and delete: javax.jdo.Query q = pm.newQuery(select key from +

[appengine-java] Re: Help: Memcache - not hitting at all

2011-09-12 Thread Nichole
The javadocs for MemcacheService suggest a pattern that you would use if the backing cache used soft references: foo = memcache.get(key); if (foo == null) { if (memcache.contains(key)) { // continue, assuming foo had the real value null } else { // continue; foo may

[appengine-java] Re: Help: Memcache - not hitting at all

2011-09-14 Thread Nichole
The lower level MemcacheService is different from the service provided by the jache api (a.k.a. memcache). The lower level MemcacheService that you are accessing is more volatile and so in between checking for existence of a key and getting that value, the value may have been disappeared

[appengine-java] Re: Help: Memcache - not hitting at all

2011-09-14 Thread Nichole
The implementation of jcache is now Google's GCache internally and that's included in the api, so no need to include the separate jar for appengine-jsr107cache. GCache implements javax.cache.Cache The only mention I could find of net.sf.jsr107cache.Cache.java online did not implement

[appengine-java] Re: Developing Multilingual Web Applications

2011-09-18 Thread Nichole
If you have a java web application that conforms to servlet spec 2.4, jsp spec 2.0 and jstl spec 1.1.x the additional steps you'll need to take are roughly: -- add the resource files to your appengine-web.xml file -- replace use of JAAS classes that are not allowed by the appengine security

[appengine-java] Re: Developing Multilingual Web Applications

2011-09-19 Thread Nichole
and you'll probably want to add threadsafetrue/threadsafe to appengine-web.xml as appengine's frontend server will otherwise send requests serially On Sep 18, 6:25 pm, Nichole nichole.k...@gmail.com wrote: If you have a java web application that conforms to servlet spec 2.4, jsp spec 2.0

[appengine-java] Re: GAE+GWT2.4 [ERROR] java.lang.NoClassDefFoundError: javax/validation/Path

2011-09-20 Thread Nichole
It looks like a factory for a validation service might be looking for the declaration of the validation service. These are often declared in a file in META-INF/services in jars that are the providers of that service so take a look at the jars in your web apps lib directory. That same declaration

[appengine-java] Re: Servlet Mapping not working as expected

2011-09-26 Thread Nichole
try a forward within index.jsp instead: jsp:forward page=/index.vm / On Sep 26, 1:42 pm, Stephen Johnson onepagewo...@gmail.com wrote: My guess is that Google is interpreting them as static files and Google's infrastructure is handling them before it reaches your app. So, read up on

[appengine-java] Re: Storing query results in memcache

2011-09-30 Thread Nichole
use the level 2 cache? property name=datanucleus.cache.level2.type value=javax.cache / Objects are placed in the L2 cache when you commit() the transaction of a PersistenceManager. This means that you only have datastore- persisted objects in that cache. Also, if an object is deleted during a

[appengine-java] Re: Storing query results in memcache

2011-10-04 Thread Nichole
Level2 cache might be what you want, but anyway, just to add to the dialog, I tinkered with what's available in datanucleus-core v1.1.5. Choices in datanucleus are: none, soft, and weak (jcache is not available in any version, but see below for customization) In addition to those, one can make a

[appengine-java] Re: Mobile subdomain in app engine

2011-10-05 Thread Nichole
Have you thought of designing for all viewports from the start instead of a redirect? see the new jquery library http://jquerymobile.com On Oct 4, 11:57 am, WillSpecht willspe...@gmail.com wrote: Can someone give me a basic rundown of how to set up a mobile site on app engine. I already

[appengine-java] Re: 404 for app thats deployed successfully.

2011-10-05 Thread Nichole
2 things to fix in your web.xml: --param-value should be single valued --url-pattern ExampleApp/* should be changed. url-pattern has the following rules path mapping: starts with /, ends with /* extension mapping: begins with *. default servlet: single character /

[appengine-java] Re: Full-text search engine and its indexes

2011-10-06 Thread Nichole
Not sure what your search server does, but presumably the user enters keywords and you search through your file based pre-prepared 'indexes' of file offset and keywords to return information to locate the word within the text? Since you don't have direct access to big table and are not wanting to

[appengine-java] Re: Full-text search engine and its indexes

2011-10-06 Thread Nichole
entity key could have a scalable name that is usable in an order by clause (the order by is needed if you're using cursors for example). A pattern like object1 for the entity name means you can keep adding names with a number as string. On Oct 5, 11:56 pm, Nichole nichole.k...@gmail.com

[appengine-java] Re: Mobile subdomain in app engine

2011-10-06 Thread Nichole
I should add that my simplified model above uses the given static examples without a redirect to a /site/mobile. By 'design for all viewports' I mean design to use floating right divs when possible... On Oct 6, 2:50 pm, Nichole nichole.k...@gmail.com wrote: I'm not using a pseudo-2-site model

[appengine-java] Re: Mobile subdomain in app engine

2011-10-06 Thread Nichole
One last addition is that the appengine implementation of javax.servlet.Filter will probably never intercept static content as those files are probably on CDN, hence not delivered directly by servlet container... On Oct 6, 2:55 pm, Nichole nichole.k...@gmail.com wrote: I should add that my

[appengine-java] Re: Mobile subdomain in app engine

2011-10-08 Thread Nichole
/mobile/ home.jsp when a user types in m.mydomain.com/home. On Oct 6, 5:55 pm, Nichole nichole.k...@gmail.com wrote: I should add that my simplified model above uses the given static examples without a redirect to a /site/mobile. By 'design for all viewports' I mean design to use

[appengine-java] Re: Mobile subdomain in app engine

2011-10-08 Thread Nichole
content, then if you use a post to same url and parameters as data, no difference in resulting SEO for these 2 different site approaches... On Oct 8, 1:30 am, Nichole nichole.k...@gmail.com wrote: You can use a single servlet filter instead of a servlet per destination jsp page. Keep in mind

[appengine-java] Re: Calling app script from app engine

2011-10-08 Thread Nichole
Since it's javascript downloaded from *appspot.com, is your question about 'cross origin resource sharing'? On Oct 7, 6:01 am, Vik vik@gmail.com wrote: Hie I have a google app script which I want to invoke from google app engine for java. Can someone please guide on how to invoke such

[appengine-java] Re: Logging when using local unit testing

2012-01-29 Thread Nichole
To simplify the problem, can you use your IDE purely as jdwp agent? For maven (which for multi-module projects w/ profiles, current netbeans and eclipse plugins can have difficulty resolving a class, but are well worth that trouble for everything they do do right :) I often use this: mvn

[appengine-java] Re: anyone know how to deal with: org.datanucleus.exceptions.NucleusUserException: Object Manager has been closed

2012-01-30 Thread Nichole
javax.jdo.PersistenceManager On Jan 29, 4:46 pm, John Goche johngoch...@googlemail.com wrote: On Mon, Jan 30, 2012 at 12:37 AM, Nichole nichole.k...@gmail.com wrote: Do you have fields within your persistable entities in Data.store which are persistable? Yes, all the fields within the persistable entities

[appengine-java] Re: Support of Java Keystore Files for SSL Connections

2012-01-30 Thread Nichole
You'll have a security, restricted class exception for javax.net.ssl. You can use ssl provided by appengine for appspot.com subdomains (the CA was Equifax last time I checked), but not your own certificate. http://code.google.com/appengine/kb/general.html#https On Jan 29, 3:18 pm, Doug

[appengine-java] Re: BaseFeed versus DocumentListFeed

2012-02-01 Thread Nichole
Looks like you are using paging... On Jan 31, 11:41 am, Paul Ford paul.f...@mavenwave.com wrote: ok guys could not find a google docs api group so posting this here. I'm trying to list out all documents within a domain companyabc.com. If I use DocumentListFeed I get a 100 docs. If I use the

[appengine-java] Re: map-reduce

2012-02-02 Thread Nichole
Do you have a security-constraint in your web.xml that specifies 'role- name' as '*' or admin for the url-pattern of the servlet you used? It looks like the invoker was not yet authenticated or failed authentication. On Feb 1, 5:59 am, Sergio ksergio...@gmail.com wrote: Hi All! I catch the

[appengine-java] Re: makePersistent failing every second time since server restart

2012-02-02 Thread Nichole
2-phase locking transactions: http://groups.google.com/group/google-appengine-java/browse_thread/thread/497060c343e16052/18f8603e9ffe3db4?lnk=gstq=Good+point+++nichole#18f8603e9ffe3db4 On Feb 1, 10:25 am, John Goche johngoch...@googlemail.com wrote: Hi, I've raised the issue with a test case

[appengine-java] Re: Unexplained error of SQLException

2012-02-04 Thread Nichole
Looks like you are trying to upload binaries compiled w/ a jdk version not compatible w/ 5 or 6. On Feb 2, 9:06 pm, Arjun Damodar lutt...@gmail.com wrote: Hello, I was trying to compile an application but getting the following error: javax.servlet.ServletException: java.sql.SQLException:

[appengine-java] Re: Sending HTTP response header Connection: close for request with Connection: keep-alive

2012-02-04 Thread Nichole
you'll want to use the HttpServletResponse close() method. On Feb 1, 9:18 pm, Jeff Morgan j...@lacodatech.com wrote: Is there a way to force GAE to send an HTTP response with header Connection: close? I have tried, response.setHeader(Connection,close); but no luck. -- You received this

[appengine-java] Re: Cannot retrieve filename with Complicated Chinese charaters in GAE

2012-02-06 Thread Nichole
With GFS you should be able to use any character in the name of a file or directory except the null character, so you just need to form your string using the right encoding. String fileName = new String(str, UTF-8); or use Big5 for encoding? And then make sure the jsp prints the character

[appengine-java] Re: makePersistent failing every second time since server restart

2012-02-07 Thread Nichole
that, but that is the simplest way to explain it. Cheers, Nichole On Feb 2, 4:19 am, John Goche johngoch...@googlemail.com wrote: NIchole, Thank you for your feedback, but how do I change my code so that I have this entity group you are mentioning? I am using the HR datastore. And how did you get

[appengine-java] Re: Cannot retrieve filename with Complicated Chinese charaters in GAE

2012-02-07 Thread Nichole
. The mentioned problem only happened after deploying in GAE cloud but didn't happen in local Eclipse development environment. Please help and thanks again. On Mon, Feb 6, 2012 at 5:05 PM, Nichole nichole.k...@gmail.com wrote: With GFS you should be able to use any character in the name