Hi,
I changed the mailstore.xml so far:
<?xml version="1.0"?>
<mailstore>
<repositories>
<repository class="org.apache.james.mailrepository.JCRMailRepository">
<protocols>
<protocol>jcr</protocol>
</protocols>
<types>
<type>MAIL</type>
</types>
<config>
<repository>jcr/shared</repository>
<username>admin</username>
<password>admin</password>
<workspace>default</workspace>
</config>
</repository>
<repository
class="org.apache.james.filepair.FilePersistentObjectRepository">
<protocols>
<protocol>file</protocol>
</protocols>
<types>
<type>OBJECT</type>
</types>
<models>
<model>SYNCHRONOUS</model>
<model>ASYNCHRONOUS</model>
<model>CACHE</model>
</models>
</repository>
<repository
class="org.apache.james.filepair.FilePersistentStreamRepository">
<protocols>
<protocol>file</protocol>
</protocols>
<types>
<type>STREAM</type>
</types>
<models>
<model>SYNCHRONOUS</model>
<model>ASYNCHRONOUS</model>
<model>CACHE</model>
</models>
</repository>
</repositories>
</mailstore>
The jndi-name of my repo is "jcr/shared", I am able to connect to it
from servlets through that name. Now, how do I make this known to the
jcr-repository.xml? What I tried there:
<Repository>
<FileSystem class="org.apache.jackrabbit.core.fs.db.DbFileSystem">
<param name="driver" value="javax.naming.InitialContext"/>
<param name="url" value="jcr/shared"/>
</FileSystem>
...
Am I on the right track with the InitialContext?
Regards,
Jürgen
2011/4/12 Eric Charles <[email protected]>:
> Hi,
>
> If you use james 3, you can configure mailbox.xml with value jcr, and set
> the attributes/credentials of your share jcr-repo in jcr-repository.xml (all
> xml in conf folder).
>
> The default jcr config is http://s.apache.org/nn, and james access the jcr
> further to the definition it finds there.
>
> Keep us informed for any question, and even if you succeed to make it work
> :)
>
> Tks,
> - Eric
>
> On 12/04/2011 10:46, Jürgen Baier wrote:
>>
>> Hello all,
>>
>> has anybody already experience in making james store mails in a shared
>> jcr-repo (deployment-model 2 on jackrabbit.apache.org)? I have
>> jackrabbit running on glassfish and can nicely access it via jndi from
>> my EJBs and servlets. Can I simply use this jndi-name to make james
>> store its mails in the same repo?
>>
>> Thanks,
>> Jürgen
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]