Re: [appengine-java] JDO advise

2011-09-19 Thread Ravi Sharma
ANy particular problem?? I would design these classes like this... @PersistenceCapable(detachable = true) public class User implements Serializable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; private String email; private String firstName;

Re: [appengine-java] How to efficiently retrieve all the keys of a particular entity

2011-09-15 Thread Ravi Sharma
Did u try Cursors? http://code.google.com/appengine/docs/java/datastore/queries.html#Query_Cursors On Thu, Sep 15, 2011 at 1:20 PM, cghersi cristiano.ghe...@gmail.com wrote: Hi all, I'm facing a little problem of scalability. I'm using JDO to query my datastore. I need to retrieve all the

Re: [appengine-java] Re: BigTable LIKE

2011-08-29 Thread Ravi Sharma
Lets say you have book Harry potter If you want to search this withH or Ha Har Harr then this facility provided by google app engine, instead of Like use startWith . Else if you really want to search it with arry or rry basically any word in it, then you may saev every book name as SetString

Re: [appengine-java] Re: BigTable LIKE

2011-08-29 Thread Ravi Sharma
- this later is indexed by the framework. On Aug 29, 4:01 am, Ravi Sharma ping2r...@gmail.com wrote: Lets say you have book Harry potter If you want to search this withH or Ha Har Harr then this facility provided by google app engine, instead of Like use startWith . Else if you really want

Re: [appengine-java] Re: Facebook Federated Login

2011-07-08 Thread Ravi Sharma
No You can not use federated login for facebook.. i have used facebook login like this http://techsravi.blogspot.com/2011/05/facebook-login-on-google-app-enginejava.html 2011/7/8 Andrei Cosmin Fifiiţă andrei.fifi...@gmail.com I already use Federated login for google and yahoo (getting the

Re: [appengine-java] Introduce a delay in client side java code

2011-06-15 Thread Ravi Sharma
I think you partially answered your self, If you cant do it on server then use Thread.sleep at client side. also you have option to use DelayQueue at client side(if its not GWT) http://download.oracle.com/javase/6/docs/api/java/util/concurrent/DelayQueue.html Put your all request on

Re: [appengine-java] GAE - Java - JSON?

2011-05-20 Thread Ravi Sharma
Look into Spring 3.0+, they have this fucntionality inbuilt, Just by annotation you can specify whether eu want output as Json or xml etc. I havent tried it but i have seen such video fromSpringSource On Fri, May 20, 2011 at 1:11 PM, Pop Vasile vasile@gmail.com wrote: Hi, I want to

Re: [appengine-java] Re: how to transfer request to a different servlet ?

2011-05-15 Thread Ravi Sharma
Using Spring MVC you could use it to solve the problem. Basically you want different Controller for http://www.mainsite.com and http://test.mainsite.com I have used it in one of my application. I write all the steps in a blog here. I hope it will helpfull

[appengine-java] Facebook Login integration with java appengine

2011-05-14 Thread Ravi Sharma
Hi, I am using http://code.google.com/p/facebook-java-api/ to login using facebook. But unable to do so as documenttaion is not quite completed there and posted my problem on this site but long time no response. I am sure in this group many people must have done with their java app to login using

Re: [appengine-java] Re: Facebook Login integration with java appengine

2011-05-14 Thread Ravi Sharma
Thanks all for your replys. SOme how i made it work with facebook_java_api project and posted the tutorial here http://techsravi.blogspot.com/2011/05/facebook-login-on-google-app-enginejava.html face4j looks quite promising too...i will look into it too. Thanks Ravi. On Sat, May 14, 2011 at

[appengine-java] Task Queue Strange Errors/Defects

