Do you plan on using Spring?

If so, spring modules support JCR.

https://springmodules.dev.java.net/docs/reference/0.6/html/jcr.html

The sub projects wicket-spring and wicket-spring-annot make injecting spring managed beans into your pages EXTREMELY easy.  If you ever used spring to manage anything before, this is no different.

If you go this route you get so many features for free.

1. Session/Transaction management: spring will manage
2. Simple Integration: In a Wicket Page annotate a field to be able to use your service on the page. @Spring MyService service;
3. JCR configuration flexibility: Then your users can use spring to manage the creation and configuration of JCR rather than you provide


I don't know exactly what a 'JCR Session' is, but if its serializable then you could store it in the session.  So that would mean the connection to the repository is resolved before each use.  If its not serializable that means it probably holds some kind of connection to non-serializable objects (probably the repository, whether it be local or remote). Also if its not serializable then you can't keep it in the session because it needs to be able to be replicated to another computer for load balancing/fail-over.

In either case, connecting to the repository on every request is trivial, especially if its local. From the documentation, it looks like spring does it this way.

On 10/17/06, Ted Roeloffzen <[EMAIL PROTECTED]> wrote:
You're absolutely right Eelco, we are starting with the Design, so you'll see it soon.
Than it can be judged by you all, LOL

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to