Re: [appengine-java] calling rest api

2011-07-17 Thread Khor Yong Hao
Should you trying to use URL Fetch, issue a HTTP request to your rest api
URL?

On Mon, Jul 18, 2011 at 1:20 AM, Vik  wrote:

> Hie
>
> In my code i am looking to call rest api to send some sms to a sms
> gateway.
>
> How can i do it from my app engine code for java ?
>
> Please advise
>
> Thankx and Regards
>
> Vik
> Founder
> http://www.sakshum.org
> http://blog.sakshum.org
>
> --
> 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-java@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-java@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] How to run quatz(kind) of scheduler service on appengine?

2011-07-21 Thread Khor Yong Hao
Amazon EC2 to run your quartz service seem to be your option.

On Fri, Jul 22, 2011 at 3:31 AM, Kesava Neeli  wrote:

> Hi,
>
> I have a requirement to run a quatrz scheduler service and fire off jobs
> based on the contents in the appengine datastore objects. We cannot run any
> quarts service that's up all the time in appengine. The "crontasks" in
> appengien with it's limitations are the only option?
>
> Any plans to improve on this in the future? When will appengine become an
> official product? Will we be ever able to run third party software/packages
> (ex: data mining/analytics) on appengine in the future ?We are small early
> startup deciding on various cloud options. Any comments are welcome.
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/WkhkP4cc-EoJ.
> To post to this group, send email to
> google-appengine-java@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-java@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] Sending email in Java development environment

2011-07-28 Thread Khor Yong Hao
That's mean the log is resided in Admin Console.
If in local, you can access http://localhost:8080/_ah/admin

On Wed, Jul 27, 2011 at 5:19 AM, Bruce Davis  wrote:

> Thanks in advance for help with this newbie question.
>
> The documentation states:
>
> When an application running in the development server calls the Mail
> service to send an email message, the message is printed to the log. The
> Java development server does not send the email message.
>
> What log is this referring to? And how do I access it?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google App Engine for Java" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/google-appengine-java/-/uTSkkIGdxVEJ.
> To post to this group, send email to
> google-appengine-java@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-java@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: SQL Like operator with %

2010-07-05 Thread Khor Yong Hao
Why not directly use String.contains("searchstring") method?

-- 
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: Java Server Faces 2.0 does not works in GAE (for me)

2010-07-14 Thread Khor Yong Hao
Yes, it worked for me too, http://fyhaosecs.appspot.com is part of my final
year project, I am working through.

-- 
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] Using Blobstore with JSF

2010-07-14 Thread Khor Yong Hao
I used common Blob but not BlobstoreService, and use non-jsf Servlet to
handle uploading, it is challenging to make it run.

On Wed, Jul 14, 2010 at 10:55 PM, John  wrote:

> Has anybody worked out how to use the Blobstore service with JSF. When
> writing a JSF form with facelets there is no option to specify the
> action - it is workedout automatically. Therefore I cannot use the
> createUploadUrl method to set the URL the form posts to.
>
> If the BlobstoreService had a method to create blobs then I could do
> this in a servlet filter and commons-fileupload. Will I have to have a
> non JSF Servlet in my application just to accomodate Blobstore?
>
> Thanks
>
> John
>
> --
> 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: PDF Files

2010-07-18 Thread Khor Yong Hao
Your Problem is not using iText to generate PDF content and download it, but
is able to allow user upload their own PDF and providing download, right?


On Thu, Jul 15, 2010 at 3:25 PM, dovm  wrote:

> Hi,
>
> Check this one
> http://www.pdfjet.com/java/index.html
>
> They claim to support Google App Engine
>
> =Dov
>
>
>
> On Jul 15, 7:57 am, Daniel  wrote:
> > But it says that on" Will it play in App Engine"
> >
> > That its incompatible:
> >
> > iText
> > Version(s): ?
> > Status: INCOMPATIBLE
> >
> > * iText relies on several classes not in the JRE class whitelist
> > including java.awt.Color and java.nio.MappedByteBuffer. A bug has been
> > filed athttp://
> sourceforge.net/tracker/?func=detail&atid=365255&aid=2810312&g
> >
> > On Jul 15, 7:51 am, Shyam Visamsetty  wrote:
> >
> > > Chris,
> >
> > > Did you want to generate a PDF File on the GAE?
> > > If yes, you can use the iText library for generating the pdfs on the
> > > app engine. You can have a servlet to download the PDF file you
> > > generated.
> >
> > > Thanks,
> > > Shyam Visamsetty
> >
> > > On Jul 14, 1:36 pm, chrischelmi  wrote:
> >
> > > > Helle every body,
> > > > I am working on a Google App Engine Project that consists of
> uploading
> > > > PDF files and displaying it after.
> > > > I use a Blob to store the PDF file
> > > > i want to do a process to download this PDF file by giving the a
> > > > specifics name.
> > > > Is there a way to generaye PDF files with GAE?
> > > > i have a process to display the PDF but i want to download it direcly
> > > > from an URL.
>
> --
> 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] Pushlets HTTP-based publish/subscribe framework?

