[ 
https://issues.apache.org/jira/browse/CLEREZZA-869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13951859#comment-13951859
 ] 

Enrico Daga commented on CLEREZZA-869:
--------------------------------------

The above looks working only by providing a method to configure felix itself or 
to set generic system variables. This latter method is the one used to provide 
configuration for unit tests of the virtuoso modules.
We can go the same way for the initial configuration. Now the 
VirtuosoWeightedProvider component does not include default values at SCR 
component configuration level. On activation, if these values are missing, 
first we check whether they exist as system properties, otherwise we set the 
defaults. 
This means we can pass the configuration in the command line of the launcher, 
as follow

 java -XX:MaxPermSize=400m -Dfile.encoding=utf-8 
-Dvirtuoso.host=www.example.org -Dvirtuoso.port=1111 -Dvirtuoso.user=clerezza 
-Dvirtuoso.password=abcdef -Xss512k -Xmx2g -jar 
platform.launcher.virtuoso-0.1-SNAPSHOT.jar

Default values are the usual virtuoso open source defaults:
* virtuoso.host = localhost
* virtuoso.user = dba
* virtuoso.password = dba
* virtuoso.port = 1111

This method allows also to pass only part of them relying on default values:

 java -XX:MaxPermSize=400m -Dfile.encoding=utf-8 
-Dvirtuoso.password=myoriginalpassword -Xss512k -Xmx2g -jar 
platform.launcher.virtuoso-0.1-SNAPSHOT.jar

> Setup a platform launcher for Virtuoso
> --------------------------------------
>
>                 Key: CLEREZZA-869
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-869
>             Project: Clerezza
>          Issue Type: New Feature
>            Reporter: Enrico Daga
>            Assignee: Enrico Daga
>
> This should include jboss-transactions as pointed out by [~rwesten] 
> commenting on STANBOL-1254



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to