jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christophe Lombart" <christophe.lomb...@gmail.com>
Subject Re: Web app design pattern questions
Date Wed, 20 Jun 2007 07:11:20 GMT
On 6/19/07, bilobag <bilobag@hotmail.com> wrote:
>
>
> Thanks for the quick responses.  I am interested in trying the mapping
> tool.
> I am currently using Spring and noticed that you are working on some
> spring
> integration components.  Are these in a stable state?  I would like to be
> able to configure the jcr mapping file in my spring configuration to load
> at
> startup.  Please let me know if there is anything that currently does
> this.
> Thanks.


We made a lot of changes in the OCM API. So, we have to review the Spring
support.
I would like to modify it when the first OCM release is done.


Pavel Konnikov wrote:
> >
> > On Tue, 19 Jun 2007 18:52:00 +0400, Christophe Lombart
> > <christophe.lombart@gmail.com> wrote:
> >
> >>> Also, is there any documentation for getting started with this?
> >>
> >> I would like to work on the doc asap but they are some interresting
> info
> >> in
> >> the doc folder. You can generate it with maven. Anyway,  I have to
> >> review it
> >> due to a lot of changes since the move into Jackrabbit.
> >>
> > In documentation generated by maven missing pictures and on page "The
> > Persistence Manager Setup" very old information.
> >
> > setup now more simple:
> >
> >          ...
> >
> >
> > session.getWorkspace().getNamespaceRegistry().registerNamespace("ocm",
> > "http://jackrabbit.apache.org/ocm");
> >
> >          String[] files = {"mapping1.xml", "mapping2.xml"};
> >          ObjectContentManager objectContentManager = new
> > ObjectContentManagerImpl(session, files);
> >
> >          // register namespace "ocm" and nodetypes from
> > src/test/test-config/nodetypes/custom_nodetypes.xml
> >
> >          MyObject object = new MyObject();
> >          object.set...();
> >          object.setPath("/some/path");
> >
> >          objectContentManager.insert(object);
> >
> >          object = (MyObject) objectContentManager.getObject
> ("/some/path");
> >          objectContentManager.update();
> >
> >          Filter filter =
> > objectContentManager.getQueryManager().createFilter(MyObject.class);
> >          Query query =
> > objectContentManager.getQueryManager().createQuery(filter);
> >          objectContentManager.remove(object);
> >
> >          objectContentManager.save();
> >
> >          ...
> >
> > It is very simple!
> >
> >>> So the wrapper class design isn't a good idea?
> >>
> >> not for me :-) maybe others can have another point of view
> >>
> > Agree. Why invent wheel!
> >
> >
> > --
> > Best regards. Pavel Konnikov
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/Web-app-design-pattern-questions-tf3946577.html#a11201721
> Sent from the Jackrabbit - Dev mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message