Re: Problem creating a RPC Service

2009-08-03 Thread Nathan Wells

would you mind posting the code of the class you are trying to make
work? it would be nice to see the package name and imports, as well as
how you are using the FileWriter.

On Aug 2, 1:42 am, Sednus sed...@gmail.com wrote:
    Hi,
         I am tring to implement a service using RPC, this service
 should be able to take a string (originally written by user on a text
 area) and save it into a text file onto the server side.  My problem
 is that when I create the FileWriter object Eclipse says that
 FileWriter is not supporteed by gwt.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Jason Parekh
In addition to what Nathan requests, is your backend running on App Engine?
They do not support FileWriter.

jason

On Mon, Aug 3, 2009 at 7:16 AM, Nathan Wells nwwe...@gmail.com wrote:


 would you mind posting the code of the class you are trying to make
 work? it would be nice to see the package name and imports, as well as
 how you are using the FileWriter.

 On Aug 2, 1:42 am, Sednus sed...@gmail.com wrote:
 Hi,
  I am tring to implement a service using RPC, this service
  should be able to take a string (originally written by user on a text
  area) and save it into a text file onto the server side.  My problem
  is that when I create the FileWriter object Eclipse says that
  FileWriter is not supporteed by gwt.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Sednus

yes, it is runnning on App Engine, if it's not supported is there
anyway to make this happen?

