[appengine-java] Re: Date, Calendar question (multiple instances of web application behaviour) clarification

2010-07-26 Thread Marcus Brody
;ll have to work around it. What exactly is > the problem you're trying to solve? > > > > On Sun, Jul 18, 2010 at 11:23 PM, Marcus Brody wrote: > > Good day, > > > I would like to ask about following. > > > How is java.util.Date synchronized

[appengine-java] Re: Active transactions

2010-07-21 Thread Marcus Brody
istenceManager pm = > JDOHelper.getPersistenceManager(fechaAgreg);"(But mistake is the one > that already I enunciated). > The > link:http://stackoverflow.com/questions/1403515/appengine-datastore-object... > Regards > Lisandro > > On 19 jul, 05:15, Marcus Brody w

[appengine-java] Re: is there any solution/idea how blacklist IP in "realtime" ?

2010-07-19 Thread Marcus Brody
10, at 20:09, Marcus Brody wrote: > > > > > I am missing something ? So you guys are sitting in web console and > > watch > > how many requests came from given IP address ? This has to be done > > automatically ... somehow. > > > -- > > You re

[appengine-java] Re: is there any solution/idea how blacklist IP in "realtime" ?

2010-07-19 Thread Marcus Brody
I am missing something ? So you guys are sitting in web console and watch how many requests came from given IP address ? This has to be done automatically ... somehow. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to thi

[appengine-java] Re: rename a app-id

2010-07-19 Thread Marcus Brody
create new app with your desired ID and forward all request :P On Jul 18, 3:34 pm, aswath satrasala wrote: > I do not want to delete the app.  I have user data. > > -Aswath > > On Sun, Jul 18, 2010 at 6:57 PM, jacek.ambroziak > wrote: > > > Not really, but you can delete the app > > and after it

[appengine-java] Re: Active transactions

2010-07-19 Thread Marcus Brody
try follow this pattern for transactions public void doSomthingWithEntity(T entity) { PersistenceManager pm = getPersistenceManager(); Transaction transaction = pm.currentTransaction(); try { transaction.begin(); //

[appengine-java] Re: Active transactions

2010-07-19 Thread Marcus Brody
Hi lisandrodc, please carefully read all documents http://code.google.com/appengine/docs/java/datastore/ and http://www.datanucleus.org/products/accessplatform_1_1/guides/jdo/daolayer_design.html Also many people cannot read spanish, if you would write in english you may get more answers. I thi

[appengine-java] is there any solution/idea how blacklist IP in "realtime" ?

2010-07-19 Thread Marcus Brody
Hello, I was looking for some solution which would allow me "realtime" blacklist IPs. I didnt find any. "Realtime" I mean without manually getting IP and change dos.xml and upload it. A man can upload dos.xml to bann certain IPs. Can this be done somehow (anyhow) programmatically, even using home

[appengine-java] Date, Calendar question (multiple instances of web application behaviour) clarification

2010-07-18 Thread Marcus Brody
Good day, I would like to ask about following. How is java.util.Date synchronized in case there is more than 1 instance of my web application. Example: WebAppInstance01 : I create somewhere new Date() at the same time WebAppInstance02: I create somewhere new Date() Is there some time shift ?

[appengine-java] Re: Sending mail in transaction

2010-07-13 Thread Marcus Brody
n > handler to check whether the mail has been sent successfully or not. > This is an ugly workaround but there is nothing else that comes to my > mind. > > On 12 Jul., 22:54, Marcus Brody wrote: > > > dflorey and Pieter, > > > thank you for the links, > >

[appengine-java] send mail to person + BCC to all admins (strange behaviour)

2010-07-12 Thread Marcus Brody
Hello everyone, I was trying to send mail to per...@domain.com and in the same mail BCC to admins (app has 2x admin) result is that per...@domain.com never receive mail but admins do. I would like to ask if this is intended behaviour. My code is following: InternetAddress [] repl

[appengine-java] Re: Sending mail in transaction

2010-07-12 Thread Marcus Brody
detect a second invocation of a task. > > Maybe if you combine this with specific catch blocks for mail exceptions? > > > > On Mon, Jul 12, 2010 at 10:07 PM, Marcus Brody wrote: > > Pieter, > > > although this looks easy its not that easy, I am aware that I can >

[appengine-java] Re: Sending mail in transaction

2010-07-12 Thread Marcus Brody
ptions will be catched.  I think a task will be re-executed only > if it fails (throws an exception). > > > > > > > > On Sat, Jul 10, 2010 at 6:43 PM, Marcus Brody wrote: > > Hello, > > > I would like to ask, if there is some way how to send mail only in &g

[appengine-java] Re: Sending mail in transaction

2010-07-11 Thread Marcus Brody
data insert > requests in a transaction as they may return with a timeout. > It would be very nice if google would provide the standard services in > an idempotent manner. > > On 10 Jul., 18:43, Marcus Brody wrote: > > > Hello, > > > I would like to ask, if there is som

[appengine-java] Re: Breaking change in data store?

2010-07-11 Thread Marcus Brody
Hello Marc, this maybe be blind shot, but I think i faced similar problem, problem is I think following (although my primary key was encoded string I believe its the same issue) Description of problem: You have persisted some of you entities WITHOUT setting your primary key (you just let it N

[appengine-java] Sending mail in transaction

2010-07-10 Thread Marcus Brody
Hello, I would like to ask, if there is some way how to send mail only in case that some db transaction will be successful. I am not very experienced with gae, but I did study it now for about 2 weeks. Desired output: 1) prepare email 2) db transaction.begin() 3) do