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

2010-07-26 Thread Marcus Brody
it. What exactly is the problem you're trying to solve? On Sun, Jul 18, 2010 at 11:23 PM, Marcus Brody mhrab...@gmail.com wrote: 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

[appengine-java] Re: Active transactions

2010-07-21 Thread Marcus Brody
Lisandro On 19 jul, 05:15, Marcus Brody mhrab...@gmail.com wrote: try follow this pattern for transactions public void doSomthingWithEntity(T entity) {                 PersistenceManager pm = getPersistenceManager();                 Transaction transaction = pm.currentTransaction

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

2010-07-19 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] 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] 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

[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: 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 aswath.satras...@gmail.com 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 jacek.ambroz...@gmail.comwrote: Not really,

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

2010-07-19 Thread Marcus Brody
Jul 2010, 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 received this message because you are subscribed to the Google

[appengine-java] Re: Sending mail in transaction

2010-07-13 Thread Marcus Brody
-in 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 mhrab...@gmail.com wrote: dflorey and Pieter, thank you for the links, I will look into it asap. On Jul 12, 10

[appengine-java] Re: Sending mail in transaction

2010-07-12 Thread Marcus Brody
a task will be re-executed only if it fails (throws an exception). On Sat, Jul 10, 2010 at 6:43 PM, Marcus Brody mhrab...@gmail.com wrote: 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

[appengine-java] Re: Sending mail in transaction

2010-07-12 Thread Marcus Brody
you can 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 mhrab...@gmail.com wrote: Pieter, although this looks easy its not that easy, I am aware that I can queue a mail

[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 []

[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

[appengine-java] Re: Sending mail in transaction

2010-07-11 Thread Marcus Brody
to execute gdata 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 mhrab...@gmail.com wrote: Hello, I would like to ask, if there is some way how