-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
User home dir-based or programamble based org.dslforge.workspace.config.configuration #47
Comments
Hi @kgardas , |
Just to clarify, in (b) do you mean something like %user.home%/www/ in the extension point contribution? or a static method like @jabiercoding suggested in #45. |
Hi @amlajmi , |
Until now, the file system and the database go together, and I don't see any advantage of using the database if it's not for sharing information among users. Wouldn't it be better to disable it completely in your scenario ? |
@amlajmi There is a possibility to completely disable Derby? If so, I'm all for it in our particular case. Could you be so kind and point me to some information describing how to do it? Also if you do not think this issue is relevant after it just close it. Thanks! Karel |
This is feasible, the clean way to do it would be to add a boolean flag in the extension point definition, something like enableDatabase which is defaulted to true. Then, add a method in IWorkspaceContribution#isDatabaseEnabled(). In WorkspaceActivator#addingService() check the user contribution and based on that create the entity manager factory, see dslforge/plugins/org.dslforge.workspace/src/org/dslforge/workspace/internal/WorkspaceActivator.java Line 101 in 2ea33c3
Normally, in the workspace manager, every operation on the file system is followed by the pattern:
So hopefully there is no additional work to do. If you're taking this path, please create a pull request, it would be nice to make this feature available for all of us, thanks. |
Hello,
as mentioned in #45 it would be good either to have (a) programming way to specify workspace location or (b) support to use @user.home in specification of workspace location in extension point or (c) support to use workspace/derby purely in RAM of the current Java process.
The motivation behind this is that we would like to use dslforge-based editor in multi-user setup but strict rule needs to apply: NO data sharing between different application users. That means current dslforge does not obey this rule due to usage of shared workspace for Derby DB and we need to fix that in some possible way. Side-note: for different users of the application we are using different JDK processes and different home-dirs/workspaces to isolate users so far...
Thanks!
Karel
The text was updated successfully, but these errors were encountered: