[appengine-java] Re: Instant messenger

2010-12-29 Thread pdzarkar
Hi Sumi,
I am starting working on oauth integration soon. If there any
success,i will help you on this issue.

Regards,
Piyush

On Dec 30, 3:45 am, Sumi  wrote:
> Why do you say not many successful oAuth integrations?I have tried using
> them but with so success...is there anyone from google who can comment on
> this... i did everything mentioned in gdata oauth integrations but still no
> luck..
>
>
>
>
>
>
>
> On Tue, Dec 28, 2010 at 9:50 AM, A. Stevko  wrote:
> > Hello Piyush,
>
> > re: Authentication and Authorization APIs
> > Every service has their own authentication API. Many are coming to use the
> > OAuth standard although I've not seen many successful integration efforts
> > yet.
> >http://code.google.com/appengine/docs/java/oauth/
>
> > There is google user
> > authentication support into the appengine platform with this package:
>
> >http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
>
> > The external services you are referring are out of the scope of this forum.
> > You might want to research them directly.
> > I've included some links to expedite your efforts.
> >http://code.google.com/apis/accounts/docs/GettingStarted.html
> >http://developers.facebook.com/docs/authentication/
> >http://developer.yahoo.com/auth/
>
> > Another resource that is is of broader scope and therefore more appropriate
> > for many the issues you are going to face ishttp://stackoverflow.com/
>
> > BTW, I'm open for hire presently...
>
> > 
> > On Tue, Dec 28, 2010 at 2:14 AM, Piyush Zarkar  wrote:
>
> >> Thanks Stevko for quick reply.
> >> Your suggestions are really helpful to start with.
> >> I have decided to select servlets for writing code, GWT for creating
> >> GUI as you suggested.
> >> But i am still confused how to authenticate google users , facebook users
> >> ,yahoo users etc. Is there any authentication API ?
> >> I am just collecting requirements at this moment. Once all the
> >> requirements freezes, i will start working on code and GUI.
> >> If you have any suggestion please let me know.
> >> Hope you will help me.
>
> >> --
> >> 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+unsubscr...@googlegroups.com >>  unsubscr...@googlegroups.com>
> >> .
> >> For more options, visit this group at
> >>http://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > -- A. Stevko
> > ===
> > "If everything seems under control, you're just not going fast enough." M.
> > Andretti
>
> >  --
> > 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+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Instant messenger

2010-12-29 Thread pdzarkar
Hi Andy,
I visited ninuku.com.I found its an interesting website. The idea
behind application is awesome. I think you were working there ?
And again thanks for valuable suggestions.

Regards,
Piyush



On Dec 30, 3:22 am, "A. Stevko"  wrote:
> > Have you worked on XMPP or instant messenger before ?
>
> No, I haven't had the opportunity yet to work with the IM libraries although
> they do seem to be straight forward.
>
> Do i need any other tool other than eclipse,GWT fro development ?
>
> Besides using nearly every kind of browser (with the gwt dev addon), you can
> get away with just using eclipse with the google plug-in to do everything.
> There are a bunch of tools and best practices out there that will make your
> life easier in the long run. The links below are for Windows specific utils
> since I'm mostly working on Windows for local and Linux for remote.
>
> * Definitely use a version control system - I recommend SVN, There are
> others that are as good.http://tortoisesvn.tigris.org/ (windows shell svn 
> extensions)http://subversion.tigris.org/
>
> * While many people are drawn to using JDO or JPA for the persistent data
> layers - both have a tough learning curve. I recommend using Objectify to
> hide much of the complexities in using Big Table's no-sql 
> nature.http://code.google.com/p/objectify-appengine/
>
> * As you advance, you will want to use Google Guice & GIN to simplify &
> document the dependencieshttp://code.google.com/p/google-guice/
>
> * A local proxy service brings daylight to the way the components
> communicate on the network.http://www.fiddler2.com/fiddler2/
>
> * Firefox add-ons that are invaluable
> Firebug! - allows you to view the GWT client logs in the browser window
> instead of viewing them in the eclipse dev console (also works w/ production
> instances)
> Scrapbook Plus - for literally snapshotting the current page state with live
> html/image/js
> Web Developer - for inspecting the page contents and layout
> View Cookies - for inspecting/editing cookies
>
> * The MVP pattern is a great way to design a medium to highly complex
> application's architecture.
>
> * Take the time to look at the Session Videos from the last two years of
> Google IO. They will change your life - they did 
> mine.http://www.google.com/events/io/2010/sessions.html
>
> I've got an GAE/GWT application deployed that was developed using all of the
> above technologies. If you are a Facebook user, give it a free 
> trial.www.ninuku.com
>
> --Andy Stevko
>
>
>
>
>
>
>
>
>
> On Wed, Dec 29, 2010 at 4:49 AM, pdzarkar  wrote:
> > Hi Andy,
> > I can't hire you because i am just a small developer and doing this
> > for learning API's and new technology.
> > Have you worked on XMPP or instant messenger before ?
> > Do i need any other tool other than eclipse,GWT fro development ?
>
> > On Dec 28, 10:50 pm, "A. Stevko"  wrote:
> > > Hello Piyush,
>
> > > re: Authentication and Authorization APIs
> > > Every service has their own authentication API. Many are coming to use
> > the
> > > OAuth standard although I've not seen many successful integration efforts
> > > yet.http://code.google.com/appengine/docs/java/oauth/
>
> > > There is google user
> > > authentication support into the appengine platform with this package:
> >http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
>
> > > The external services you are referring are out of the scope of this
> > forum.
> > > You might want to research them directly.
> > > I've included some links to expedite your efforts.
> >http://code.google.com/apis/accounts/docs/GettingStarted.htmlhttp://d...
>
> > > Another resource that is is of broader scope and therefore more
> > appropriate
> > > for many the issues you are going to face ishttp://stackoverflow.com/
>
> > > BTW, I'm open for hire presently...
>
> > >  > .>
>
> > > On Tue, Dec 28, 2010 at 2:14 AM, Piyush Zarkar 
> > wrote:
> > > > Thanks Stevko for quick reply.
> > > > Your suggestions are really helpful to start with.
> > > > I have decided to select servlets for writing code, GWT for creating
> > GUI as
> > > > you suggested.
> > > > But i am still confused how to authenticate google users , facebook
> > users
> > > > ,yahoo users etc. Is there any authentication API ?
> > > > I am just collecting requirements at this moment. Once all the
> > requirements
> > > > freezes, i will start working on code and GUI.
> > > > If you have any suggestion please let me know.
> > > > Hope you will help me.
>
> > > > --
> > > > 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+unsubscr...@googlegroups.com > > >  unsubscr...@googlegro

[appengine-java] google eclipse plugin开发gae,wa r目录不能同步

2010-12-29 Thread EtuO
参照http://googlewebtoolkit.blogspot.com/2010/08/how-to-use-google-
plugin-for-eclipse.html的官方博客。将一个maven工程改成eclipse热部署。
现在的状态是启动都是ok的,工作目录是:src/main/webapp,启动的目录是:target/your-project-name,访问正
常。
问题是工作目录的文件修改时不能同步到启动目录中去。
例如我在工作目录下修改一个jsp文件,用浏览器访问不能生效,因为启动目录里面文件还没有改变。

那位碰到过这个问题的,指教下。

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: GWT+servlet - how to redirect to a different page

