[appengine-java] Re: Accessing Google spreadsheet using Java

2010-11-17 Thread Vikas Hazrati
, 6:35 pm, Vikas Hazrati wrote: > We are directly using thespreadsheetAPI to manage data within thespreadsheet, > that seems to work fine for us > > http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html > > Regards | Vikaswww.inphina.com > > On Nov 1

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-14 Thread Vikas Hazrati
og u have there. However i cant reproduce your results the unit > test with spring. > can u post your spring config to see what i have done wrong. > > thanks > > -lp > > On Nov 13, 3:58 pm, Vikas Hazrati wrote: > > > You could get more information on the way we s

[appengine-java] How to send spreadsheet as an attachment on Google App Engine?

2010-11-14 Thread Vikas Hazrati
I have an application which is deployed on the Google App Engine. This application also works with the Google spreadsheet API to update a couple of spreadsheets. Once the user is done with changing the spreadsheet data, I want to email the resultant spreadsheet (not the link) to the manager. Is t

[appengine-java] Re: Accessing Google spreadsheet using Java

2010-11-13 Thread Vikas Hazrati
We are directly using the spreadsheet API to manage data within the spreadsheet, that seems to work fine for us http://code.google.com/apis/spreadsheets/data/3.0/developers_guide.html Regards | Vikas www.inphina.com On Nov 1, 3:55 pm, prakhil samar wrote: > I have created a googlespreadsheetand

[appengine-java] Re: Problems pointing my GoDaddy domain to App Engine (no other posts have been able to help!)

2010-11-12 Thread Vikas Hazrati
Sometimes it just takes time for redirection to happen as it needs to be propagated across servers. We have mapped several domains from GoDaddy to the app engine and it just works. Regards | Viaks www.inphina.com On Nov 9, 8:59 pm, Kevin M wrote: > So I have a domain hosted on GoDaddy.com and I

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-12 Thread Vikas Hazrati
You could get more information on the way we set up our testing infra here http://thoughts.inphina.com/2010/06/28/unit-testing-maven-based-jpa-application-on-gae/ Regards | Vikas www.inphina.com On Nov 10, 2:37 pm, lp wrote: > hi all, > > i have been attempting to convert my existing JPA code o

[appengine-java] Re: GAE or EC2

2010-11-08 Thread Vikas Hazrati
You might also want to check out a detailed comparison on technical aspects here http://thoughts.inphina.com/2010/11/01/comparing-google-app-engine-and-amazon-ec2-on-technology/ Regards | Vikas On Nov 9, 9:32 am, Didier Durand wrote: > Hi JY, > > I have used both: for a small company aiming at

[appengine-java] Re: too many 500 Errors

2010-11-01 Thread Vikas Hazrati
It seems that there is some serious datastore issue. The status on the http://code.google.com/status/appengine is also elevated and both Java and Python services are affected. Regards | Vikas www.inphina.com Sarath wrote: > My application is seeing a lot of these errors recently. > > Request was a

[appengine-java] Re: Disappointment about JPA relationships :(

2010-10-24 Thread Vikas Hazrati
Hi Matthieu, You are right, you need some conditioning and then you need to work around the limitations of working with relationships around JPA. Then finally you tend to realize more and more that may be you are better off with unowned relationships Here are the issues that we faced and tried to

[appengine-java] Recommendations for a "Greenfield project"

2010-10-12 Thread Vikas Hazrati
We recently helped an organization move their pretty successful standalone enterprise timesheet product to the app engine and offer it as a SaaS application. The project used Spring, Wicket, Hibernate(which we converted to JPA). However we had to face many obstacles on the way. You can read about A

[appengine-java] Re: Downloading application logs from app engine

2010-10-02 Thread Vikas Hazrati
I guess copy paste is the only way out ;) On Sep 30, 5:45 pm, Vikas Hazrati wrote: > I am trying to download the application logs from the app engine but > with the command that I am using > > appcfg.sh request_logs 0051.txt > > I am able to get the app engine logs and not t

