Brian Thompson | 1 Mar 2007 03:44
Picon

Re: Internationalization of property values

The way I see it, you have three options:

Option 1:  Separate nodes, one for each language.  If you maintain 
separate workspaces (again, one for each language), you can create the 
initial movie node and clone() it to the other language workspaces. 
Each language-version of the movie node will then share the same UUID, 
making lookups easier (just log in to the appropriate workspace when 
you're looking for a particular language's version of movie data).

If you don't go with multiple workspaces, it gets trickier - you could 
build a logical linked list with node references, but that seems harder 
to deal with.

Option 2:  One movie node, multiple child nodes for languages.  Create 
all the child nodes as the same type (movie:properties or something 
similar), and put your properties on the child nodes.

Option 3:  Make each property multi-valued.  This keeps all language 
versions of each property all in the same place, simplifying insertion 
and retrieval.  The downside is that, every time you retrieve any 
property, you are forced to retrieve all language versions of it.

Hope this helps,

-Brian

Waldemar Baraldi wrote:
> Hi all,
>  
> I want my nodes to have internationalizable properties. Let's say a node 
(Continue reading)

Gabriele Corda | 1 Mar 2007 09:39
Picon

How to write standalone WebDav client

Hi,

  Is it possible to use *WebDAV* as a wireformat between the *client* 
and the server in a model 3 setup?

There is any documentation about writing standalone WebDav clients?

How can I use Jackrabbit WebDAV Library, to build a client?

thanks
  Gabriele

Jukka Zitting | 1 Mar 2007 09:57
Picon
Gravatar

Re: how to shutdown a remote repository

Hi,

On 2/28/07, ruchi goel <Ruchi.Goel <at> sun.com> wrote:
> *But here RemoteRepository does not have a method to shutdown !!
>
> Is there some other way to shutdown the repository ?*

No, the RMI layer currently does not expose the shutdown() method. The
reason for this was that the responsibility of stopping the repository
should be on the component that started it in the first place, not on
some remote client. It is a separate question on whether that
component want's to expose some mechanism (perhaps another RMI
interface) for remote clients to request repository shutdown.

One alternative you might want to consider is to use
TransientRepository as the repository that's gets bound remotely. The
TransientRepository class automatically shuts down the repository when
there are no active sessions connected to it.

BR,

Jukka Zitting

Sriram Narayanan | 1 Mar 2007 10:30
Picon
Gravatar

Some questions on JackRAbbit performance with large data sets

Hi list:

We are using JackRabbit 1.2.1 at present.

Out Nodes look like this:
/Product/Customer1/Settings
/Product/Customer1/Configuration
/Product/Customer1/DataA
/Product/Customer1/DataB
/Product/Customer2/Settings
/Product/Customer2/Configuration
/Product/Customer2/DataA
/Product/Customer2/DataB

This way, we go all the way upto 250 customers.

When we load data for all these customers, we see that the derby
database size is 2.5 GB, and the Lucene Index is 470 MB.

We have to provide for the following:
a. Access data for around 20 customer simulatneously.
b. The queries are of the type "All attributes of a given node for a
given customer".
c. Data about one customer should not be accessed by another customer.

At present, we're access JackRabbit using 20 threads and 20 different
sessions. This is to achieve separation of data etc.

We're seeing performance figures such as the following:

(Continue reading)

Stefan Guggisberg | 1 Mar 2007 10:56
Picon

Re: CacheManager Configuration

On 2/28/07, Brian Thompson <elephantium <at> gmail.com> wrote:
> In my application, I only started seeing the CacheManager warnings that I
> mentioned after I added Jackrabbit support.  Also, the Cachemanager emits
> its warnings immediately after the Jackrabbit repository starts up; I
> assumed that the timing was not coincidental.
>
> However, when I disable the JCR support, I still get that warning.  I guess
> I should have tried that before coming here to complain about Jackrabbit
> caching ;)

no problem at all. there's a class named CacheManager in jackrabbit core.
its log messages might obviously be mixed up with those emitted by
ehcache's CacheManager.

cheers
stefan

