[Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
Hi all,I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. greets,Ted - Using Tomcat but need to do more? Need to support web services,

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who has used Wicket in combination with JackRabbit, so he\she could help us avoid some major problems. In the past, I have been looking at using Wicket and JCR when building InfoQ.com. However, I

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else?greetsTed2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Hi all, I was wondering if there is anyone who

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else? As I already think I have answered you on the Jackrabbit list: the JCR Session is better fitted to

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
Oh yeah Sorry, i did't realize that it was you. 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere else?As I

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Oh yeah Sorry, i did't realize that it was you. Oh yes that's me everywhere :-D. ./alex -- .w( the_mindstorm )p. 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Eelco Hillenius
Do you even need to keep a reference to it? Get a session when you need it or let it get injected. Eelco On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Alexandru were did you keep the JackRabbit Session in your Wicket Application? Did you keep them in your Wicket-Session or somewhere

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
It could be easy to keep a reference, else we have to work with or something like it, because if you have create a session everytime you need it, your performance is shot to hell2006/10/17, Eelco Hillenius [EMAIL PROTECTED]:Do you even need to keep a reference to it? Get a session when you need

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Do you even need to keep a reference to it? Get a session when you need it or let it get injected. Eelco The only requirement would be that the JCR Session to be request-confined (so thread safe). I really think this is possible in

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Eelco Hillenius
The only requirement would be that the JCR Session to be request-confined (so thread safe). I really think this is possible in Wicket, but I am still waiting for your book to go out so that I can give better answers to this :-). Heh. If a session is thread bound (though I wouldn't see the

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
I really want it to be threadsafe, but at this point i don't have a good picture of how that is done.2006/10/17, Alexandru Popescu [EMAIL PROTECTED]:On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Do you even need to keep a reference to it? Get a session when you need it or let it get

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Eelco Hillenius
Requests and components are thread safe in Wicket. The pattern you are looking for might be a thread local (maybe with a servlet filter or custom request cycle). I don't know how expensive sessions are to create, and whether a pool of them is maintained by a repository. You might have to do some

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
I'll ask around on the JackRabbit user and dev list, maybe that they have a solution. But it is pretty expensive to create Sessions in JackRabbit. Your performance is really shot to hell, when you are constantly creating sessions. We used it in a very small App and the first time we run it, it can

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Eelco Hillenius
Seems they think keeping a reference in the session is a good idea: http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449. That might work, though I don't know how well it scales. That depends on the resources a session holds on to. If it does hold on to resources directly, a pool

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
It is going to be a first version of the CMS, so we can change it later.I'll take a look at the article. Thanks2006/10/17, Eelco Hillenius [EMAIL PROTECTED]:Seems they think keeping a reference in the session is a good idea: http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449.That

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: The only requirement would be that the JCR Session to be request-confined (so thread safe). I really think this is possible in Wicket, but I am still waiting for your book to go out so that I can give better answers to this :-). Heh.

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: I'll ask around on the JackRabbit user and dev list, maybe that they have a solution. But it is pretty expensive to create Sessions in JackRabbit. Your performance is really shot to hell, when you are constantly creating sessions. We used it

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
Exactly my point :-). And yes, JCR Sessions are not thread-safe so inmany cases (and as a best practice) you need to make sure it isthread-confined. ./alex--.w( the_mindstorm )p.I just asked that on the JackRabbit userlist, as you know, and i got a completely different answer

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Eelco Hillenius [EMAIL PROTECTED] wrote: Seems they think keeping a reference in the session is a good idea: http://permalink.gmane.org/gmane.comp.apache.jackrabbit.devel/7449. That might work, though I don't know how well it scales. That depends on the resources a session holds

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
You are right, i did you a transientrepository. So when i use a different one, the performance should be better? - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: Exactly my point :-). And yes, JCR Sessions are not thread-safe so in many cases (and as a best practice) you need to make sure it is thread-confined. ./alex -- .w( the_mindstorm )p. I just asked that on the JackRabbit userlist, as

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Alexandru Popescu
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: You are right, i did you a transientrepository. So when i use a different one, the performance should be better? Maybe you should start trying things by your own, as long as it looks you don't believe most of the answers you are getting on

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
You are right, I'm sorry. I misread the first answer i got from Tobias. But i do believe what is said on the mailinglist, but i'm still learningWicket and JackRabbit, so some answer may seem strange to me. That is why i ask so much. 2006/10/17, Alexandru Popescu [EMAIL PROTECTED]: On 10/17/06,

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Eelco Hillenius
On 10/17/06, Ted Roeloffzen [EMAIL PROTECTED] wrote: You are right, I'm sorry. I misread the first answer i got from Tobias. But i do believe what is said on the mailinglist, but i'm still learning Wicket and JackRabbit, so some answer may seem strange to me. That is why i ask so much. And

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
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

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Joe Toth
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

Re: [Wicket-user] JackRabbit and Wicket

2006-10-17 Thread Ted Roeloffzen
2006/10/17, Pierre-Yves Saumont [EMAIL PROTECTED]: Hi Ted,Unless you already found them, you might be interested by these articles: http://www.onjava.com/pub/a/onjava/2006/10/04/what-is-java-content-repository.html?page=1http://www-128.ibm.com/developerworks/java/library/j-jcr/ Pierre-Yves I

[Wicket-user] Jackrabbit

2006-09-22 Thread Ted Roeloffzen
Hi all,We are trying to make a CMS and CMS-components for wicket and we were told that i could be helpful to use the JSR-170 to store the content. Have any of you used the JSR-170 and aspecially its implementation JackRabbit? greets