Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Re: Understanding the RWT SettingStore
Re: Understanding the RWT SettingStore [message #731277] Fri, 30 September 2011 13:14 Go to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Vlad,

you can override the default working directoy of the FileSettingStore.
If you specify the FileSettingStore#FILE_SETTING_STORE_DIR init
parameter in your web.xml, it should use the directory given there.

HTH
Rüdiger

On 30.09.2011 15:00, vlad crc wrote:
> Hi,
>
> I'm experiencing an issue when using ISettingStore.
>
> I have a RAP application which at some point stores some data with the
> default ISettingStore. I package the application in an EAR and deploy it
> to a JBoss. I use the application and on the server side I can see the
> file created by ISettingStore here:
>
> d:\projects\jboss-server\1\server\dorun\work\jboss.web\localhost\pisgui-2.0.0\eclipse\workspace\.metadata\.plugins\org.eclipse.rap.ui\org.eclipse.rwt.service.FileSettingStore\1307519451218_0
>
> But if I stop JBoss the whole folder
> "d:\projects\jboss-server\1\server\dorun\work\jboss.web\localhost\pisgui-2.0.0\eclipse\workspace"
> is deleted, which is bad because the setting store file is deleted so
> the aim of persisting settings is vanished.
>
> Perhaps there's something I'm missing ? Or it's a bug ?
>
> Best regards,
> Vlad Crc
--
Rüdiger Herrmann

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Understanding the RWT SettingStore [message #731903 is a reply to message #731277] Mon, 03 October 2011 12:49 Go to previous messageGo to next message
vlad crc is currently offline vlad crcFriend
Messages: 7
Registered: August 2010
Junior Member
Thanks Rüdiger, this is helpful.

However I am still wondering, is this behavior normal ? Who deletes that folder, RAP or JBoss ?
Re: Understanding the RWT SettingStore [message #731950 is a reply to message #731903] Mon, 03 October 2011 14:40 Go to previous messageGo to next message
Cole Markham is currently offline Cole MarkhamFriend
Messages: 150
Registered: July 2009
Location: College Station, TX
Senior Member

vlad crc wrote on Mon, 03 October 2011 08:49

However I am still wondering, is this behavior normal ? Who deletes that folder, RAP or JBoss ?

Most likely JBoss. We use Tomcat, but it similarly deletes it's working directory when redeploying apps.
Re: Understanding the RWT SettingStore [message #732003 is a reply to message #731903] Mon, 03 October 2011 16:07 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Vlad,

in short, it is JBoss who deletes the files. The default location for
the setting store is derived from the javax.servlet.context.tempdir
attribute of the servlet context.
This directory is controlled by the servlet engine (in your case the one
that comes with JBoss). We choose this as the default because we can be
sure to have write access to it.
See also the JavaDoc for RWTFileSettingStoreFactory.

Rüdiger

On 03.10.2011 14:49, vlad crc wrote:
> Thanks Rüdiger, this is helpful.
>
> However I am still wondering, is this behavior normal ? Who deletes that
> folder, RAP or JBoss ?

--
Rüdiger Herrmann

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Previous Topic:CSS 3 Themes
Next Topic:[ANN] RAP 1.5 M2, New Protocol
Goto Forum:
  


Current Time: Thu Apr 25 16:11:50 GMT 2024

Powered by FUDForum. Page generated in 0.03274 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top