2010-12-29 Thread dreamer
"onSubmitComplete" is not getting fired in IE, where as it is getting
fired in firefox and chrome.


 public void onSubmitComplete(SubmitCompleteEvent event) {
  //shownextpage("/page2.html");
  Window.alert("addSubmitCompleteHandler");
  Window.Location.assign("/page2.html");
  }

On Dec 28, 11:50 am, Sumi  wrote:
> Did you try  Window.Location.assign(servelt name)
>
> On Tue, Dec 28, 2010 at 3:10 AM, dreamer wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > I have a GWT entry point that submits to servlet , build using
> > "FormPanel".
> > I am trying to build page flow using servlet "RequestDispatcher" or
> > "sendRedirect", even though no exception GAE is not forwarding to next
> > page.
>
> > --
> > 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+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Lightweight & Best performing MVC framework - Recommendation

2010-12-29 Thread nischalshetty
That was Struts 2, made a mistake in the spelling


-N

On Dec 30, 10:08 am, nischalshetty  wrote:
> Strust 2 , just the default one, without putting in anything unwanted
> into it. I use it for m apphttp://justunfollow.comand seems to work
> well.
>
> -N
>
> On Dec 30, 12:02 am, "Ikai Lan (Google)" 
> wrote:
>
>
>
>
>
>
>
> > Um ... those are like the opposite of lightweight.
>
> > Here are some I like:
>
> > Play Framework: probably the most underrated Java framework I've ever 
> > seehttp://www.playframework.org/
>
> > Slim3: built for App Engine. Cons: kind of needs deep Eclipse 
> > integrationhttp://sites.google.com/site/slim3appengine/
>
> > There are more. I'll post in a bit. What are other frameworks everyone else
> > here likes?
>
> > --
> > Ikai Lan
> > Developer Programs Engineer, Google App Engine
> > Blogger:http://googleappengine.blogspot.com
> > Reddit:http://www.reddit.com/r/appengine
> > Twitter:http://twitter.com/app_engine
>
> > On Wed, Dec 29, 2010 at 10:49 AM, Nasif Noorudeen  wrote:
> > > spring & jsf
>
> > > On 12/29/10, Sree  wrote:
> > > > Hello,
>
> > > > I am new to Java and App Engine, and coming from ASP.NET C# and
> > > > Windows Azure world. I am looking for a lightweight & best performing
> > > > java based MVC framework.  I would like to migrate my ASP.NET MVC
> > > > project to App Engine (Java).
>
> > > > It would be great if you can share your experience.  I am open to
> > > > Python as well, but learning Java is faster than Python, since I am
> > > > good at C#.
>
> > > > Thanks in Advance.
>
> > > > Regards
> > > > Sree
>
> > > > --
> > > > 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+unsubscr...@googlegroups.com > > >  unsubscr...@googlegroups.com>
> > > .
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > > --
> > > 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+unsubscr...@googlegroups.com > >  unsubscr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Index building issue

2010-12-29 Thread Vik
Hie

Today we deployed a new version of app which includes some newly added
entity.

Now, after deploying to app engine the app is throwing exception index
building and not ready to serve (not exact words).

So, in the datastore indexes section I can see the status as
PocVacationSchedule
pocId ▲ , endDate ▲
*Building*
Queued: 1 Running: 0 Completed: 1 Total: 2


This is in the same status from last half an hour. Any idea how time will it
take?  There is no data in the entity at this moment.


Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Lightweight & Best performing MVC framework - Recommendation

2010-12-29 Thread nischalshetty
Strust 2 , just the default one, without putting in anything unwanted
into it. I use it for m app http://justunfollow.com and seems to work
well.

-N

On Dec 30, 12:02 am, "Ikai Lan (Google)" 
wrote:
> Um ... those are like the opposite of lightweight.
>
> Here are some I like:
>
> Play Framework: probably the most underrated Java framework I've ever 
> seehttp://www.playframework.org/
>
> Slim3: built for App Engine. Cons: kind of needs deep Eclipse 
> integrationhttp://sites.google.com/site/slim3appengine/
>
> There are more. I'll post in a bit. What are other frameworks everyone else
> here likes?
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> Blogger:http://googleappengine.blogspot.com
> Reddit:http://www.reddit.com/r/appengine
> Twitter:http://twitter.com/app_engine
>
>
>
>
>
>
>
> On Wed, Dec 29, 2010 at 10:49 AM, Nasif Noorudeen  wrote:
> > spring & jsf
>
> > On 12/29/10, Sree  wrote:
> > > Hello,
>
> > > I am new to Java and App Engine, and coming from ASP.NET C# and
> > > Windows Azure world. I am looking for a lightweight & best performing
> > > java based MVC framework.  I would like to migrate my ASP.NET MVC
> > > project to App Engine (Java).
>
> > > It would be great if you can share your experience.  I am open to
> > > Python as well, but learning Java is faster than Python, since I am
> > > good at C#.
>
> > > Thanks in Advance.
>
> > > Regards
> > > Sree
>
> > > --
> > > 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+unsubscr...@googlegroups.com > >  unsubscr...@googlegroups.com>
> > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
>
> > --
> > 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+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Instant messenger

2010-12-29 Thread A. Stevko
Sumi - I personally have not seen lots of successful examples of oauth
deployed although it seems to be the right direction.
I suggest you start another thread with your experiences and details...

On Wed, Dec 29, 2010 at 6:03 PM, A. Stevko  wrote:

> A couple of other resources Piyusk are:
> The issue ticket base at
> http://code.google.com/p/googleappengine/issues/list
> and
> the twice monthly IRC chat with the GAE developers.
>
>
>
> On Wed, Dec 29, 2010 at 2:45 PM, Sumi  wrote:
>
>>
>> Why do you say not many successful oAuth integrations?I have tried using
>> them but with so success...is there anyone from google who can comment on
>> this... i did everything mentioned in gdata oauth integrations but still no
>> luck..
>>
>>
>>
>> On Tue, Dec 28, 2010 at 9:50 AM, A. Stevko  wrote:
>>
>>> Hello Piyush,
>>>
>>> re: Authentication and Authorization APIs
>>> Every service has their own authentication API. Many are coming to use
>>> the OAuth standard although I've not seen many successful integration
>>> efforts yet.
>>> http://code.google.com/appengine/docs/java/oauth/
>>>
>>> There is google user
>>> authentication support into the appengine platform with this package:
>>>
>>> http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/users/package-summary.html
>>>
>>> The external services you are referring are out of the scope of this
>>> forum. You might want to research them directly.
>>> I've included some links to expedite your efforts.
>>> http://code.google.com/apis/accounts/docs/GettingStarted.html
>>> http://developers.facebook.com/docs/authentication/
>>> http://developer.yahoo.com/auth/
>>>
>>> Another resource that is is of broader scope and therefore more
>>> appropriate for many the issues you are going to face is
>>> http://stackoverflow.com/
>>>
>>> BTW, I'm open for hire presently...
>>>
>>>
>>>
>>>
>>> 
>>> On Tue, Dec 28, 2010 at 2:14 AM, Piyush Zarkar wrote:
>>>
 Thanks Stevko for quick reply.
 Your suggestions are really helpful to start with.
 I have decided to select servlets for writing code, GWT for creating
 GUI as you suggested.
 But i am still confused how to authenticate google users , facebook
 users ,yahoo users etc. Is there any authentication API ?
 I am just collecting requirements at this moment. Once all the
 requirements freezes, i will start working on code and GUI.
 If you have any suggestion please let me know.
 Hope you will help me.

 --
 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+unsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