2011-04-30 Thread Ravi Sharma
Hi , I have a chained task which runs every 1 second(Still wondering how can i run it every 3 seconds) Task code is something like this try{ //Do something //read data store and update datastore }catch(Throwable ex){

[appengine-java] Re: [google-appengine] Re: Task Queue Strange Errors/Defects

2011-04-30 Thread Ravi Sharma
I have not mentioned any retry count...so i guess whatever the default one is being used. (Actually i never want to retry if one fails next one will take care .. Do you know how to never retry a task.) On Sat, Apr 30, 2011 at 3:48 PM, Brandon Donnelson branflake2...@gmail.comwrote: Did they

Re: [appengine-java] Re: can I send something like upload finished answere from HTTP servlet to my application ?

2011-04-29 Thread Ravi Sharma
Hi Manvel, I dont see anything related to Channel in your code. Channel API is only for sending Message from SERVER TO CLIENT http://code.google.com/appengine/docs/java/channel/ Ravi. On Fri, Apr 29, 2011 at 11:50 AM, Manvel Saroyan saroy...@gmail.com wrote: Thank you Ravi Sharma

[appengine-java] Indexing Problem...Defect

2011-04-26 Thread Ravi Sharma
Hi, I got a weird index problem I had a entity claas A like his Class A{ //Few properties SetKey locationIds; Date lastSaveDate; } and i was querying it like this select * from A where locationIds = SomeKey order by lastSaveDate DESC It was working good... then i needed to add extra property

Re: [appengine-java] Re: Channel API

2011-04-25 Thread Ravi Sharma
Thanks for the reply Moishe. This helps at least now i know i am going in right direction. On Mon, Apr 25, 2011 at 2:42 PM, Moishe mois...@google.com wrote: My question: 1) Is it the right way to distribute the message to each client. My app requirment is that everybody(online user)

[appengine-java] Channel API

2011-04-22 Thread Ravi Sharma
Hi, I have just started using Channel API and it look to work fine. But there are few things i would like to know/clear/understand about my design. My Design: Currently when my site's page load it creates a token at server and injet into HTML page, GWT then read the token and start listening to

Re: [appengine-java] How to model object with lots of small properties

2011-04-10 Thread Ravi Sharma
May be you can do womething like this class HouseProperty{ Key id; String Name; } in above class you can create your all properties like hasAirCond,hasInternet etc. One property per Row. and in House you can have somethin glike this class House{ SetKey properties; } and if some house has

Re: [appengine-java] Re: Persistant Objects to GWT front-end (and vice versa)

2011-01-26 Thread Ravi Sharma
try Spring Roo On Wed, Jan 26, 2011 at 8:08 PM, GeneralSlaine lennart.ben...@gmail.comwrote: Thanks all for the feedback. I guess I will start with having a good look at Objectify. Other question:is there any open source project that you guys know of which fully generates a gui

[appengine-java] JDO - Set property question

2011-01-07 Thread Ravi Sharma
Hi, I have a entity like this Class AdPost{ ...few property SetKey locations; SetKey categories; } when i am running a query like select AdPost where locations = oneLocation categories == oneCategory (pseudo code) where oneLocation is one valid key of a location and oneCategory is a valid key of

Re: [appengine-java] Re: JDO - Set property question

2011-01-07 Thread Ravi Sharma
be downloaded from http://jcp.org/aboutJava/communityprocess/mrel/jsr243/index3.html -matthew On Jan 7, 5:24 am, Ravi Sharma ping2r...@gmail.com wrote: Hi, I have a entity like this Class AdPost{ ...few property SetKey locations; SetKey categories; } when i am running a query

Re: [appengine-java] Re: Mvenizing GAE/GWT project

2010-09-22 Thread Ravi Sharma
actually i was following this link http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-plugin-for-eclipse.html may be i am not able to understand it or i am doing something wrong... I have tried this roo pom too but i am not able to make it work. Do you guys have a sample pom for

Re: [appengine-java] Re: Mvenizing GAE/GWT project

2010-09-21 Thread Ravi Sharma
). I'd recommend that you use the latest version of the plugin and install the appengine sdk using mvn gae:unpack. Mo. On 20 Sep., 21:05, Ravi Sharma ping2r...@gmail.com wrote: Hi All, I am trying to maenize my exisitng GAE-GWT project. So first i started with a sample new project

[appengine-java] Mvenizing GAE/GWT project