>
> Thanks!
>
> -Brian
>
>
>
> On 2/28/07, Stefan Guggisberg <stefan.guggisberg <at> gmail.com> wrote:
> >
> > hi brian,
> >
> > On 2/27/07, Brian Thompson <elephantium <at> gmail.com> wrote:
> > > Hello,
(Continue reading)

Paco Avila | 1 Mar 2007 10:57
Picon
Favicon

how can I escape invalid chars in node name?

Can I escape invalid chars as : and * to be included in a node name?
--

-- 
GIT Consultors S.L.
c\ Francesc Rover 2-B
07003 Palma de Mallorca
(Illes Balears)

Andrea K. | 1 Mar 2007 11:06
Picon
Favicon

Log4J config with rar deployment


Hi all,
How can i configure correctly log properties using JackRabbit as a JCA
resource deployed as a RAR?

Thanks in advance.
Best regards.
Andrea -
--

-- 
View this message in context: http://www.nabble.com/Log4J-config-with-rar-deployment-tf3325996.html#a9246834
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.

Jukka Zitting | 1 Mar 2007 11:19
Picon
Gravatar

Re: jackrabbit modification and fitness

Hi,

On 2/28/07, Manolo Gomez Lopez <performante <at> gmail.com> wrote:
>  Apache jackrabit seems to fit in both categories wich is great, but we're
> wondering if it would be easy (are least if it is worth a try) to add some
> code to some methods of the WebDAV tier  implementation of apache jackrabbit
> to be triggered when invoked through that webdav protocol tier, I mean, we
> would like to have some actions taken when someone puts a file on certain
> folders.

Check out the observation feature from the JCR specification. It's
exactly what you're looking for and Jackrabbit fully supports
observation. :-)

> We also would like to modify apache jackrabbit's authentication mechanism
> (or chain a custom JAAS module) to use our custom authentication service.

The easiest way would be to use a custom JAAS module, as Jackrabbit
supports JAAS authentication.

> Our goal will be to have a JSR-170 repository with lots of user spaces
> where each user would be able to see their files and in certain folders our
> users would be able to put files which would trigger certain application
> logic.
>
> Is this possible?, is apache jackrabbit our choice?

Sounds like a good match for Jackrabbit.

BR,
(Continue reading)

Stefan Guggisberg | 1 Mar 2007 11:22
Picon

Re: Namespaces - questions

On 2/28/07, Wolf Benz <eurojava <at> gmail.com> wrote:
> Hi Stefan,
>
> 1/ It seems though, that the JR impl takes the spec a bit loosely...

since jackrabbit shares its code base with the official jsr 170 TCK
you may rest assured that jackrabbit doesn't 'take the spec a bit loosely'...

if you read the relevant sections of the specification carefully you'll
relalize that jackrabbit's implementation is absolutely compliant
with spec.

> if you read source like these 2 snippets:
> (snippet from Jackrabbit 1.2.2 -
> org.apache.jackrabbit.core.NamespaceRegistryImpl)
>
> Code: (you can't unregister a NS)
> ---------
> /**
>       * { <at> inheritDoc}
>       */
>      public void unregisterNamespace(String prefix)
>              throws NamespaceException,
> UnsupportedRepositoryOperationException,
>              AccessDeniedException, RepositoryException {
> ...
>          /**
>           * as we can't guarantee that there are no references to the
> specified
>           * namespace (in names of nodes/properties/node types etc.)
(Continue reading)

Andrea K. | 1 Mar 2007 11:23
Picon
Favicon

Re: [JCR Browser] Log4J config with rar deployment


Is it correct to put a log4j.properties for Jackrabbit in classpath?

Bye,
Andrea -

Andrea K. wrote:
> 
> Hi all,
> How can i configure correctly log properties using JackRabbit as a JCA
> resource deployed as a RAR?
> 
> Thanks in advance.
> Best regards.
> Andrea -
> 

--

-- 
View this message in context: http://www.nabble.com/Log4J-config-with-rar-deployment-tf3325996.html#a9247073
Sent from the Jackrabbit - Users mailing list archive at Nabble.com.


Gmane