I don't see how this could work without updating the deployed image.

What I mean is that if one deployed instance was able to create the
directory or alter any of the files in the deployed image, none of these
changes are replicated to other deployed instances.

Perhaps you can script the file system changes you desire and have them
pushed out as a deployed new version? You may be able to do that using an
automated change/build/test/deploy tool like Cruise.


On Fri, Oct 1, 2010 at 3:53 AM, jr <ramirez.j...@gmail.com> wrote:

> Thank you for the quick response. However it is said that files in WAR
> are accessible to the application via the filesystem. Does that mean
> that I can create a directory at runtime in the /war directory? Or the
> statement means another thing? I wish to create a directory at runtime
> so I can create a "domain". For example, if I have www.webpage.com, I
> will create a domain new_domain. I will then have
> www.webpage.com/new_domain/
> if I can create this directory at runtime. Thanks again!
>
> On Oct 1, 11:00 am, andy stevko <andy.ste...@gmail.com> wrote:
> > No - all local disk write access is not permitted.
> >
> > http://code.google.com/appengine/docs/java/runtime.html
> > The Filesystem
> >
> > A Java application cannot use any classes used to write to the
> filesystem,
> > such as java.io.FileWriter. An application can read its own files from
> the
> > filesystem using classes such as java.io.FileReader. An application can
> also
> > access its own files as "resources", such as with Class.getResource() or
> > ServletContext.getResource().
> >
> > Only files that are considered "resource files" are accessible to the
> > application via the filesystem. By default, all files in the WAR are
> > "resource files." You can exclude files from this set using the
> > appengine-web.xml<
> http://code.google.com/appengine/docs/java/config/appconfig.html>
> >  file.
> >
> > On Thu, Sep 30, 2010 at 6:52 PM, Norberto Ramirez II <
> ramirez.j...@gmail.com
> >
> >
> >
> >
> >
> >
> >
> > > wrote:
> > > Hi!
> >
> > > Is creating a folder at runtime allowed? I was trying to create a
> folder
> > > but I'm getting the following error.
> > > *java.security.AccessControlException: access denied
> > > (java.io.FilePermission \testfolder write)*
> >
> > > Thank you!
> >
> > > --
> > > 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<google-appengine-java%2bunsubscr...@googlegroups.com>
> <google-appengine-java%2bunsubscr...@googlegroups.com<google-appengine-java%252bunsubscr...@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<google-appengine-java%2bunsubscr...@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.

Reply via email to