>>>
>>>
>>>
>>> --
>>> -- A. Stevko
>>> ===
>>> "If everything seems under control, you're just not going fast enough."
>>> M. Andretti
>>>
>>>
>>>
>>>
>>>
>>>  --
>>> 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+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>
>>  --
>> 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+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>
>
> --
> -- A. Stevko
> ===
> "If everything seems under control, you're just not going fast enough." M.
> Andretti
>
>
>
>
>
>


-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 

Re: [appengine-java] Instant messenger

2010-12-29 Thread A. Stevko
A couple of other resources Piyusk are:
The issue ticket base at
http://code.google.com/p/googleappengine/issues/list
and
the twice monthly IRC chat with the GAE developers.



On Wed, Dec 29, 2010 at 2:45 PM, Sumi  wrote:

>
> Why do you say not many successful oAuth integrations?I have tried using
> them but with so success...is there anyone from google who can comment on
> this... i did everything mentioned in gdata oauth integrations but still no
> luck..
>
>
>
> On Tue, Dec 28, 2010 at 9:50 AM, A. Stevko  wrote:
>
>> Hello Piyush,
>>
>> re: Authentication and Authorization APIs
>> Every service has their own authentication API. Many are coming to use the
>> OAuth standard although I've not seen many successful integration efforts
>> yet.
>> http://code.google.com/appengine/docs/java/oauth/
>>
>> There is google user
>> authentication support into the appengine platform with this package:
>>
>> http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/users/package-summary.html
>>
>> The external services you are referring are out of the scope of this
>> forum. You might want to research them directly.
>> I've included some links to expedite your efforts.
>> http://code.google.com/apis/accounts/docs/GettingStarted.html
>> http://developers.facebook.com/docs/authentication/
>> http://developer.yahoo.com/auth/
>>
>> Another resource that is is of broader scope and therefore more
>> appropriate for many the issues you are going to face is
>> http://stackoverflow.com/
>>
>> BTW, I'm open for hire presently...
>>
>>
>>
>>
>> 
>> On Tue, Dec 28, 2010 at 2:14 AM, Piyush Zarkar wrote:
>>
>>> Thanks Stevko for quick reply.
>>> Your suggestions are really helpful to start with.
>>> I have decided to select servlets for writing code, GWT for creating
>>> GUI as you suggested.
>>> But i am still confused how to authenticate google users , facebook users
>>> ,yahoo users etc. Is there any authentication API ?
>>> I am just collecting requirements at this moment. Once all the
>>> requirements freezes, i will start working on code and GUI.
>>> If you have any suggestion please let me know.
>>> Hope you will help me.
>>>
>>> --
>>> 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+unsubscr...@googlegroups.com
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/google-appengine-java?hl=en.
>>>
>>
>>
>>
>> --
>> -- A. Stevko
>> ===
>> "If everything seems under control, you're just not going fast enough."
>> M. Andretti
>>
>>
>>
>>
>>
>>  --
>> 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+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>  --
> 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+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>



-- 
-- A. Stevko
===
"If everything seems under control, you're just not going fast enough." M.
Andretti

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] google oauth - Help needed

2010-12-29 Thread Sumi
I spent the past few days implementing google oauth for gdata API s
integration with no success...
I followed the steps mentioned in
http://code.google.com/apis/accounts/docs/OAuth.html#prepServiceCall

Is there anyone from google who can confirm that google aouth is not broken
and its working...and if it is working..are there any configuration
omissions in the documentation?

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Instant messenger

2010-12-29 Thread Sumi
Why do you say not many successful oAuth integrations?I have tried using
them but with so success...is there anyone from google who can comment on
this... i did everything mentioned in gdata oauth integrations but still no
luck..


On Tue, Dec 28, 2010 at 9:50 AM, A. Stevko  wrote:

> Hello Piyush,
>
> re: Authentication and Authorization APIs
> Every service has their own authentication API. Many are coming to use the
> OAuth standard although I've not seen many successful integration efforts
> yet.
> http://code.google.com/appengine/docs/java/oauth/
>
> There is google user
> authentication support into the appengine platform with this package:
>
> http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/users/package-summary.html
>
> The external services you are referring are out of the scope of this forum.
> You might want to research them directly.
> I've included some links to expedite your efforts.
> http://code.google.com/apis/accounts/docs/GettingStarted.html
> http://developers.facebook.com/docs/authentication/
> http://developer.yahoo.com/auth/
>
> Another resource that is is of broader scope and therefore more appropriate
> for many the issues you are going to face is http://stackoverflow.com/
>
> BTW, I'm open for hire presently...
>
>
>
>
> 
> On Tue, Dec 28, 2010 at 2:14 AM, Piyush Zarkar  wrote:
>
>> Thanks Stevko for quick reply.
>> Your suggestions are really helpful to start with.
>> I have decided to select servlets for writing code, GWT for creating
>> GUI as you suggested.
>> But i am still confused how to authenticate google users , facebook users
>> ,yahoo users etc. Is there any authentication API ?
>> I am just collecting requirements at this moment. Once all the
>> requirements freezes, i will start working on code and GUI.
>> If you have any suggestion please let me know.
>> Hope you will help me.
>>
>> --
>> 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+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>
>
> --
> -- A. Stevko
> ===
> "If everything seems under control, you're just not going fast enough." M.
> Andretti
>
>
>
>
>
>  --
> 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+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: Instant messenger

2010-12-29 Thread A. Stevko
>
> Have you worked on XMPP or instant messenger before ?


No, I haven't had the opportunity yet to work with the IM libraries although
they do seem to be straight forward.

Do i need any other tool other than eclipse,GWT fro development ?


Besides using nearly every kind of browser (with the gwt dev addon), you can
get away with just using eclipse with the google plug-in to do everything.
There are a bunch of tools and best practices out there that will make your
life easier in the long run. The links below are for Windows specific utils
since I'm mostly working on Windows for local and Linux for remote.

* Definitely use a version control system - I recommend SVN, There are
others that are as good.
http://tortoisesvn.tigris.org/  (windows shell svn extensions)
http://subversion.tigris.org/

* While many people are drawn to using JDO or JPA for the persistent data
layers - both have a tough learning curve. I recommend using Objectify to
hide much of the complexities in using Big Table's no-sql nature.
http://code.google.com/p/objectify-appengine/

* As you advance, you will want to use Google Guice & GIN to simplify &
document the dependencies
http://code.google.com/p/google-guice/

* A local proxy service brings daylight to the way the components
communicate on the network.
http://www.fiddler2.com/fiddler2/

* Firefox add-ons that are invaluable
Firebug! - allows you to view the GWT client logs in the browser window
instead of viewing them in the eclipse dev console (also works w/ production
instances)
Scrapbook Plus - for literally snapshotting the current page state with live
html/image/js
Web Developer - for inspecting the page contents and layout
View Cookies - for inspecting/editing cookies

* The MVP pattern is a great way to design a medium to highly complex
application's architecture.

* Take the time to look at the Session Videos from the last two years of
Google IO. They will change your life - they did mine.
http://www.google.com/events/io/2010/sessions.html

I've got an GAE/GWT application deployed that was developed using all of the
above technologies. If you are a Facebook user, give it a free trial.
www.ninuku.com