2010-07-18 Thread Khor Yong Hao
Sorry, you can't, Appengine had set 30 seconds request time limit, it is
impossible to use such kind of server push technology.

On Sat, Jul 17, 2010 at 6:43 AM, Phạm Hưng  wrote:

> http://www.pushlets.com/ HTTP-based publish/subscribe framework
>
> Can I use it?
>
> --
> 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] About Google App Engine & Google API

2010-07-18 Thread Khor Yong Hao
Is you meant that you want to create another SNS that consisted of all
members of google appengine java group?

On Sat, Jul 17, 2010 at 6:27 PM, Tan Duy  wrote:

> Hi all,
> I'm a student in senior year.
> Now, I'm researching G.A.E and I try to make an application server
> community.
> Would you like to give me advice or suggestion for my project.
> Hope you understand.
>
> I would appreciate your giving me the opportunity to discuss about
> G.A.E.
> Thank you so much!
>
> --
> 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: Oracle sues Google on Java Patents and Copyright

2010-08-16 Thread Khor Yong Hao
go away oracle, no politic, no politic, java must be free and open freely,
use freely!!!

On Mon, Aug 16, 2010 at 5:15 PM, asianCoolz  wrote:

> just ask Oracle to fire all their lawyers and hire 'better
> programmers' like google if they are serious about innovation.  ask
> them make better web, no war. for them everything is just $$$, no
> wonder they have xtra to spend on lawsuit
>
> --
> 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] Google App Engine on Netbeans

2010-10-25 Thread Khor Yong Hao
You may refer to
http://java.wildstartech.com/Java-Platform-Enterprise-Edition/JavaServer-Faces/sun-javaserver-faces-reference-implementation/configuring-jsf-20-to-run-on-the-google-app-engine-using-netbeans

I had successed last time for configuring JSF+Facelets on Google Appengine
using Netbean 6.8, but failed in 6.9

-- 
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: Google App Engine with MySQL Database.

2010-11-23 Thread Khor Yong Hao
appengine is designed to be more applicable to run on distributed server.
mysql is relational database and that is not suitable to scale when it
supports sql join (fetch data from multiple tables) in distributed system.
however the design of google bigtable, objects (key - value based) is suited
in this environment.
the reason to use JDO and JPA is to make fellow developers familiar, and JPA
with the ORM is more easier model the objects and its relationship by using
google datastore bigtable.

On Tue, Nov 23, 2010 at 1:19 PM, Tinker Pang  wrote:

> Hi
>
> I study app engine a long time, and I have been confused
> Why App Engine don't support mySql?
>
> Why use the JDO/JPA?
>
> Best Regards
> Tinker
>
>
> 2010/11/23 Didier Durand 
>
> Hi,
>>
>> mySql is not (at least currently) directly supported on App Engine,
>> you have to use the datastore based on Google BigTable and interface
>> with it via JDO/JPA: see appropriate docs on Dev Guide
>>
>> You can also use 3rd party extensions to interface: I personally use
>> Objectify.
>>
>> You can also probably access a remote mySql server from App Engine but
>> I would not do it: slow, unsecure, etc..
>>
>> regards
>> didier
>>
>> On Nov 21, 5:58 pm, ankit  wrote:
>> > Hi..
>> > I have deployed an application which is connected to my MySQL database
>> > to fetch the values.
>> > I want to know how will google fetch values from my machine and show
>> > the result whenever user runs the application. Do i have to create a
>> > database on google server? If yes than how can i create it.Since i am
>> > using google app on free basis,so do i need to pay for the database or
>> > is it free??
>> > I have read that google supports MYSQL,so how can i use MYSQL as a
>> > backend for my application..
>> >
>> > Any idea or suggestions are welcome.
>> > Thanks in advance..
>> >
>> > Ankit
>>
>> --
>> 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] Direct access to JSF source

2010-11-23 Thread Khor Yong Hao
make your url pattern be *.jsf instead of faces/
then you can access index.jsf in your URL while it calls index.xhtml file.

On Wed, Nov 24, 2010 at 12:34 AM, Stephen Johnson wrote:

> I don't know JSF so perhaps this is a stupid option, but can't you put the
> index.xhtml in the WEB-INF directory. If not, you could map in web.xml a jsp
> or servlet to index.xhtml that returns a 404.
>
>
> On Tue, Nov 23, 2010 at 12:39 AM, Matthew  wrote:
>
>> Hello
>>
>> I have JSF 2 configured on my app with a servlet-mapping
>> of /faces/* which renders correctly if I go to
>> URL's such as domain.com/faces/index.xhtml.
>>
>> If I access the xhtml file URL directly, for example
>> domain.com/index.xhtml, the xhtml source code is returned to the browser.
>> How can I stop this happening yet still render correctly when using the
>> mapping directory.
>>
>> Many thanks in advance.
>>
>> Matthew
>>
>> --
>> 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] Re: cost effective way to store PDF and word docs in datastore / blobstore service

2010-12-25 Thread Khor Yong Hao
It is possible to store one page / two page PDF (smaller than 1 mb) inside
normal datastore. By using byte[] in entity datatype.

On Sat, Dec 25, 2010 at 12:31 PM, Patrick Twohig
wrote:

> Just because billing is enabled that doesn't mean that you are billed for
> using it. It just uncaps your quotas beyond the free amount.
>
> Merry Chrismas!
>
> Sent from my G1 phone.
>
> On Dec 24, 2010 8:21 AM, "dreamer"  wrote:
>
> This is what I found in documentation
> " Note: The Blobstore API is only available for apps with billing
> enabled. You still get an amount of quota for free, but billing must
> be enabled to use it".
>
> In development phase I don't want to be worried about billing. we can
> live with 1GB restriction while in development across for storage
> requirements.
>
> Any body from Google help to relax this restriction ?
>
>
>
>
> On Dec 24, 7:53 am, dreamer  wrote:
> > Hi,
> >
> > I need to store pdf ...
>
>  --
> 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] Error Running GuestBook !~

2011-01-05 Thread Khor Yong Hao
Refer to
http://fyhao.com/2010/12/computer-and-it/appengine/google-appengine-jsp-compilation-problem/
where
the solution I have stated, thanks.

On Thu, Jan 6, 2011 at 2:30 PM, A. Stevko  wrote:

> seems pretty straight forward - jetty could not find javac.exe; probably to
> compile a jsp
>
>
> On Sun, Jan 2, 2011 at 11:03 PM, Setu  wrote:
>
>> I have downloaded Google Apps Engine Java SDK & installed it as well. I
>> have also installed all the plugins as well. I am running guestbook
>> application from netBeans. The server also get started. But, while running
>> gueatbook application, it show the error. Please help to solve this error.
>>
>> The error log is :
>>
>> HTTP ERROR 500
>>
>> Problem accessing /. Reason:
>>
>> Error running javac.exe compiler
>>
>> Caused by:
>>
>> Error running javac.exe compiler
>>  at 
>> org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java:509)
>>  at 
>> org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java:61)
>>  at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1065)
>>  at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:882)
>>  at 
>> org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:226)
>>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:349)
>>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:327)
>>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:314)
>>  at 
>> org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:592)
>>  at 
>> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
>>  at 
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
>>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
>>  at 
>> com.google.appengine.tools.development.PrivilegedJspServlet.access$101(PrivilegedJspServlet.java:23)
>>  at 
>> com.google.appengine.tools.development.PrivilegedJspServlet$2.run(PrivilegedJspServlet.java:59)
>>  at java.security.AccessController.doPrivileged(Native Method)
>>  at 
>> com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java:57)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>  at 
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>>  at 
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:390)
>>  at 
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>  at 
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>>  at 
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>>  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>>  at 
>> com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70)
>>  at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327)
>>  at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
>>  at 
>> com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java:80)
>>  at 
>> com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java:254)
>>  at 
>> com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java:120)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
>>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>>  at 
>> org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
>>  at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
>>  at 
>> com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:58)
>>  at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>  at 
>> com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
>>  at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>  at 
>> com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122)
>>  at 
>> org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
>>  at 
>> org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
>>  at 
>> org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
>>  at 
>> org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
>>  at 
>> org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
>>  at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
>>  at 
>> com.google.apphosting.utils.jetty.DevAppEngineWebAppCo

Re: [appengine-java] Datastore doesnot stote @embedded List

2011-01-13 Thread Khor Yong Hao
Try em.refresh() before em.persist()

On Thu, Jan 13, 2011 at 6:36 PM, frank  wrote:

> Hello,
>
> I try to store an embedded List in an Entity.
> I runs without errors, but no elements of the List are stored
>
> Thanks for your help.
>
> here is the code:
>
> @Entity
> public class Cont implements Serializable
> {private static final long serialVersionUID = 1L;
>  @Id
>  @GeneratedValue(strategy = GenerationType.IDENTITY)
>  private String id;
>  @Extension(vendorName = "datanucleus", key = "cascade-persist",
> value = "true")
>  @Embedded
>  private List em2;
>
>  ..
> }
>
> @Embeddable
> public class Em2 implements Serializable
> { @Basic public String s;
>  ...
> }
>
> public static String testcode()
> {
>EntityManager em = Gae.emfInstance.createEntityManager();
>Cont cont;
>List emList = new ArrayList();
>emList.add(new Em2("Element1"));
>emList.add(new Em2("Element2"));
>
>cont=new Cont( "1");
>cont.setEm(new Em("TEST"));
>cont.setEm2(emList);
>
>em.persist(cont);
>em.close();
>
>em = Gae.emfInstance.createEntityManager();
>Query q = em.createQuery("select c from  Cont c");
>Cont read  = (Cont) q.getSingleResult();
>
>System.out.println(read.getEm2().size());
>// ---
>// output 0
>// ---
>
>em.close();
>  }
>
> --
> 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-java@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-java@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: Is App Engine Down? Unable to access my website

2011-01-23 Thread Khor Yong Hao
I am able to access just now.

On Mon, Jan 24, 2011 at 11:31 AM, Sumi  wrote:

> Error 324 (net::ERR_EMPTY_RESPONSE): Unknown error.
>
>
>  --
> 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-java@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-java@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] can i use css in my app ?

2011-01-25 Thread Khor Yong Hao
I think HTML development in appengine is same as what you do in the other
type of site either local or own server.
Therefore, Sure, CSS is possible.
You may found CSS tutorial from: http://www.w3schools.com/css/default.asp

On Tue, Jan 25, 2011 at 9:47 PM, Vishnupradeep
wrote:

>  is it possible to use css in my app. if yes show me how to do ?
>
> --
> 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-java@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-java@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: Failed to compile jsp files.

2011-04-11 Thread Khor Yong Hao
Try refer to this blog,
http://fyhao.com/2010/12/computer-and-it/appengine/google-appengine-jsp-compilation-problem/
may
solve your problem

On Mon, Apr 11, 2011 at 3:37 PM, Gianni Mariani  wrote:

> Eric,
> Is this issue related to your problem?
>
> http://code.google.com/p/googleappengine/issues/detail?id=1226
>
> /Gianni
>
> On Mon, Apr 11, 2011 at 5:29 PM, Perun Katana  wrote:
>
>> Hi Eric,
>>
>> this is the cause
>> > An error occurred at line: -1 in the generated java file
>> > Caused by: java.io.IOException: Cannot run program "javac.exe":
>>
>> I had the same error and what helped - make sure you run appcfg
>> command with JDK, not just JRE.
>> What I did was - open the appcfg file and make sure the java is called
>> from a JDK (place a full path to JDK if necessary)
>>
>> Hope it will resolve your issue.
>>
>> Regards
>>Perun
>>
>>
>> On 10 avr, 15:05, Eric Wu  wrote:
>> > My project works fine in local server. But when I upload my project to
>> > GAE, there is an error: How to solve the problem
>> >
>> > 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-java@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.
>>
>>
>
>
> --
> Gianni Mariani
> Google, Sydney
>
> --
> 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-java@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-java@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: How can I make the session to be held open as long as the user got its browser opened?

2011-04-11 Thread Khor Yong Hao
Good way, either ajax way polling in 20 minutes, or Channel API, comet way.

On Mon, Apr 11, 2011 at 2:59 PM, nischalshetty wrote:

> You would need to specify a timeout and if there is no activity for
> that time frame sessions would need to expire. To be safe about
> expiring sessions and at the same time wanting to keep them alive,
> what I can suggest is do this :
>
> Put a simple ajax call on the page. Make it call your app every 20
> minutes. That way the sessions would not expire. Just a suggestion,
> haven't done anything like that so don't know how good a solution it
> is. But to get started quick, I would definitely do this.
>
> -Nischal
>
> On Apr 11, 11:38 am, Daniel  wrote:
> > I refer to the one that defined in web.xml
> >
> > 
> > 30
> > 
> >
> > I want to keep it open as long as the browser is opened at my page...
> >
> > On Apr 10, 2:10 pm, Didier Durand  wrote:
> >
> >
> >
> >
> >
> >
> >
> > > Hi,
> >
> > > You should clarify what you mean by an open session: do you mean the
> > > http one defined by the cookie, the security one after login, etc ?
> >
> > > regards
> >
> > > didier
> >
> > > On Apr 10, 9:35 am, Max  wrote:
> >
> > > > have you tried to use memcache or simply store session into
> datastore?
>
> --
> 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-java@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-java@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.