[appengine-java] Downloading application logs from app engine

2010-09-30 Thread Vikas Hazrati
I am trying to download the application logs from the app engine but with the command that I am using appcfg.sh request_logs 0051.txt I am able to get the app engine logs and not the ones that I get when i expand the logs. So in a nutshell instead of "just" this as a part of download 09-30 04:

[appengine-java] Re: Trouble unit testing JPA data access objects.

2010-09-29 Thread Vikas Hazrati
transaction wrapper, > thus allowing the EntityManager to be closed very early in my test.  I > just don't see how I can reasonably test anything if the Object Manager > won't remain open long enough to verify the results. > > Dave > > On 09/28/2010 01:07 AM, Vikas Haz

[appengine-java] Re: Namespace design issues

2010-09-27 Thread Vikas Hazrati
more details about the namespace behavior as we observed here http://thoughts.inphina.com/2010/09/16/multi-tenancy-in-google-app-engine-scope-of-namespacemanager/ On Sep 24, 7:57 am, John Patterson wrote: > On 24 Sep 2010, at 02:55, Mouseclicker wrote: > > > API. The need to set and later reset

[appengine-java] Re: EntityGroup restrictions on doing a Query outside of a txn

2010-09-27 Thread Vikas Hazrati
Somehow with the error message looks like both your queries are still happening in the same transaction. Are you sure that the transaction boundaries of both the methods are separate? To check this I would separate the 2 out into 2 methods each having their own transaction start and end or @Transac

[appengine-java] Re: Trouble unit testing JPA data access objects.

2010-09-27 Thread Vikas Hazrati
Have you tried running the dao code in a transaction? Is your store and find happening in different transactions? Also you should take a note of "Unlike with most databases, queries and gets inside a datastore transaction do not see the results of previous writes inside that transaction. Specifical

[appengine-java] Does BulkLoader consider relationships?

2010-09-17 Thread Vikas Hazrati
Hi, There are several entities which have 1:n relationship in our SaaS application. For the sake of simplicity and keeping the domain simple, I tried the same concept with a small application but still found that the configuration file formed with the BulkLoader did not respect relationships. For

[appengine-java] What is the scope for NamespaceManager?

2010-09-15 Thread Vikas Hazrati
We are building a multi-tenant application and want to use the NamespaceManager to distinguish between tenants on the basis of server- name. So for example inphina.bookmyhours.com would be a different tenant than te-con.bookmyhours.com we are currently using NamespaceFilter with code similar to i

[appengine-java] Spring AOP on App Engine?

2010-09-06 Thread Vikas Hazrati
Has anyone got spring aop working with GAE? I get the following issue deploying aop on the app engine Error creating bean with name 'entityManagerFactory': Post-processing of the FactoryBean's object failed; nested exception is java.lang.StackOverflowError at org.springframework.beans.fact

[appengine-java] Re: How we can read uncommitted data in same transaction.

2010-08-31 Thread Vikas Hazrati
That sounds right, the data only becomes available to you once you have committed the tx. From the docs "This consistent snapshot view also extends to reads after writes inside transactions. Unlike with most databases, queries and gets inside a datastore transaction do not see the results of previ

[appengine-java] Weird NPE when trying to work with appstats

2010-08-31 Thread Vikas Hazrati
For performance tuning we wanted use appstats and since ours is a java based application, we used the steps as mentioned As soon as we hit http://localhost:8080/appstats We get the following error java.lang.NullPointerException at java.io.Reader.(Reader.java:61) at java.io.InputSt

[appengine-java] Weird NPE when trying to work with appstats

2010-08-31 Thread Vikas Hazrati
For performance tuning we wanted use appstats and since ours is a java based application, we used the steps as mentioned As soon as we hit http://localhost:8080/appstats We get the following error java.lang.NullPointerException at java.io.Reader.(Reader.java:61) at java.io.InputSt

[appengine-java] Re: Alternate for Like Clause

