You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jukka Zitting (JIRA)" <ji...@apache.org> on 2005/10/09 22:58:49 UTC

[jira] Commented: (JCR-248) create configuration on InputStream

    [ 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