2010-09-20 Thread Ravi Sharma
Hi All, I am trying to maenize my exisitng GAE-GWT project. So first i started with a sample new project as mentioned here http://code.google.com/p/maven-gae-plugin/ I created a project with this command as mentioned on this page mvn archetype:generate -DarchetypeGroupId=net.kindleit

Re: [appengine-java] Re: Confused by jdo relationships

2010-07-07 Thread Ravi Sharma
relational attributes in a core database class. What do you think? Greets Poe On 7 Jul., 01:25, AC acol...@gmail.com wrote: Thanks. That answers my question. On Jul 6, 3:18 pm, Ravi Sharma ping2r...@gmail.com wrote: You need to understand the concept of Entity group here

Re: [appengine-java] One-to-many relationship

2010-06-15 Thread Ravi Sharma
ur DB connection is closed by the time you try to select Address list(i am assuming writing phone is just a typo) first time. Either select/iterate the list before closing the pm in method userDao.getUser(TEST_USER_ID); or use (defaultFetchGroup = true) for ListAddress addresses declartion like

Re: [appengine-java] Re: Date based sorting and result pagination

2010-06-10 Thread Ravi Sharma
you are already sorting on date..and that can be best candidate for paging too but u may need indexes in both direction(asc,desc) for creation date. lets say ur entity has fololowing prooerty on which u will fliter propA propB creationData so u will write basic query like select * from

[appengine-java] JDO QUery to filter on List property

2010-05-22 Thread Ravi Sharma
Hi All JDO Experts, I am trying to write JDO query to query on List property but didnt find in documentaion on google app site. Class InterestedParty { Key id; ListKey parties; } So basically now i want to query all IntrestedParties where parties list contain User(1) or User(5) etc. So i expect

Re: [appengine-java] Re: Junit Problem

2010-05-21 Thread Ravi Sharma
What about the code which reads the data? How we will test it if can't persist the data in test cases. Sent from my iPhone On 21 May 2010, at 15:33, Unni Panicker o4tec...@gmail.com wrote: When you run the server , data gets persisted and u can view the data using the console

Re: [appengine-java] SDK 1.3.4 released!

2010-05-19 Thread Ravi Sharma
I Downloaded the SDK and tried to create SDK 1.3.4 in eclipse. The Zip file was unzipped as D:\library\appengine-java-sdk-1.3.4, so while adding SDK in eclipse i choose this as Installation dir. But after choosing it says failed to initialize App ENgine SDK at D:\library\appengine-java-sdk-1.3.4.

Re: [appengine-java] SDK 1.3.4 released!

2010-05-19 Thread Ravi Sharma
-java-sdk-1.3.4, after moving it out it worked well. Is this your issue also? Thanks, Patrick On Wed, May 19, 2010 at 4:38 PM, Ravi Sharma ping2r...@gmail.com wrote: I Downloaded the SDK and tried to create SDK 1.3.4 in eclipse. The Zip file was unzipped as D:\library\appengine-java-sdk

Re: [appengine-java] Re: is createFederatedLoginURL() working?

2010-05-18 Thread Ravi Sharma
Drasko, I checked your demo,its great. I found one small problem. For Yahoo and google it works fine but for AOL and OpenId it go to goole login page. does this mean we can use only google and yahoo or its something you have just not provided correct info while creating the urls. Thyanks, Ravi.

Re: [appengine-java] Re: Prerelease 1.3.4 SDK ready for download

2010-05-13 Thread Ravi Sharma
I tried using it in dev mode in my machine and used the following method to create login URL. UserServiceFactory.getUserService().createLoginURL(/index.htm, www.test.com,emai...@hotmail.com, null); and i got the login url as http://127.0.0.1:/_ah/login?continue=%2Findex.htm and i am

[appengine-java] Domain Setup

2010-05-09 Thread Ravi Sharma
Hi, I have a application running on Google app engine and lets say i am accessing it through www.mysite.com (Mysite.com is registered on google apps) Now i have created another application which i want to access through newapp.mysite.com (through sub domain of above application). Is it possible?

Re: [appengine-java] Critical issue with INDEX