2010-08-10 Thread Vikas Hazrati
LIKE works in app engine though with a few minor constraints here is one of our named queries @NamedQuery(name = "User.findAllByUserFirstNamePattern", query = "SELECT user " + "FROM User as user WHERE upperFirstName like :pattern " + "ORDER BY upperFirstName"), Re

[appengine-java] Re: Changing the Parent of a child entity

2010-08-03 Thread Vikas Hazrati
mments, users - addresses, bank accounts - > transactions, and so forth... > > Hope this helps, > Fred > > On 3 Aug., 20:28, Vikas Hazrati wrote: > > > > > Hi Fred, > > > Thanks for your response. This is what I suspected too that the entity > > gro

[appengine-java] Re: Changing the Parent of a child entity

2010-08-03 Thread Vikas Hazrati
lationships like you have them, you would have to > change the Key of the User object (it's identity) to place it in the > entity group of another department, since the department's (parent) > key is part of the user key like in a path. > > Cheers, > Fred > > On 3 Aug

[appengine-java] Re: Changing the Parent of a child entity

2010-08-03 Thread Vikas Hazrati
ent department now. What is the best way to do that? If i remove the UserDepartment from the User and then assign a new UserDepartment to it then I get into the issue of trying to access multiple entity groups in the same transaction. Regards | Vikas www.inphina.com On Aug 3, 6:05 pm, Vikas

[appengine-java] Changing the Parent of a child entity

2010-08-03 Thread Vikas Hazrati
I have 2 entities UserDepartment and User, which are defined as follows @Entity public class UserDepartment extends DomainObject { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long departmentId; and @Entity public class User extends DomainObject {

[appengine-java] Changing the Parent of a child entity

2010-08-03 Thread Vikas Hazrati
I have 2 entities UserDepartment and User, which are defined as follows @Entity public class UserDepartment extends DomainObject { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Long departmentId; and @Entity public class User extends DomainObject {

[appengine-java] Field was not detached when you detached the object. Either dont access this field, or detach it when detaching the object.

2010-08-02 Thread Vikas Hazrati
I have the following scenario of an unowned relationship between a User and UserRoles public class User extends DomainObject { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true") priv

[appengine-java] Re: Or filters cannot be applied to multiple properties

2010-07-14 Thread Vikas Hazrati
Filter("firstName", EQUAL, aFirstName); > command.addChildQuery().addFilter("lastName", EQUAL, aLastName); > Iterator people = command.returnResultsNow(); > > On 14 Jul 2010, at 19:10, Vikas Hazrati wrote: > > > > > Further to my previous question > >

[appengine-java] Re: Or filters cannot be applied to multiple properties

2010-07-14 Thread Vikas Hazrati
Thanks for the link Simon On Jul 14, 7:34 pm, Simon wrote: > The "Query Filters" section under the following link it explains the > problem you're > hitting:http://code.google.com/appengine/docs/java/datastore/queriesandindexe... > > On Jul 14, 1:10 pm, Vikas Haz

[appengine-java] Loading Seed Data for Unit Testing

2010-07-14 Thread Vikas Hazrati
Hi, We are using JPA for our Dao's to interact with the datastore. I was wondering is there is a way to load seed data for unit testing. I can insert the entities using JPA in the setup() method here private final LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalDatastoreServiceT

[appengine-java] Or filters cannot be applied to multiple properties

2010-07-14 Thread Vikas Hazrati
Further to my previous question http://groups.google.com/group/google-appengine/browse_thread/thread/... in which we were getting the following error 'or' filters can only check equality Now for the sake of datanucleus and datastore we changed the functionality to be equality for the time bein

[appengine-java] 'or' filters can only check equality

2010-07-14 Thread Vikas Hazrati
Hi, We have the following named query in JPA which we want to execute on the datastore @NamedQuery(name="User.findActiveByUsernamePattern", query="SELECT DISTINCT user " + "FROM User as user " + "WHERE firstName like :p