You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by philipp_s <ps...@qpass.com> on 2008/05/28 10:29:20 UTC
JCRBrowser and datasource
Is it possible to use the JCRBrowser with a repository.xml which specifies a
PersistenceManager that is using a datasource?
<code>
<PersistenceManager class="...">
<param name="dataSourceLocation" value="someDataSource"/>
<param name="schema" value="oracle"/>
<param name="schemaObjectPrefix" value="PREFIX_"/>
<param name="externalBLOBs" value="true"/>
</PersistenceManager>
</code>
thx
Philipp
--
View this message in context: http://www.nabble.com/JCRBrowser-and-datasource-tp17507598p17507598.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: JCRBrowser and datasource
Posted by Sandro Böhme <sa...@gmx.de>.
Sandro Böhme schrieb:
> philipp_s schrieb:
>>
>>
>> Sandro Böhme wrote:
>>> philipp_s schrieb:
>>>>
>>>> Sandro Böhme wrote:
>>>>> philipp_s schrieb:
>>>>>> Is it possible to use the JCRBrowser with a repository.xml which
>>>>>> specifies a
>>>>>> PersistenceManager that is using a datasource?
>>>>>> <code>
>>>>>> <PersistenceManager class="...">
>>>>>> <param name="dataSourceLocation"
>>>>>> value="someDataSource"/>
>>>>>> <param name="schema" value="oracle"/>
>>>>>> <param name="schemaObjectPrefix" value="PREFIX_"/>
>>>>>> <param name="externalBLOBs" value="true"/>
>>>>>> </PersistenceManager>
>>>>>> </code>
>>>>>>
>>>>>> thx
>>>>>>
>>>>>> Philipp
>>>>> Hello Philipp,
>>>>>
>>>>> the JCRBrowser just takes whatever you configured in the
>>>>> repository.xml and does not depend on a specific configuration.
>>>>>
>>>>> Bye,
>>>>>
>>>>> Sandro
>>>>>
>>>>>
>>>> thanks for the quick reply!
>>>>
>>>> but when I try to connect to a repository that uses a datasource in the
>>>> PersistenceManager configuration, I get the following error dialog:
>>>> "It was not possible to login. Please check the credentials" with the
>>>> following details: Unable to create connection.: Unable to create
>>>> connection.
>>>>
>>>> Do I need to create a datasource in Eclipse, so JCRBrowser can use it?
>>>> (how?)
>>>> When I connect to a test repository that has a different persistence
>>>> manager
>>>> I can browse the repository (both have the same credentials)
>>>>
>>> ahh ok: When you use the Local Jackrabbit Repository the JCRBrowser
>>> starts the repository within the plugin by using the classpath that
>>> is configured for this Eclipse plugin. Of course this works for usual
>>> use cases that don't need additional or other versions of classes or
>>> jars. If you need a new persistance manager class in the classpath I
>>> recommend dropping Jackrabbit in a Tomcat and configuring your custom
>>> classpath there. Then you can use the "Remote Java Content
>>> Repository" connection of the JCRBrowser to browse through the content.
>>>
>>> Bye,
>>>
>>> Sandro
>>>
>>>
>> again, thanks for the quick reply!
>>
>> should this also work, when the repository is deployed as a resource
>> adapter
>> in weblogic?
>>
>
> If whatever starts the Jackrabbit repository in this case also registers
> the repository to an RMI port than it will work.
> In the default Jackrabbit war the job is done by the
> RepositoryStartupServlet.registerRMI() method, but I don't know how it
> works for a resource adapter.
>
> Bye,
>
> Sandro
>
Just to avoid problems with your admin: Don't forget that opening a new
port my have consequences for your firewall rules ... ;-)
Re: JCRBrowser and datasource
Posted by Sandro Böhme <sa...@gmx.de>.
philipp_s schrieb:
>
>
> Sandro Böhme wrote:
>> philipp_s schrieb:
>>>
>>> Sandro Böhme wrote:
>>>> philipp_s schrieb:
>>>>> Is it possible to use the JCRBrowser with a repository.xml which
>>>>> specifies a
>>>>> PersistenceManager that is using a datasource?
>>>>> <code>
>>>>> <PersistenceManager class="...">
>>>>> <param name="dataSourceLocation"
>>>>> value="someDataSource"/>
>>>>> <param name="schema" value="oracle"/>
>>>>> <param name="schemaObjectPrefix" value="PREFIX_"/>
>>>>> <param name="externalBLOBs" value="true"/>
>>>>> </PersistenceManager>
>>>>> </code>
>>>>>
>>>>> thx
>>>>>
>>>>> Philipp
>>>> Hello Philipp,
>>>>
>>>> the JCRBrowser just takes whatever you configured in the repository.xml
>>>> and does not depend on a specific configuration.
>>>>
>>>> Bye,
>>>>
>>>> Sandro
>>>>
>>>>
>>> thanks for the quick reply!
>>>
>>> but when I try to connect to a repository that uses a datasource in the
>>> PersistenceManager configuration, I get the following error dialog:
>>> "It was not possible to login. Please check the credentials" with the
>>> following details: Unable to create connection.: Unable to create
>>> connection.
>>>
>>> Do I need to create a datasource in Eclipse, so JCRBrowser can use it?
>>> (how?)
>>>
>>> When I connect to a test repository that has a different persistence
>>> manager
>>> I can browse the repository (both have the same credentials)
>>>
>> ahh ok: When you use the Local Jackrabbit Repository the JCRBrowser
>> starts the repository within the plugin by using the classpath that is
>> configured for this Eclipse plugin. Of course this works for usual use
>> cases that don't need additional or other versions of classes or jars.
>> If you need a new persistance manager class in the classpath I recommend
>> dropping Jackrabbit in a Tomcat and configuring your custom classpath
>> there. Then you can use the "Remote Java Content Repository" connection
>> of the JCRBrowser to browse through the content.
>>
>> Bye,
>>
>> Sandro
>>
>>
> again, thanks for the quick reply!
>
> should this also work, when the repository is deployed as a resource adapter
> in weblogic?
>
If whatever starts the Jackrabbit repository in this case also registers
the repository to an RMI port than it will work.
In the default Jackrabbit war the job is done by the
RepositoryStartupServlet.registerRMI() method, but I don't know how it
works for a resource adapter.
Bye,
Sandro
Re: JCRBrowser and datasource
Posted by philipp_s <ps...@qpass.com>.
Sandro Böhme wrote:
>
> philipp_s schrieb:
>>
>>
>> Sandro Böhme wrote:
>>> philipp_s schrieb:
>>>> Is it possible to use the JCRBrowser with a repository.xml which
>>>> specifies a
>>>> PersistenceManager that is using a datasource?
>>>> <code>
>>>> <PersistenceManager class="...">
>>>> <param name="dataSourceLocation"
>>>> value="someDataSource"/>
>>>> <param name="schema" value="oracle"/>
>>>> <param name="schemaObjectPrefix" value="PREFIX_"/>
>>>> <param name="externalBLOBs" value="true"/>
>>>> </PersistenceManager>
>>>> </code>
>>>>
>>>> thx
>>>>
>>>> Philipp
>>> Hello Philipp,
>>>
>>> the JCRBrowser just takes whatever you configured in the repository.xml
>>> and does not depend on a specific configuration.
>>>
>>> Bye,
>>>
>>> Sandro
>>>
>>>
>> thanks for the quick reply!
>>
>> but when I try to connect to a repository that uses a datasource in the
>> PersistenceManager configuration, I get the following error dialog:
>> "It was not possible to login. Please check the credentials" with the
>> following details: Unable to create connection.: Unable to create
>> connection.
>>
>> Do I need to create a datasource in Eclipse, so JCRBrowser can use it?
>> (how?)
>>
>> When I connect to a test repository that has a different persistence
>> manager
>> I can browse the repository (both have the same credentials)
>>
>
> ahh ok: When you use the Local Jackrabbit Repository the JCRBrowser
> starts the repository within the plugin by using the classpath that is
> configured for this Eclipse plugin. Of course this works for usual use
> cases that don't need additional or other versions of classes or jars.
> If you need a new persistance manager class in the classpath I recommend
> dropping Jackrabbit in a Tomcat and configuring your custom classpath
> there. Then you can use the "Remote Java Content Repository" connection
> of the JCRBrowser to browse through the content.
>
> Bye,
>
> Sandro
>
>
again, thanks for the quick reply!
should this also work, when the repository is deployed as a resource adapter
in weblogic?
--
View this message in context: http://www.nabble.com/JCRBrowser-and-datasource-tp17507598p17508973.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: JCRBrowser and datasource
Posted by Sandro Böhme <sa...@gmx.de>.
philipp_s schrieb:
>
>
> Sandro Böhme wrote:
>> philipp_s schrieb:
>>> Is it possible to use the JCRBrowser with a repository.xml which
>>> specifies a
>>> PersistenceManager that is using a datasource?
>>> <code>
>>> <PersistenceManager class="...">
>>> <param name="dataSourceLocation" value="someDataSource"/>
>>> <param name="schema" value="oracle"/>
>>> <param name="schemaObjectPrefix" value="PREFIX_"/>
>>> <param name="externalBLOBs" value="true"/>
>>> </PersistenceManager>
>>> </code>
>>>
>>> thx
>>>
>>> Philipp
>> Hello Philipp,
>>
>> the JCRBrowser just takes whatever you configured in the repository.xml
>> and does not depend on a specific configuration.
>>
>> Bye,
>>
>> Sandro
>>
>>
> thanks for the quick reply!
>
> but when I try to connect to a repository that uses a datasource in the
> PersistenceManager configuration, I get the following error dialog:
> "It was not possible to login. Please check the credentials" with the
> following details: Unable to create connection.: Unable to create
> connection.
>
> Do I need to create a datasource in Eclipse, so JCRBrowser can use it?
> (how?)
>
> When I connect to a test repository that has a different persistence manager
> I can browse the repository (both have the same credentials)
>
ahh ok: When you use the Local Jackrabbit Repository the JCRBrowser
starts the repository within the plugin by using the classpath that is
configured for this Eclipse plugin. Of course this works for usual use
cases that don't need additional or other versions of classes or jars.
If you need a new persistance manager class in the classpath I recommend
dropping Jackrabbit in a Tomcat and configuring your custom classpath
there. Then you can use the "Remote Java Content Repository" connection
of the JCRBrowser to browse through the content.
Bye,
Sandro
Re: JCRBrowser and datasource
Posted by philipp_s <ps...@qpass.com>.
Sandro Böhme wrote:
>
> philipp_s schrieb:
>> Is it possible to use the JCRBrowser with a repository.xml which
>> specifies a
>> PersistenceManager that is using a datasource?
>> <code>
>> <PersistenceManager class="...">
>> <param name="dataSourceLocation" value="someDataSource"/>
>> <param name="schema" value="oracle"/>
>> <param name="schemaObjectPrefix" value="PREFIX_"/>
>> <param name="externalBLOBs" value="true"/>
>> </PersistenceManager>
>> </code>
>>
>> thx
>>
>> Philipp
>
> Hello Philipp,
>
> the JCRBrowser just takes whatever you configured in the repository.xml
> and does not depend on a specific configuration.
>
> Bye,
>
> Sandro
>
>
thanks for the quick reply!
but when I try to connect to a repository that uses a datasource in the
PersistenceManager configuration, I get the following error dialog:
"It was not possible to login. Please check the credentials" with the
following details: Unable to create connection.: Unable to create
connection.
Do I need to create a datasource in Eclipse, so JCRBrowser can use it?
(how?)
When I connect to a test repository that has a different persistence manager
I can browse the repository (both have the same credentials)
--
View this message in context: http://www.nabble.com/JCRBrowser-and-datasource-tp17507598p17508487.html
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.
Re: JCRBrowser and datasource
Posted by Sandro Böhme <sa...@gmx.de>.
philipp_s schrieb:
> Is it possible to use the JCRBrowser with a repository.xml which specifies a
> PersistenceManager that is using a datasource?
> <code>
> <PersistenceManager class="...">
> <param name="dataSourceLocation" value="someDataSource"/>
> <param name="schema" value="oracle"/>
> <param name="schemaObjectPrefix" value="PREFIX_"/>
> <param name="externalBLOBs" value="true"/>
> </PersistenceManager>
> </code>
>
> thx
>
> Philipp
Hello Philipp,
the JCRBrowser just takes whatever you configured in the repository.xml
and does not depend on a specific configuration.
Bye,
Sandro