--Andy Stevko


On Wed, Dec 29, 2010 at 4:49 AM, pdzarkar  wrote:

> Hi Andy,
> I can't hire you because i am just a small developer and doing this
> for learning API's and new technology.
> Have you worked on XMPP or instant messenger before ?
> Do i need any other tool other than eclipse,GWT fro development ?
>
>
> On Dec 28, 10:50 pm, "A. Stevko"  wrote:
> > Hello Piyush,
> >
> > re: Authentication and Authorization APIs
> > Every service has their own authentication API. Many are coming to use
> the
> > OAuth standard although I've not seen many successful integration efforts
> > yet.http://code.google.com/appengine/docs/java/oauth/
> >
> > There is google user
> > authentication support into the appengine platform with this package:
> http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
> >
> > The external services you are referring are out of the scope of this
> forum.
> > You might want to research them directly.
> > I've included some links to expedite your efforts.
> http://code.google.com/apis/accounts/docs/GettingStarted.htmlhttp://developers.facebook.com/docs/authentication/http://developer.yahoo.com/auth/
> >
> > Another resource that is is of broader scope and therefore more
> appropriate
> > for many the issues you are going to face ishttp://stackoverflow.com/
> >
> > BTW, I'm open for hire presently...
> >
> >  .>
> >
> >
> >
> >
> >
> >
> >
> >
> >
> > On Tue, Dec 28, 2010 at 2:14 AM, Piyush Zarkar 
> wrote:
> > > Thanks Stevko for quick reply.
> > > Your suggestions are really helpful to start with.
> > > I have decided to select servlets for writing code, GWT for creating
> GUI as
> > > you suggested.
> > > But i am still confused how to authenticate google users , facebook
> users
> > > ,yahoo users etc. Is there any authentication API ?
> > > I am just collecting requirements at this moment. Once all the
> requirements
> > > freezes, i will start working on code and GUI.
> > > If you have any suggestion please let me know.
> > > Hope you will help me.
> >
> > > --
> > > 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+unsubscr...@googlegroups.com unsubscr...@googlegroups.com>
> > > .
> > > For more options, visit this group at
> > >http://groups.google.com/group/google-appengine-java?hl=en.
> >
> > --
> > -- A. Stevko
> > ===
> > "If everything seems under control, you're just not going fast enough."
> M.
> > Andretti
>
> --
> You received this message because you are sub

Re: [appengine-java] Re: persistent and scalable global atomic counter: not possible with GAE?

2010-12-29 Thread Ikai Lan (Google)
Sweet. Remember that Memcache's INCR operation IS atomic.

Waiting to see your solution ... as well as what you are using it for =).

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Wed, Dec 29, 2010 at 12:38 PM, MG  wrote:

> Ikai, you are right - I don't need a counter, a sequence of unique and
> growing numbers will do. And I think I can make a scalable numeric
> sequence by combining a sharded counter with a memcache counter (and
> an occasional transaction). I'll post my solution when it's done.
>
> MG
>
> On Dec 29, 1:48 pm, "Ikai Lan (Google)" 
> 
> >
> wrote:
> > What are you building? With distributed systems, it can be tricky to do
> some
> > things. A single, scalable, atomic counter is an implementation for a
> > solution, not a solution to a problem. There may be an alternate
> > implementation that'll make your life easier but solve the problem at
> hand.
> >
> > --
> > Ikai Lan
>
> --
> 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+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Infinite loop of redirection related to 404

2010-12-29 Thread Dom Derrien
Hi everyone,

As documented in 
http://code.google.com/appengine/docs/java/config/webxml.html#Error_Handlers,
I've setup the 404 section in my web.xml:

404
/404.html


However, when I try to access http://.appspot.com/images/does-not-exist.png,
my browser prints a error page about a page which does not exist and
causes a redirect loop. The generated URL is:

http://.appspot.com/images/does-not-exist.png/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/index.jsp/

I've tried to reproduce the behavior on some public sites hosted on
appspot.com, but could not succeed. I think the ones I tried don't
have the 404 filter setup...

What am I doing wrong?

Thanks,
A+, Dom

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: persistent and scalable global atomic counter: not possible with GAE?

2010-12-29 Thread MG
Ikai, you are right - I don't need a counter, a sequence of unique and
growing numbers will do. And I think I can make a scalable numeric
sequence by combining a sharded counter with a memcache counter (and
an occasional transaction). I'll post my solution when it's done.

MG

On Dec 29, 1:48 pm, "Ikai Lan (Google)" 
wrote:
> What are you building? With distributed systems, it can be tricky to do some
> things. A single, scalable, atomic counter is an implementation for a
> solution, not a solution to a problem. There may be an alternate
> implementation that'll make your life easier but solve the problem at hand.
>
> --
> Ikai Lan

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Lightweight & Best performing MVC framework - Recommendation

2010-12-29 Thread Ikai Lan (Google)
Um ... those are like the opposite of lightweight.

Here are some I like:

Play Framework: probably the most underrated Java framework I've ever see
http://www.playframework.org/

Slim3: built for App Engine. Cons: kind of needs deep Eclipse integration
http://sites.google.com/site/slim3appengine/

There are more. I'll post in a bit. What are other frameworks everyone else
here likes?

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Wed, Dec 29, 2010 at 10:49 AM, Nasif Noorudeen  wrote:

> spring & jsf
>
> On 12/29/10, Sree  wrote:
> > Hello,
> >
> > I am new to Java and App Engine, and coming from ASP.NET C# and
> > Windows Azure world. I am looking for a lightweight & best performing
> > java based MVC framework.  I would like to migrate my ASP.NET MVC
> > project to App Engine (Java).
> >
> > It would be great if you can share your experience.  I am open to
> > Python as well, but learning Java is faster than Python, since I am
> > good at C#.
> >
> > Thanks in Advance.
> >
> > Regards
> > Sree
> >
> > --
> > 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+unsubscr...@googlegroups.com
> .
> > For more options, visit this group at
> > http://groups.google.com/group/google-appengine-java?hl=en.
> >
> >
>
> --
> 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+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Lightweight & Best performing MVC framework - Recommendation

2010-12-29 Thread Nasif Noorudeen
spring & jsf

On 12/29/10, Sree  wrote:
> Hello,
>
> I am new to Java and App Engine, and coming from ASP.NET C# and
> Windows Azure world. I am looking for a lightweight & best performing
> java based MVC framework.  I would like to migrate my ASP.NET MVC
> project to App Engine (Java).
>
> It would be great if you can share your experience.  I am open to
> Python as well, but learning Java is faster than Python, since I am
> good at C#.
>
> Thanks in Advance.
>
> Regards
> Sree
>
> --
> 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+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Re: persistent and scalable global atomic counter: not possible with GAE?

2010-12-29 Thread Ikai Lan (Google)
What are you building? With distributed systems, it can be tricky to do some
things. A single, scalable, atomic counter is an implementation for a
solution, not a solution to a problem. There may be an alternate
implementation that'll make your life easier but solve the problem at hand.

--
Ikai Lan
Developer Programs Engineer, Google App Engine
Blogger: http://googleappengine.blogspot.com
Reddit: http://www.reddit.com/r/appengine
Twitter: http://twitter.com/app_engine



On Wed, Dec 29, 2010 at 6:55 AM, dreamer wrote:

> It may be possible to simulate oracle sequence triggers, write some
> service
> on app engine that returns next number in sequence and every body else
> calls
> this service.
>
>
> On Dec 29, 6:30 am, Nichole  wrote:
> > Hi MG,
> >
> >Sharded counters help solve the concurrent write contention for an
> > entity.
> > Time (to the accuracy of milliseconds) helps to provide a one way
> > arrow towards a unique value.
> > Each request itself could be associated with an identity (this is up
> > to you, perhaps time in the request header).
> > 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  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Yes, keys are unique, but they are strings, and quite long (20+
> > > characters, from what I've seen). I do need unique and "growing"
> > > numeric counter.
> >
> > > On Dec 28, 11:20 pm, nischalshetty  wrote:
> >
> > > > Have a look at the Datastore "Key" thingy. The keys generated are
> > > > unique across the system IMO. Not sure though but that's what I
> > > > remember reading somewhere.
> >
> > > > -N
> >
> > > > On Dec 29, 7:43 am, MG  wrote:
> >
> > > > > Hello!
> >
> > > > > I need to create a global atomic counter (64-bit) in my AppEngine/J
> > > > > app. Like
> >
> > > > > long count = MyCounter.increment()
> >
> > > > > that will 100% guarantee that count will never ever be the same for
> > > > > two different requests, and that I will be able to increment it
> > > > > several million times/day initially, and much more if/when traffic
> > > > > increases. I do not really care if it skips a number or two
> > > > > occasionally: I can live with it returning a value larger than the
> > > > > actual number of calls, but I do need absolute uniqueness and
> > > > > reasonably linear growth (i.e. is two consecutive calls from a
> client
> > > > > should result in ascending counter values).
> >
> > > > > Is this possible to do with Google AppEngine? Sharded counters can
> > > > > ensure consistent counting, but not unique counts; memcache
> counters
> > > > > can ensure unique increments, but they are perishable and thus
> > > > > difficult (impossible?) to properly synchronize with persistent
> > > > > storage. Using one entity to read-update in a transaction will not
> > > > > scale...
> >
> > > > > Thanks,
> > > > > MG
>
> --
> 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+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: slf4j debug messages not in admin console

2010-12-29 Thread nacho
I tryied to log messages in DEBUG level following the instructions of
this page http://code.google.com/intl/es-AR/appengine/docs/java/runtime.html
and i can't log any DEBUG message.

If I use other higher levels works fine like @Tomas sayid.

Is this an appengine restriction?


On 28 dic, 05:19, radomir  wrote:
> I use SLF4J bridged to java.util.logging and I receive debug messages
> (using FINEST level in JUL config).
>
> On Dec 25, 11:48 pm, Tomas Vojtech  wrote:
>
> > Hello,
>
> > I use SLF4J for logging and if I use logger.debug or logger.trace no
> > message is shown in logs in administration console. Higher levels work
> > fine and are in the console.
>
> > Is problem in my application or where is problem?
>
> > blaf

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Lightweight & Best performing MVC framework - Recommendation

2010-12-29 Thread Sree
Hello,

I am new to Java and App Engine, and coming from ASP.NET C# and
Windows Azure world. I am looking for a lightweight & best performing
java based MVC framework.  I would like to migrate my ASP.NET MVC
project to App Engine (Java).

It would be great if you can share your experience.  I am open to
Python as well, but learning Java is faster than Python, since I am
good at C#.

Thanks in Advance.

Regards
Sree

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Failed to load resource: the server responded with a status of 404 (Not Found) %.nocache.js

2010-12-29 Thread Miguel Angel De la Torre Mart?nez
Hello.

I been working on an application using GWT, Servlets, GWT-RPC and Mysql. Now 
I'm experimenting with the App Engine but it's been a struggle.

I copied all my model data classes to a blank project and copied only the 
splash window GUI clases, it compiles and runs OK locally on developer mode.

I deployed it to the App Engine and the only thing I got is the default page 
to serve wich is a plain gray background. I should mention that all of the 
UI of my app si dynamic.

After further research i found that in the javascript console I got the 
error  Failed to load resource: the server responded with a status of 404 
(Not Found) %.nocache.js. So that's the reason why the rest of the UI 
doesn't show but how should i fix this issue.

I know that this may be a novice question but I been struggling for a while 
so I don't know what else to try.

best regards

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] passing multiple parameters to JDOQL

2010-12-29 Thread Vik
yeah thanks..  I will try it this way...

Yes I am manually setting time component part to 0 before storing the data.

Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com


On Wed, Dec 29, 2010 at 9:52 PM, Stephen Johnson wrote:

> You need to do it like this:
>
>   query.declareParameters("Long bind_pocId, Date bind_startDate, Date
> bind_endDate");
>
> However, unless you've normalized your dates on midnight or something I
> don't think this will work they way you want since date objects have
> millisecond precision.
>
> On Wed, Dec 29, 2010 at 7:46 AM, Vik  wrote:
>
>> Hie
>>
>> I am trying to pass multiple parameters as follows
>>
>>   Query query = pm.newQuery(PocVacationSchedule.class);
>>  query.setFilter("pocId == bind_pocId && startDate ==
>> bind_startDate && endDate == bind_endDate");
>>  query.declareParameters("Long bind_pocId");
>>  query.declareParameters("Date bind_startDate");
>>  query.declareParameters("Date bind_endDate");
>>  List rulesList =
>> (List)query.execute(pocId, startFrom, endFrom);
>>
>> And it throws exception passed 3 parameters where query is expecting 1.
>>
>> So, what I am doing wrong here?
>>
>>
>>
>> Thankx and Regards
>>
>> Vik
>> Founder
>> www.sakshum.com
>> www.sakshum.blogspot.com
>>
>> --
>> 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+unsubscr...@googlegroups.com
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/google-appengine-java?hl=en.
>>
>
>  --
> 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+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] passing multiple parameters to JDOQL

2010-12-29 Thread Stephen Johnson
You need to do it like this:

  query.declareParameters("Long bind_pocId, Date bind_startDate, Date
bind_endDate");

However, unless you've normalized your dates on midnight or something I
don't think this will work they way you want since date objects have
millisecond precision.

On Wed, Dec 29, 2010 at 7:46 AM, Vik  wrote:

> Hie
>
> I am trying to pass multiple parameters as follows
>
>   Query query = pm.newQuery(PocVacationSchedule.class);
>  query.setFilter("pocId == bind_pocId && startDate ==
> bind_startDate && endDate == bind_endDate");
>  query.declareParameters("Long bind_pocId");
>  query.declareParameters("Date bind_startDate");
>  query.declareParameters("Date bind_endDate");
>  List rulesList =
> (List)query.execute(pocId, startFrom, endFrom);
>
> And it throws exception passed 3 parameters where query is expecting 1.
>
> So, what I am doing wrong here?
>
>
>
> Thankx and Regards
>
> Vik
> Founder
> www.sakshum.com
> www.sakshum.blogspot.com
>
> --
> 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+unsubscr...@googlegroups.com
> .
> For more options, visit this group at
> http://groups.google.com/group/google-appengine-java?hl=en.
>

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: How to completely erase the datastore of an app

2010-12-29 Thread Didier Durand
Hi,

You can very easily empty your datastore using the Datastore viewer of
the admin console: you can select and delete all entities from the
viewer screen.

regards

didier

On Dec 29, 4:52 pm, cghersi  wrote:
> Hi,
>
> I've got an app on GAE with 4 versions, up to now.
>
> Until the 4th version I had an entity with an ancestor, so its keys
> were of the type (EntityID-AncestorID).
> In the 5th version I changed my design and now this entity hasn't got
> ancestor any more. Its keys are now simple long values.
>
> On my development server all is OK, given that my local datastore has
> been correctly updated.
> But with the online app I'm not able to remove the unused indexes and
> to create entities with the new long key.
>
> How may I completely erase my datastore online in order to rebuild it
> from scratch?
>
> Thank you very much!!!
> Bye
> CRI

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Concurrency issue when dealing with datastore

2010-12-29 Thread cghersi
Thank you Didier,

I had to strongly synchronize my app using Java options (locka,
synchrnized objects, and so on...).

I think it is quite unbelievable that a huge giant like BigTable is so
weak in concurrency issues...

Perhaps my approach is geared from my experience in relational DBs,
but I'm quite puzzeld...

Anyway, thank you for your hints!
Bye
CRI

On Dec 26, 9:14 am, Didier Durand  wrote:
> Hi,
>
> I guess that you should read the "Background" parag 
> ofhttp://code.google.com/appengine/articles/scaling/contention.htmlto
> see what's happening to your app and then find out a way to
> rearchitect it in order to avoid touching same data at same time from
> different transactions
>
> Don't have enough details about your appl but maybe the recipe in
> following articles may 
> help:http://code.google.com/appengine/articles/sharding_counters.html
>
> regards
>
> didier
>
> On Dec 20, 8:42 pm, cghersi  wrote:
>
>
>
>
>
>
>
> > Hi all,
> > I'm very new with GoogleAppEngine, and I cannot yet understand how to
> > deal with Transactions and concurrency.
> > I've got a servlet called by a queue task where I need to manipulate
> > several kind of objects.
> > I'm not able to use the Transactions, as I'm updating several objects
> > not belonging to the same entity group.
> > I'm facing a "org.datanucleus.exceptions.NucleusDataStoreException:
> > Concurrent Modification" problem when trying to close my
> > PersistenceManager object at the end of the doPost() method of the
> > servlet.
>
> > Is there a known pattern to face with this problem?
>
> > Thank you very much.
> > Bye
> > cghersi

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] How to completely erase the datastore of an app

2010-12-29 Thread cghersi
Hi,

I've got an app on GAE with 4 versions, up to now.

Until the 4th version I had an entity with an ancestor, so its keys
were of the type (EntityID-AncestorID).
In the 5th version I changed my design and now this entity hasn't got
ancestor any more. Its keys are now simple long values.

On my development server all is OK, given that my local datastore has
been correctly updated.
But with the online app I'm not able to remove the unused indexes and
to create entities with the new long key.

How may I completely erase my datastore online in order to rebuild it
from scratch?


Thank you very much!!!
Bye
CRI

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: persistent and scalable global atomic counter: not possible with GAE?

2010-12-29 Thread dreamer
It may be possible to simulate oracle sequence triggers, write some
service
on app engine that returns next number in sequence and every body else
calls
this service.


On Dec 29, 6:30 am, Nichole  wrote:
> Hi MG,
>
>    Sharded counters help solve the concurrent write contention for an
> entity.
> Time (to the accuracy of milliseconds) helps to provide a one way
> arrow towards a unique value.
> Each request itself could be associated with an identity (this is up
> to you, perhaps time in the request header).
> 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  wrote:
>
>
>
>
>
>
>
> > Yes, keys are unique, but they are strings, and quite long (20+
> > characters, from what I've seen). I do need unique and "growing"
> > numeric counter.
>
> > On Dec 28, 11:20 pm, nischalshetty  wrote:
>
> > > Have a look at the Datastore "Key" thingy. The keys generated are
> > > unique across the system IMO. Not sure though but that's what I
> > > remember reading somewhere.
>
> > > -N
>
> > > On Dec 29, 7:43 am, MG  wrote:
>
> > > > Hello!
>
> > > > I need to create a global atomic counter (64-bit) in my AppEngine/J
> > > > app. Like
>
> > > > long count = MyCounter.increment()
>
> > > > that will 100% guarantee that count will never ever be the same for
> > > > two different requests, and that I will be able to increment it
> > > > several million times/day initially, and much more if/when traffic
> > > > increases. I do not really care if it skips a number or two
> > > > occasionally: I can live with it returning a value larger than the
> > > > actual number of calls, but I do need absolute uniqueness and
> > > > reasonably linear growth (i.e. is two consecutive calls from a client
> > > > should result in ascending counter values).
>
> > > > Is this possible to do with Google AppEngine? Sharded counters can
> > > > ensure consistent counting, but not unique counts; memcache counters
> > > > can ensure unique increments, but they are perishable and thus
> > > > difficult (impossible?) to properly synchronize with persistent
> > > > storage. Using one entity to read-update in a transaction will not
> > > > scale...
>
> > > > Thanks,
> > > > MG

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] passing multiple parameters to JDOQL

2010-12-29 Thread Vik
Hie

I am trying to pass multiple parameters as follows

 Query query = pm.newQuery(PocVacationSchedule.class);
  query.setFilter("pocId == bind_pocId && startDate ==
bind_startDate && endDate == bind_endDate");
  query.declareParameters("Long bind_pocId");
  query.declareParameters("Date bind_startDate");
  query.declareParameters("Date bind_endDate");
 List rulesList =
(List)query.execute(pocId, startFrom, endFrom);

And it throws exception passed 3 parameters where query is expecting 1.

So, what I am doing wrong here?



Thankx and Regards

Vik
Founder
www.sakshum.com
www.sakshum.blogspot.com

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Using entity.setProperty on one-to-many relationships

2010-12-29 Thread Kalyan Akella
Hi Didier,

Thank you for pointing out the easier approach of using JDO & 
PersistenceManager APIs to do unit testing. I missed the point that the same 
benefits provided by these high-level APIs are equally applicable for unit 
testing as well. I wrote that code basing purely on the official 
documentation on data store unit testing. I shall use your approach right 
away and try to simplify my code.

Sincere Regards,
Kalyan Akella

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: persistent and scalable global atomic counter: not possible with GAE?

2010-12-29 Thread Nichole
Hi MG,

   Sharded counters help solve the concurrent write contention for an
entity.
Time (to the accuracy of milliseconds) helps to provide a one way
arrow towards a unique value.
Each request itself could be associated with an identity (this is up
to you, perhaps time in the request header).
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  wrote:
> Yes, keys are unique, but they are strings, and quite long (20+
> characters, from what I've seen). I do need unique and "growing"
> numeric counter.
>
> On Dec 28, 11:20 pm, nischalshetty  wrote:
>
>
>
>
>
>
>
> > Have a look at the Datastore "Key" thingy. The keys generated are
> > unique across the system IMO. Not sure though but that's what I
> > remember reading somewhere.
>
> > -N
>
> > On Dec 29, 7:43 am, MG  wrote:
>
> > > Hello!
>
> > > I need to create a global atomic counter (64-bit) in my AppEngine/J
> > > app. Like
>
> > > long count = MyCounter.increment()
>
> > > that will 100% guarantee that count will never ever be the same for
> > > two different requests, and that I will be able to increment it
> > > several million times/day initially, and much more if/when traffic
> > > increases. I do not really care if it skips a number or two
> > > occasionally: I can live with it returning a value larger than the
> > > actual number of calls, but I do need absolute uniqueness and
> > > reasonably linear growth (i.e. is two consecutive calls from a client
> > > should result in ascending counter values).
>
> > > Is this possible to do with Google AppEngine? Sharded counters can
> > > ensure consistent counting, but not unique counts; memcache counters
> > > can ensure unique increments, but they are perishable and thus
> > > difficult (impossible?) to properly synchronize with persistent
> > > storage. Using one entity to read-update in a transaction will not
> > > scale...
>
> > > Thanks,
> > > MG

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: GWT GAE APP as standalone app

2010-12-29 Thread dreamer
If any tricks to package the app will be very helpful (without eclipse
etc).




On Dec 29, 6:25 am, dreamer  wrote:
> Hi,
>
> I developed a small app using eclipse plug in (GWT) and datastore.
> I want to roll to some users as standalone application.
>
> I guess local datastore in eclipse is just a file like derby db file.
> Any body tried this ? please share your experience before I burn too
> many hours in this direction.
>
> A

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Update an Existing object in the datastore - Problem

2010-12-29 Thread lisandrodc
Hi! I have a problem with the persistence of an existing object
"Torneo" (with a empty collection of objects "Equipo").
When I add elements to the collection and want to persist,
sometimes persist and sometimes not persist in the
datastore(Restarting the server of the application). The code of
example:
public void agregarEquipoConTorneo(Torneo unTorneo, Equipo  unEquipo)
{
/*add Equipo with a existing "Torneo" in the
   datastore, the  "unTorneo"(param) class obtain with:
Torneo b =
   pm.getObjectById(model.Torneo.class, idTorneo);*/
Transaction tx = pm.currentTransaction();
try {
tx.begin();
unTorneo.agregarEquipo(unEquipo);
//add unEquipo to collection "equipos"
pm.makePersistentAll(unTorneo);
tx.commit();
System.out.println("persistioTorneoConEquipo");
} finally {
 pm.close();
if (tx.isActive()) {
tx.rollback();
}
}
Does it design someone of what this one happening?
Thanks!
Regards
Lisandro

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] GWT GAE APP as standalone app

2010-12-29 Thread dreamer
Hi,

I developed a small app using eclipse plug in (GWT) and datastore.
I want to roll to some users as standalone application.

I guess local datastore in eclipse is just a file like derby db file.
Any body tried this ? please share your experience before I burn too
many hours in this direction.

A

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: GWT+servlet - how to redirect to a different page

2010-12-29 Thread l.denardo
Oh, in this case the approach I suggested does not work, I
think...sorry but I didn't get "page flow" logic properly.

Then your approach of a submit handler will be better.
MaybAs an alternativeif you don't strictly need a form for what you'r
doing you can define a GWT RPC method that contains the parameters you
need to redirect properly or update your GUI.

Something like this:

//RPC interface, synchronous version
public String submit(SubmitWrapper content);   //SubmitWrapper class
contains what you want to submit

//invocation
SubmitWrapper content = .//build
submitService.submit(content, new AsyncCallback(){
onSuccess(String redirectURL){
Window.open(redirectURL, "_self", null);
}
onFailure(Throwable caught){  //handle}
});

Whether to use an handler or define your RPC depends on your needs (I
don't know struts so much...), yet it's another alternative you can
consider if you're still designing your interface.

I can suggest you to join the GWT discussion group here:
http://groups.google.com/group/Google-Web-Toolkit

Regards
Lorenzo

On Dec 29, 3:06 pm, dreamer  wrote:
> Thanks Ikai & Lorenzo. I am trying "page flow" as in struts, server
> does some business logic
> and tells where to go next depends on some biz logic or status.
>
> I will try your suggestions.
>
> On Dec 29, 1:41 am, "l.denardo"  wrote:
>
> > Why don't you simply build the form panel with the specified target in
> > the constructor?
>
> >http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g...
>
> > FormPanel uses a hidden IFrame to manage the cycle of submit/receive
> > response; if you give a target to the constructor it will follow
> > standard behavior of replacing the current page after submit.
>
> > Regards
> > Lorenzo
>
> > On Dec 28, 2:10 pm, dreamer  wrote:
>
> > > Instead of server dispatching/forwarding to a new page as in
> > > traditional web flows,
> > > I send the page name as response to BROWSER, and used GWT -
> > > onSubmitComplete
> > > event to go to new page.
> > > == HERE CLIENT side code 
> > > formPanel.addSubmitCompleteHandler(new
> > > FormPanel.SubmitCompleteHandler() {
> > >               public void onSubmitComplete(SubmitCompleteEvent event) {
> > >                   shownextpage("/page2.html");
> > >               }
> > >             });
> > > ---
> > >  ---
> > > private native void shownextpage(String message) /*-{
> > >         $wnd.alert(message);
> > >         $wnd.location.href="/page2.html";
> > >         }-*/;
> > > ---
> > >  
>
> > > On Dec 28, 3:10 am, dreamer  wrote:
>
> > > > Hi,
>
> > > > I have a GWT entry point that submits to servlet , build using
> > > > "FormPanel".
> > > > I am trying to build page flow using servlet "RequestDispatcher" or
> > > > "sendRedirect", even though no exception GAE is not forwarding to next
> > > > page.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: GWT+servlet - how to redirect to a different page

2010-12-29 Thread dreamer
Thanks Ikai & Lorenzo. I am trying "page flow" as in struts, server
does some business logic
and tells where to go next depends on some biz logic or status.

I will try your suggestions.


On Dec 29, 1:41 am, "l.denardo"  wrote:
> Why don't you simply build the form panel with the specified target in
> the constructor?
>
> http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/g...
>
> FormPanel uses a hidden IFrame to manage the cycle of submit/receive
> response; if you give a target to the constructor it will follow
> standard behavior of replacing the current page after submit.
>
> Regards
> Lorenzo
>
> On Dec 28, 2:10 pm, dreamer  wrote:
>
>
>
>
>
>
>
> > Instead of server dispatching/forwarding to a new page as in
> > traditional web flows,
> > I send the page name as response to BROWSER, and used GWT -
> > onSubmitComplete
> > event to go to new page.
> > == HERE CLIENT side code 
> > formPanel.addSubmitCompleteHandler(new
> > FormPanel.SubmitCompleteHandler() {
> >               public void onSubmitComplete(SubmitCompleteEvent event) {
> >                   shownextpage("/page2.html");
> >               }
> >             });
> > --- 
> > ---
> > private native void shownextpage(String message) /*-{
> >         $wnd.alert(message);
> >         $wnd.location.href="/page2.html";
> >         }-*/;
> > --- 
> > 
>
> > On Dec 28, 3:10 am, dreamer  wrote:
>
> > > Hi,
>
> > > I have a GWT entry point that submits to servlet , build using
> > > "FormPanel".
> > > I am trying to build page flow using servlet "RequestDispatcher" or
> > > "sendRedirect", even though no exception GAE is not forwarding to next
> > > page.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Instant messenger

2010-12-29 Thread pdzarkar
Hi Andy,
I can't hire you because i am just a small developer and doing this
for learning API's and new technology.
Have you worked on XMPP or instant messenger before ?
Do i need any other tool other than eclipse,GWT fro development ?


On Dec 28, 10:50 pm, "A. Stevko"  wrote:
> Hello Piyush,
>
> re: Authentication and Authorization APIs
> Every service has their own authentication API. Many are coming to use the
> OAuth standard although I've not seen many successful integration efforts
> yet.http://code.google.com/appengine/docs/java/oauth/
>
> There is google user
> authentication support into the appengine platform with this 
> package:http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...
>
> The external services you are referring are out of the scope of this forum.
> You might want to research them directly.
> I've included some links to expedite your 
> efforts.http://code.google.com/apis/accounts/docs/GettingStarted.htmlhttp://developers.facebook.com/docs/authentication/http://developer.yahoo.com/auth/
>
> Another resource that is is of broader scope and therefore more appropriate
> for many the issues you are going to face ishttp://stackoverflow.com/
>
> BTW, I'm open for hire presently...
>
> 
>
>
>
>
>
>
>
>
>
> On Tue, Dec 28, 2010 at 2:14 AM, Piyush Zarkar  wrote:
> > Thanks Stevko for quick reply.
> > Your suggestions are really helpful to start with.
> > I have decided to select servlets for writing code, GWT for creating GUI as
> > you suggested.
> > But i am still confused how to authenticate google users , facebook users
> > ,yahoo users etc. Is there any authentication API ?
> > I am just collecting requirements at this moment. Once all the requirements
> > freezes, i will start working on code and GUI.
> > If you have any suggestion please let me know.
> > Hope you will help me.
>
> > --
> > 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+unsubscr...@googlegroups.com > unsubscr...@googlegroups.com>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine-java?hl=en.
>
> --
> -- A. Stevko
> ===
> "If everything seems under control, you're just not going fast enough." M.
> Andretti

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Persisting an empty set

2010-12-29 Thread Didier Durand
Hi,

How do you persist it: JDO ? JPA ?  Low-level Datastore API ? 3rd
party package like Objectify ?

regards

didier

On 29 déc, 12:09, WillSpecht  wrote:
> I am trying to persist an empty HashSet in App Engine. It persists
> fine but when I pull the the item that contains the HashSet from the
> data-store the HashSet is now null. What can I do to force App Engine
> to store an empty HashSet? Or, do I just need to check for null and
> create the HashSet each time until it has something in it? I'm
> guessing I would create a field hashSetEmpty and not create the
> HashSet till I ran code that added to the HashSet.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Using entity.setProperty on one-to-many relationships

2010-12-29 Thread Didier Durand
Hi,

Yes: why don't you only work with JDO and use its persistence manager
to store your entities? The pm of jdo will handle translation between
annotated pojos and datastore transparently for you and then
drastically reduce your code size.

N.B; I personnally switched from JDO to Objectify: much simpler, very
efficient. My only was of accessing the datastore as of now.

About JDO: future seems not so bright. Read section by Ikai Lan in
this thread: 
http://groups.google.com/group/google-appengine-java/browse_thread/thread/defc6d14445318b8/75a1e7b5bcbc1bb3?pli=1

regards

didier

On 29 déc, 13:12, Kalyan Akella  wrote:
> Hi,
>
> Yes, I had to use the low level API because that code is part of another
> unit test I am writing against my domain. So, I had to get hold of the
> DataStoreService, Entity and such classes, as documented 
> here
> .
>
> Do you think there's a better alternative to doing testing than this way ?
>
> Sincere Regards,
> Kalyan Akella

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Using entity.setProperty on one-to-many relationships

2010-12-29 Thread Kalyan Akella
Hi,

Yes, I had to use the low level API because that code is part of another 
unit test I am writing against my domain. So, I had to get hold of the 
DataStoreService, Entity and such classes, as documented 
here
.

Do you think there's a better alternative to doing testing than this way ?

Sincere Regards,
Kalyan Akella

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Using entity.setProperty on one-to-many relationships

2010-12-29 Thread Didier Durand
Hi,

Yes, the class Entity by Google only supports the core types defined
in the Dev Guide.

1 question : it seems that you are trying to mix high-level (JDO) and
low-level datastore api.  Is that correct ? Why do you have to do
that ?

regards

didier

On 29 déc, 10:06, Kalyan Akella  wrote:
> Hi,
>
> Thank you for the reply.
>
> I am using the setProperty() method to set the list of *Recipe*s onto an
> instance of the 
> Entityclass
>  that represents a CookBook instance.
>
> It appears that this method only allows the supported data store types and
> collections of supported data store types. Although custom serializable
> types are allowed, they can be used with this method only if setting them as
> Blob or collection of Blob(s).
>
> In my application, storing the *Recipe*s as collection of Blob(s) inside 
> *CookBook
> *is unintended (as it impairs query filtering & ordering etc), I am going to
> modify this association to an unowned one-to-many relationship and try it
> out.
>
> Sincere Regards,
> Kalyan Akella

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Persisting an empty set

2010-12-29 Thread WillSpecht
I am trying to persist an empty HashSet in App Engine. It persists
fine but when I pull the the item that contains the HashSet from the
data-store the HashSet is now null. What can I do to force App Engine
to store an empty HashSet? Or, do I just need to check for null and
create the HashSet each time until it has something in it? I'm
guessing I would create a field hashSetEmpty and not create the
HashSet till I ran code that added to the HashSet.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: GWT+servlet - how to redirect to a different page

2010-12-29 Thread l.denardo
Why don't you simply build the form panel with the specified target in
the constructor?

http://google-web-toolkit.googlecode.com/svn/javadoc/2.1/com/google/gwt/user/client/ui/FormPanel.html#FormPanel%28java.lang.String%29

FormPanel uses a hidden IFrame to manage the cycle of submit/receive
response; if you give a target to the constructor it will follow
standard behavior of replacing the current page after submit.

Regards
Lorenzo

On Dec 28, 2:10 pm, dreamer  wrote:
> Instead of server dispatching/forwarding to a new page as in
> traditional web flows,
> I send the page name as response to BROWSER, and used GWT -
> onSubmitComplete
> event to go to new page.
> == HERE CLIENT side code 
> formPanel.addSubmitCompleteHandler(new
> FormPanel.SubmitCompleteHandler() {
>               public void onSubmitComplete(SubmitCompleteEvent event) {
>                   shownextpage("/page2.html");
>               }
>             });
> --
> private native void shownextpage(String message) /*-{
>         $wnd.alert(message);
>         $wnd.location.href="/page2.html";
>         }-*/;
> ---
>
> On Dec 28, 3:10 am, dreamer  wrote:
>
> > Hi,
>
> > I have a GWT entry point that submits to servlet , build using
> > "FormPanel".
> > I am trying to build page flow using servlet "RequestDispatcher" or
> > "sendRedirect", even though no exception GAE is not forwarding to next
> > page.

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Using entity.setProperty on one-to-many relationships

2010-12-29 Thread Kalyan Akella
Hi,

Thank you for the reply.

I am using the setProperty() method to set the list of *Recipe*s onto an 
instance of the 
Entityclass
 that represents a CookBook instance.

It appears that this method only allows the supported data store types and 
collections of supported data store types. Although custom serializable 
types are allowed, they can be used with this method only if setting them as 
Blob or collection of Blob(s). 

In my application, storing the *Recipe*s as collection of Blob(s) inside 
*CookBook 
*is unintended (as it impairs query filtering & ordering etc), I am going to 
modify this association to an unowned one-to-many relationship and try it 
out.

Sincere Regards,
Kalyan Akella

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.