public class CompileServiceImpl extends RemoteServiceServlet
implements
ICompileSercvice {


public String compile(String code) {
try
{
File file = new File(temp.c);
System.out.println(file created);
BufferedWriter out = new BufferedWriter(new 
FileWriter(file));
out.write(code);
out.close();
}}
On Aug 3, 8:38 am, Jason Parekh jasonpar...@gmail.com wrote:
 In addition to what Nathan requests, is your backend running on App Engine?
 They do not support FileWriter.

 jason

 On Mon, Aug 3, 2009 at 7:16 AM, Nathan Wells nwwe...@gmail.com wrote:

  would you mind posting the code of the class you are trying to make
  work? it would be nice to see the package name and imports, as well as
  how you are using the FileWriter.

  On Aug 2, 1:42 am, Sednus sed...@gmail.com wrote:
      Hi,
           I am tring to implement a service using RPC, this service
   should be able to take a string (originally written by user on a text
   area) and save it into a text file onto the server side.  My problem
   is that when I create the FileWriter object Eclipse says that
   FileWriter is not supporteed by gwt.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Jason Parekh
No, unfortunately you don't have file system access on App Engine.  You can
store data in databases, but you won't have any file handlers to that data.
jason

On Mon, Aug 3, 2009 at 11:25 AM, Sednus sed...@gmail.com wrote:


 yes, it is runnning on App Engine, if it's not supported is there
 anyway to make this happen?

 public class CompileServiceImpl extends RemoteServiceServlet
 implements
 ICompileSercvice {


public String compile(String code) {
try
{
File file = new File(temp.c);
System.out.println(file created);
BufferedWriter out = new BufferedWriter(new
 FileWriter(file));
out.write(code);
out.close();
 }}
 On Aug 3, 8:38 am, Jason Parekh jasonpar...@gmail.com wrote:
  In addition to what Nathan requests, is your backend running on App
 Engine?
  They do not support FileWriter.
 
  jason
 
  On Mon, Aug 3, 2009 at 7:16 AM, Nathan Wells nwwe...@gmail.com wrote:
 
   would you mind posting the code of the class you are trying to make
   work? it would be nice to see the package name and imports, as well as
   how you are using the FileWriter.
 
   On Aug 2, 1:42 am, Sednus sed...@gmail.com wrote:
   Hi,
I am tring to implement a service using RPC, this service
should be able to take a string (originally written by user on a text
area) and save it into a text file onto the server side.  My problem
is that when I create the FileWriter object Eclipse says that
FileWriter is not supporteed by gwt.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Sednus

Well, I really need to create a file on the server side and write on
it whatever the user types on a text area is there any onther way
to accomplish this?


On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
 No, unfortunately you don't have file system access on App Engine.  You can
 store data in databases, but you won't have any file handlers to that data.
 jason

 On Mon, Aug 3, 2009 at 11:25 AM, Sednus sed...@gmail.com wrote:

  yes, it is runnning on App Engine, if it's not supported is there
  anyway to make this happen?

  public class CompileServiceImpl extends RemoteServiceServlet
  implements
  ICompileSercvice {

         public String compile(String code) {
                 try
                 {
                         File file = new File(temp.c);
                         System.out.println(file created);
                         BufferedWriter out = new BufferedWriter(new
  FileWriter(file));
                         out.write(code);
                         out.close();
  }}
  On Aug 3, 8:38 am, Jason Parekh jasonpar...@gmail.com wrote:
   In addition to what Nathan requests, is your backend running on App
  Engine?
   They do not support FileWriter.

   jason

   On Mon, Aug 3, 2009 at 7:16 AM, Nathan Wells nwwe...@gmail.com wrote:

would you mind posting the code of the class you are trying to make
work? it would be nice to see the package name and imports, as well as
how you are using the FileWriter.

On Aug 2, 1:42 am, Sednus sed...@gmail.com wrote:
    Hi,
         I am tring to implement a service using RPC, this service
 should be able to take a string (originally written by user on a text
 area) and save it into a text file onto the server side.  My problem
 is that when I create the FileWriter object Eclipse says that
 FileWriter is not supporteed by gwt.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Sednus

Well, I really need to create a file on the server side and write on
it whatever the user types on a text area is there any onther way
to accomplish this?


On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
 No, unfortunately you don't have file system access on App Engine.  You can
 store data in databases, but you won't have any file handlers to that data.
 jason

 On Mon, Aug 3, 2009 at 11:25 AM, Sednus sed...@gmail.com wrote:

  yes, it is runnning on App Engine, if it's not supported is there
  anyway to make this happen?

  public class CompileServiceImpl extends RemoteServiceServlet
  implements
  ICompileSercvice {

         public String compile(String code) {
                 try
                 {
                         File file = new File(temp.c);
                         System.out.println(file created);
                         BufferedWriter out = new BufferedWriter(new
  FileWriter(file));
                         out.write(code);
                         out.close();
  }}
  On Aug 3, 8:38 am, Jason Parekh jasonpar...@gmail.com wrote:
   In addition to what Nathan requests, is your backend running on App
  Engine?
   They do not support FileWriter.

   jason

   On Mon, Aug 3, 2009 at 7:16 AM, Nathan Wells nwwe...@gmail.com wrote:

would you mind posting the code of the class you are trying to make
work? it would be nice to see the package name and imports, as well as
how you are using the FileWriter.

On Aug 2, 1:42 am, Sednus sed...@gmail.com wrote:
    Hi,
         I am tring to implement a service using RPC, this service
 should be able to take a string (originally written by user on a text
 area) and save it into a text file onto the server side.  My problem
 is that when I create the FileWriter object Eclipse says that
 FileWriter is not supporteed by gwt.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Sednus

Well, I really need to create a file on the server side and write on
it whatever the user types on a text area is there any onther way
to accomplish this?


On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
 No, unfortunately you don't have file system access on App Engine.  You can
 store data in databases, but you won't have any file handlers to that data.
 jason

 On Mon, Aug 3, 2009 at 11:25 AM, Sednus sed...@gmail.com wrote:

  yes, it is runnning on App Engine, if it's not supported is there
  anyway to make this happen?

  public class CompileServiceImpl extends RemoteServiceServlet
  implements
  ICompileSercvice {

         public String compile(String code) {
                 try
                 {
                         File file = new File(temp.c);
                         System.out.println(file created);
                         BufferedWriter out = new BufferedWriter(new
  FileWriter(file));
                         out.write(code);
                         out.close();
  }}
  On Aug 3, 8:38 am, Jason Parekh jasonpar...@gmail.com wrote:
   In addition to what Nathan requests, is your backend running on App
  Engine?
   They do not support FileWriter.

   jason

   On Mon, Aug 3, 2009 at 7:16 AM, Nathan Wells nwwe...@gmail.com wrote:

would you mind posting the code of the class you are trying to make
work? it would be nice to see the package name and imports, as well as
how you are using the FileWriter.

On Aug 2, 1:42 am, Sednus sed...@gmail.com wrote:
    Hi,
         I am tring to implement a service using RPC, this service
 should be able to take a string (originally written by user on a text
 area) and save it into a text file onto the server side.  My problem
 is that when I create the FileWriter object Eclipse says that
 FileWriter is not supporteed by gwt.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Sednus

Well, I really need to create a file on the server side and write on
it whatever the user types on a text area is there any onther way
to accomplish this?


On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
 No, unfortunately you don't have file system access on App Engine.  You can
 store data in databases, but you won't have any file handlers to that data.
 jason

 On Mon, Aug 3, 2009 at 11:25 AM, Sednus sed...@gmail.com wrote:

  yes, it is runnning on App Engine, if it's not supported is there
  anyway to make this happen?

  public class CompileServiceImpl extends RemoteServiceServlet
  implements
  ICompileSercvice {

         public String compile(String code) {
                 try
                 {
                         File file = new File(temp.c);
                         System.out.println(file created);
                         BufferedWriter out = new BufferedWriter(new
  FileWriter(file));
                         out.write(code);
                         out.close();
  }}
  On Aug 3, 8:38 am, Jason Parekh jasonpar...@gmail.com wrote:
   In addition to what Nathan requests, is your backend running on App
  Engine?
   They do not support FileWriter.

   jason

   On Mon, Aug 3, 2009 at 7:16 AM, Nathan Wells nwwe...@gmail.com wrote:

would you mind posting the code of the class you are trying to make
work? it would be nice to see the package name and imports, as well as
how you are using the FileWriter.

On Aug 2, 1:42 am, Sednus sed...@gmail.com wrote:
    Hi,
         I am tring to implement a service using RPC, this service
 should be able to take a string (originally written by user on a text
 area) and save it into a text file onto the server side.  My problem
 is that when I create the FileWriter object Eclipse says that
 FileWriter is not supporteed by gwt.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Jason Parekh
Not that I'm aware of (I'm not too familiar with App Engine though, so
hopefully someone else chimes in.)

jason

On Mon, Aug 3, 2009 at 12:00 PM, Sednus sed...@gmail.com wrote:


 Well, I really need to create a file on the server side and write on
 it whatever the user types on a text area is there any onther way
 to accomplish this?


 On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
  No, unfortunately you don't have file system access on App Engine.  You
 can
  store data in databases, but you won't have any file handlers to that
 data.
  jason
 
  On Mon, Aug 3, 2009 at 11:25 AM, Sednus sed...@gmail.com wrote:
 
   yes, it is runnning on App Engine, if it's not supported is there
   anyway to make this happen?
 
   public class CompileServiceImpl extends RemoteServiceServlet
   implements
   ICompileSercvice {
 
  public String compile(String code) {
  try
  {
  File file = new File(temp.c);
  System.out.println(file created);
  BufferedWriter out = new BufferedWriter(new
   FileWriter(file));
  out.write(code);
  out.close();
   }}
   On Aug 3, 8:38 am, Jason Parekh jasonpar...@gmail.com wrote:
In addition to what Nathan requests, is your backend running on App
   Engine?
They do not support FileWriter.
 
jason
 
On Mon, Aug 3, 2009 at 7:16 AM, Nathan Wells nwwe...@gmail.com
 wrote:
 
 would you mind posting the code of the class you are trying to make
 work? it would be nice to see the package name and imports, as well
 as
 how you are using the FileWriter.
 
 On Aug 2, 1:42 am, Sednus sed...@gmail.com wrote:
 Hi,
  I am tring to implement a service using RPC, this service
  should be able to take a string (originally written by user on a
 text
  area) and save it into a text file onto the server side.  My
 problem
  is that when I create the FileWriter object Eclipse says that
  FileWriter is not supporteed by gwt.
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Daniel Jue
Sure, you just have to run it on your own server, running jetty or tomcat,
etc.

On Mon, Aug 3, 2009 at 12:00 PM, Sednus sed...@gmail.com wrote:


 Well, I really need to create a file on the server side and write on
 it whatever the user types on a text area is there any onther way
 to accomplish this?


 On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
  No, unfortunately you don't have file system access on App Engine.  You
 can
  store data in databases, but you won't have any file handlers to that
 data.
  jason
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Sednus

Yes, I was planning to run it on my own server... but how do I make
that while still using GWT? is it possible?

On Aug 3, 11:04 am, Daniel Jue teamp...@gmail.com wrote:
 Sure, you just have to run it on your own server, running jetty or tomcat,
 etc.

 On Mon, Aug 3, 2009 at 12:00 PM, Sednus sed...@gmail.com wrote:

  Well, I really need to create a file on the server side and write on
  it whatever the user types on a text area is there any onther way
  to accomplish this?

  On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
   No, unfortunately you don't have file system access on App Engine.  You
  can
   store data in databases, but you won't have any file handlers to that
  data.
   jason
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Daniel Jue
It really has nothing to do with GWT.  You would have a servlet on the
serverside that responds to rpc calls, and the servlet would call some file
writing command.  (in the simplest, non-refactored way).
The file writing part doesn't care where the input came from.
As in logging, you won't be able to guarantee what order the data comes in
when getting RPC calls.  So multiple commands issued quicky may generate
out-of-order text.

This said, since you are asking kind of basic questions...

Are you absolutely sure you want to write a file on the system?
Are you trying to do something unusual?

Most people would use a DB tier because it can handle multiple users and
updates better, and it's easier to have a timestamp tacked onto the message,
where it can be sorted.
Cleaning up the filesystem can be a chore.
Dealing with the filesystem is a chore. File locking? etc.


On Mon, Aug 3, 2009 at 12:26 PM, Sednus sed...@gmail.com wrote:


 Yes, I was planning to run it on my own server... but how do I make
 that while still using GWT? is it possible?

 On Aug 3, 11:04 am, Daniel Jue teamp...@gmail.com wrote:
  Sure, you just have to run it on your own server, running jetty or
 tomcat,
  etc.
 
  On Mon, Aug 3, 2009 at 12:00 PM, Sednus sed...@gmail.com wrote:
 
   Well, I really need to create a file on the server side and write on
   it whatever the user types on a text area is there any onther way
   to accomplish this?
 
   On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
No, unfortunately you don't have file system access on App Engine.
  You
   can
store data in databases, but you won't have any file handlers to that
   data.
jason
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Sednus

Well, I am trying to make an interface so that students can write
their code on the web and I can compile it and run it in a computer
cluster( Parallel Programs)... For them to see the how they work...
but I've never worked woth stuff like this :s I am really noobie , but
yes I need to create the file so to compile it and run it, yes its
something unususal and i don't know what a DB tier is :(

On Aug 3, 11:38 am, Daniel Jue teamp...@gmail.com wrote:
 It really has nothing to do with GWT.  You would have a servlet on the
 serverside that responds to rpc calls, and the servlet would call some file
 writing command.  (in the simplest, non-refactored way).
 The file writing part doesn't care where the input came from.
 As in logging, you won't be able to guarantee what order the data comes in
 when getting RPC calls.  So multiple commands issued quicky may generate
 out-of-order text.

 This said, since you are asking kind of basic questions...

 Are you absolutely sure you want to write a file on the system?
 Are you trying to do something unusual?

 Most people would use a DB tier because it can handle multiple users and
 updates better, and it's easier to have a timestamp tacked onto the message,
 where it can be sorted.
 Cleaning up the filesystem can be a chore.
 Dealing with the filesystem is a chore. File locking? etc.

 On Mon, Aug 3, 2009 at 12:26 PM, Sednus sed...@gmail.com wrote:

  Yes, I was planning to run it on my own server... but how do I make
  that while still using GWT? is it possible?

  On Aug 3, 11:04 am, Daniel Jue teamp...@gmail.com wrote:
   Sure, you just have to run it on your own server, running jetty or
  tomcat,
   etc.

   On Mon, Aug 3, 2009 at 12:00 PM, Sednus sed...@gmail.com wrote:

Well, I really need to create a file on the server side and write on
it whatever the user types on a text area is there any onther way
to accomplish this?

On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
 No, unfortunately you don't have file system access on App Engine.
   You
can
 store data in databases, but you won't have any file handlers to that
data.
 jason
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Trevis

I dont think that you're looking at your problem right.  For starters
GWT and AppEngine are to totally separate and unrelated things. If you
don't intend to host on AppEngine you probably dont need to develop
with it.

Using RPC's to add lines of text to a file sounds like a really bad
idea. Like everyone else is saying, use a DB.  AppEngine should make
persisting the info to a DB about as simple as it gets. (if you want
to use it)

When you're ready to pull down the user entered code to compile it you
can use an admin GWT page (or a simple servlet) that you would create
to read the text from the DB, and send it down to you so that it can
be compiled.  If you wrote the retrieving component as a servlet then
you could set the page content type to plain/text and write the text
directly to the response which would give you a file save dialog when
you try to retrieve it.

Just my quick though to solving the problem, ymmv.






On Aug 3, 12:04 pm, Sednus sed...@gmail.com wrote:
 Well, I am trying to make an interface so that students can write
 their code on the web and I can compile it and run it in a computer
 cluster( Parallel Programs)... For them to see the how they work...
 but I've never worked woth stuff like this :s I am really noobie , but
 yes I need to create the file so to compile it and run it, yes its
 something unususal and i don't know what a DB tier is :(

 On Aug 3, 11:38 am, Daniel Jue teamp...@gmail.com wrote:

  It really has nothing to do with GWT.  You would have a servlet on the
  serverside that responds to rpc calls, and the servlet would call some file
  writing command.  (in the simplest, non-refactored way).
  The file writing part doesn't care where the input came from.
  As in logging, you won't be able to guarantee what order the data comes in
  when getting RPC calls.  So multiple commands issued quicky may generate
  out-of-order text.

  This said, since you are asking kind of basic questions...

  Are you absolutely sure you want to write a file on the system?
  Are you trying to do something unusual?

  Most people would use a DB tier because it can handle multiple users and
  updates better, and it's easier to have a timestamp tacked onto the message,
  where it can be sorted.
  Cleaning up the filesystem can be a chore.
  Dealing with the filesystem is a chore. File locking? etc.

  On Mon, Aug 3, 2009 at 12:26 PM, Sednus sed...@gmail.com wrote:

   Yes, I was planning to run it on my own server... but how do I make
   that while still using GWT? is it possible?

   On Aug 3, 11:04 am, Daniel Jue teamp...@gmail.com wrote:
Sure, you just have to run it on your own server, running jetty or
   tomcat,
etc.

On Mon, Aug 3, 2009 at 12:00 PM, Sednus sed...@gmail.com wrote:

 Well, I really need to create a file on the server side and write on
 it whatever the user types on a text area is there any onther way
 to accomplish this?

 On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
  No, unfortunately you don't have file system access on App Engine.
    You
 can
  store data in databases, but you won't have any file handlers to 
  that
 data.
  jason
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Daniel Jue
Thinking more on this particular app, I think you've hit the nail on the
head.

While I don't know all the requirements,  I would say you would split this
into a few pieces:
A console/service app that gets text from somewhere and runs it.
(The somewhere could be directly from a DB if you can contact it, or through
a servlet request or email.)

A GWT web app that records the user entries to a DB.
You don't even really *need* GWT's async abilities since you probably aren't
trying to do real time compiling on each line, etc.
Just a big text box with a submit button on the bottom.

A DB structured to hold a user's text data.  It would need all the meta data
necessary to recreate it as a file (name, timestamp, etc) and also support
overwriting/versioning.

Back at the university, we would email our jar'd source to an automated
account, and then it would scan the source for plagarism, compile it, the
run dozens of tests and record the output.
Then we'd get the results mailed back to us.  Not sure if the plagarism scan
was done on the source or on the bytecode, but that's another note of a
different song.




On Mon, Aug 3, 2009 at 2:17 PM, Trevis trevistho...@gmail.com wrote:


 I dont think that you're looking at your problem right.  For starters
 GWT and AppEngine are to totally separate and unrelated things. If you
 don't intend to host on AppEngine you probably dont need to develop
 with it.

 Using RPC's to add lines of text to a file sounds like a really bad
 idea. Like everyone else is saying, use a DB.  AppEngine should make
 persisting the info to a DB about as simple as it gets. (if you want
 to use it)

 When you're ready to pull down the user entered code to compile it you
 can use an admin GWT page (or a simple servlet) that you would create
 to read the text from the DB, and send it down to you so that it can
 be compiled.  If you wrote the retrieving component as a servlet then
 you could set the page content type to plain/text and write the text
 directly to the response which would give you a file save dialog when
 you try to retrieve it.

 Just my quick though to solving the problem, ymmv.






 On Aug 3, 12:04 pm, Sednus sed...@gmail.com wrote:
  Well, I am trying to make an interface so that students can write
  their code on the web and I can compile it and run it in a computer
  cluster( Parallel Programs)... For them to see the how they work...
  but I've never worked woth stuff like this :s I am really noobie , but
  yes I need to create the file so to compile it and run it, yes its
  something unususal and i don't know what a DB tier is :(
 
  On Aug 3, 11:38 am, Daniel Jue teamp...@gmail.com wrote:
 
   It really has nothing to do with GWT.  You would have a servlet on the
   serverside that responds to rpc calls, and the servlet would call some
 file
   writing command.  (in the simplest, non-refactored way).
   The file writing part doesn't care where the input came from.
   As in logging, you won't be able to guarantee what order the data comes
 in
   when getting RPC calls.  So multiple commands issued quicky may
 generate
   out-of-order text.
 
   This said, since you are asking kind of basic questions...
 
   Are you absolutely sure you want to write a file on the system?
   Are you trying to do something unusual?
 
   Most people would use a DB tier because it can handle multiple users
 and
   updates better, and it's easier to have a timestamp tacked onto the
 message,
   where it can be sorted.
   Cleaning up the filesystem can be a chore.
   Dealing with the filesystem is a chore. File locking? etc.
 
   On Mon, Aug 3, 2009 at 12:26 PM, Sednus sed...@gmail.com wrote:
 
Yes, I was planning to run it on my own server... but how do I make
that while still using GWT? is it possible?
 
On Aug 3, 11:04 am, Daniel Jue teamp...@gmail.com wrote:
 Sure, you just have to run it on your own server, running jetty or
tomcat,
 etc.
 
 On Mon, Aug 3, 2009 at 12:00 PM, Sednus sed...@gmail.com wrote:
 
  Well, I really need to create a file on the server side and write
 on
  it whatever the user types on a text area is there any onther
 way
  to accomplish this?
 
  On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
   No, unfortunately you don't have file system access on App
 Engine.
 You
  can
   store data in databases, but you won't have any file handlers
 to that
  data.
   jason
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---



Re: Problem creating a RPC Service

2009-08-03 Thread Sednus

Thanks a lot guys, I'll give it a try.

On Aug 3, 1:40 pm, Daniel Jue teamp...@gmail.com wrote:
 Thinking more on this particular app, I think you've hit the nail on the
 head.

 While I don't know all the requirements,  I would say you would split this
 into a few pieces:
 A console/service app that gets text from somewhere and runs it.
 (The somewhere could be directly from a DB if you can contact it, or through
 a servlet request or email.)

 A GWT web app that records the user entries to a DB.
 You don't even really *need* GWT's async abilities since you probably aren't
 trying to do real time compiling on each line, etc.
 Just a big text box with a submit button on the bottom.

 A DB structured to hold a user's text data.  It would need all the meta data
 necessary to recreate it as a file (name, timestamp, etc) and also support
 overwriting/versioning.

 Back at the university, we would email our jar'd source to an automated
 account, and then it would scan the source for plagarism, compile it, the
 run dozens of tests and record the output.
 Then we'd get the results mailed back to us.  Not sure if the plagarism scan
 was done on the source or on the bytecode, but that's another note of a
 different song.

 On Mon, Aug 3, 2009 at 2:17 PM, Trevis trevistho...@gmail.com wrote:

  I dont think that you're looking at your problem right.  For starters
  GWT and AppEngine are to totally separate and unrelated things. If you
  don't intend to host on AppEngine you probably dont need to develop
  with it.

  Using RPC's to add lines of text to a file sounds like a really bad
  idea. Like everyone else is saying, use a DB.  AppEngine should make
  persisting the info to a DB about as simple as it gets. (if you want
  to use it)

  When you're ready to pull down the user entered code to compile it you
  can use an admin GWT page (or a simple servlet) that you would create
  to read the text from the DB, and send it down to you so that it can
  be compiled.  If you wrote the retrieving component as a servlet then
  you could set the page content type to plain/text and write the text
  directly to the response which would give you a file save dialog when
  you try to retrieve it.

  Just my quick though to solving the problem, ymmv.

  On Aug 3, 12:04 pm, Sednus sed...@gmail.com wrote:
   Well, I am trying to make an interface so that students can write
   their code on the web and I can compile it and run it in a computer
   cluster( Parallel Programs)... For them to see the how they work...
   but I've never worked woth stuff like this :s I am really noobie , but
   yes I need to create the file so to compile it and run it, yes its
   something unususal and i don't know what a DB tier is :(

   On Aug 3, 11:38 am, Daniel Jue teamp...@gmail.com wrote:

It really has nothing to do with GWT.  You would have a servlet on the
serverside that responds to rpc calls, and the servlet would call some
  file
writing command.  (in the simplest, non-refactored way).
The file writing part doesn't care where the input came from.
As in logging, you won't be able to guarantee what order the data comes
  in
when getting RPC calls.  So multiple commands issued quicky may
  generate
out-of-order text.

This said, since you are asking kind of basic questions...

Are you absolutely sure you want to write a file on the system?
Are you trying to do something unusual?

Most people would use a DB tier because it can handle multiple users
  and
updates better, and it's easier to have a timestamp tacked onto the
  message,
where it can be sorted.
Cleaning up the filesystem can be a chore.
Dealing with the filesystem is a chore. File locking? etc.

On Mon, Aug 3, 2009 at 12:26 PM, Sednus sed...@gmail.com wrote:

 Yes, I was planning to run it on my own server... but how do I make
 that while still using GWT? is it possible?

 On Aug 3, 11:04 am, Daniel Jue teamp...@gmail.com wrote:
  Sure, you just have to run it on your own server, running jetty or
 tomcat,
  etc.

  On Mon, Aug 3, 2009 at 12:00 PM, Sednus sed...@gmail.com wrote:

   Well, I really need to create a file on the server side and write
  on
   it whatever the user types on a text area is there any onther
  way
   to accomplish this?

   On Aug 3, 10:30 am, Jason Parekh jasonpar...@gmail.com wrote:
No, unfortunately you don't have file system access on App
  Engine.
  You
   can
store data in databases, but you won't have any file handlers
  to that
   data.
jason
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at