jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-248) create configuration on InputStream
Date Sun, 09 Oct 2005 20:58:49 GMT
    [ http://issues.apache.org/jira/browse/JCR-248?page=comments#action_12331673 ] 

Jukka Zitting commented on JCR-248:
-----------------------------------

You can use InputStreams just by wrapping them into InputSources:

    String repositoryHome = ...;
    InputStream repositoryXml = ...;
    RepositoryConfig config = RepositoryConfig.create(new InputSource(repositoryXml), repositoryHome);

(The API uses InputSources as they make for better XML error messages)

The JCA case is a bit more difficult. It might make sense to allow URLs instead of just file
paths as configuration file paths in RepositoryConfig.create(String,String)? Would this cover
your use case?

> create configuration on InputStream
> -----------------------------------
>
>          Key: JCR-248
>          URL: http://issues.apache.org/jira/browse/JCR-248
>      Project: Jackrabbit
>         Type: Improvement
>   Components: config
>     Reporter: Costin Leau
>     Assignee: Jukka Zitting
>     Priority: Minor
>      Fix For: 1.0

>
> RepositoryConfig should be possible to create based on InputStreams (in case of URLs)
; right now it's possible only using String and InputSource. Please update also the JCA connector.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message