2009-12-09 Thread Ravi Sharma
of the issue and have already begun investigating it. I'll open up a public issue to mirror our progress so everyone can follow it and add their comments. On Wed, Dec 9, 2009 at 1:09 AM, Ravi Sharma ping2r...@gmail.com wrote: Can anyone from google look into this issue please? On Mon, Dec 7

Re: [appengine-java] Re: XMPP Message not being received

2009-12-09 Thread Ravi Sharma
chat.sendMessage(messageXml); } public void disconnect() throws XMPPException { connection.disconnect(); }} On Tue, Dec 1, 2009 at 11:24 PM, Ravi Sharma ping2r...@gmail.com wrote: Hi Ikai, Yes you are right you might have got 10 messages/minute. As i said i

Re: [appengine-java] Critical issue with INDEX

2009-12-07 Thread Ravi Sharma
Hi Jason and all Google guys, This is real big problem and its not just canslimbot application but there are many applications, in today's mails i can see 3 people have faced this problem i ncluding m e. I am sure there is some defect in index building. Can you please have a look. Thanks, Ravi.

[appengine-java] Indexing Problem(always return incorrect number of rows)

2009-12-04 Thread Ravi Sharma
Hi, After indexing my all queries returning fewer rows. I have this class public class AudioMedia{ @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private String title; . @Persistent private String

Re: [appengine-java] Re: XMPP Message not being received

2009-12-01 Thread Ravi Sharma
at this problem? Thanks, Ravi On Nov 30, 8:19 pm, Ravi Sharma ping2r...@gmail.com wrote: Hi, Thanks for looking into it.I am sending the small code which i am using. I am using smack library. This behaviour is not consistant. Once i was able to send messges at every 5 seconds(and sent

Re: [appengine-java] Re: XMPP Message not being received

2009-11-30 Thread Ravi Sharma
to do that I might need 2/6 = minutes(6 calls per minutes) or 55 hours or two and half day. Am I suppose to keep running my program for 2 and half days to make those 2 calls. I really need some help here. Thanks in Advance Ravi. On Nov 25, 9:50 pm, Ravi Sharma ping2r

Re: [appengine-java] problem in XMPP sendMessage()

2009-11-28 Thread Ravi Sharma
I am not sure, but i think you dont need to(should not) set fromJid, as message will be sent from your application JID. I am running following code and its working . JID jid = new JID(responseJid); Message msg = new MessageBuilder() .withRecipientJids(jid)

[appengine-java] XMPP Message not being received

2009-11-25 Thread Ravi Sharma
Hi, I am trying to write a XMPP Client. When i send a mesage from Client to GAE application, it always reach the server and then server reply back. When i ran the client first time it worked for 3-4 times. but then now i am not receiving any message on client side. I checked the server logs and it

Solved : Re: [appengine-java] Re: XML to Object libraries and Vice Versa

2009-11-24 Thread Ravi Sharma
. Thanks, Ravi. On Nov 8, 5:50 pm, LUAI KASSAR luai.kas...@gmail.com wrote: Use Apache betwixt ,its works on GAEhttp://commons.apache.org/betwixt/ On Sun, Nov 8, 2009 at 7:46 PM, Ravi Sharma ping2r...@gmail.com wrote: I am not sure if i understand you. Can you explain bit more

[appengine-java] Re: XML to Object libraries and Vice Versa

2009-11-08 Thread Ravi Sharma
I am not sure if i understand you. Can you explain bit more, an example or link would be great. I can do normal Sax parsing but then writing code for each different kind of xml is gonna be very tidious work.So looking for some GAE supported libararies like JAXB or XMLBEAN My Requirment is as

[appengine-java] XMPP Message Length limit

2009-11-08 Thread Ravi Sharma
Hi, Is is there any limit on maximum length of XMPP message.? Ravi. --~--~-~--~~~---~--~~ 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] Child key is always null

2009-09-24 Thread Ravi Sharma
Hi, I have following classes. I am creating a country object first and it get persisted, then i read its key field and i get some value. Basically i start a transaction and persist it close/commit the transaction. then i create a State and set Country for state object as the country(reload the