wood burning stoves 2.0*
The moose likes Other Application Frameworks and the fly likes Maintaining a session object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "Maintaining a session object" Watch "Maintaining a session object" New topic
Author

Maintaining a session object

vineet kumar chaudhry
Ranch Hand

Joined: Apr 02, 2011
Posts: 45
Hi Java Lovers

I am using jackrabbit and connect to repository using my custom class GetRepositoryConnection which has a method getSession which returns jackrabbit session.

I am parsing the repository using this session object.
Currently I have 3 differnt classes which needs session object to get the data as per requirement and in each class I am using :
GetRepositoryConnection g = new GetRepositoryConnection(); session = g.getConnection()

It feels awkward to craete new session object in each. I will convert my project in swings framewok afterwards.How should I maintain the session object
I was thinking of saving the session object in application.setAttribute and getting everywhere.Is it a good approach..

Any help would be appreciated
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

The framework is called Spring.

Also, this forum is for Spring questions, your question is about JackRabbit, which is not Spring.

So this is the incorrect forum to post your question. I am not sure we even have a forum for JackRabbit.

I am going to move this to the Other Frameworks forum.

Thanks

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
vineet kumar chaudhry
Ranch Hand

Joined: Apr 02, 2011
Posts: 45
Hi Mark,

Swings was typo

I know that it is Springs forum . I am trying to say that connecting to repository is done and currently I am making my project in jsp/servlet.I just wanna say that I will convert my project into Spring Framework. I was interested in how to maintain the session object(Which approach to follow which will be benificial when I will be converting in Springs). If it sounds riduculous, I am sorry because I have not studied spring yet and thus might be asking such a stupid question(Because my boss asked me to continue in jsp/servlets, afterwards we will convert in spring)
 
wood burning stoves
 
subject: Maintaining a session object
 
Similar Threads
System.getSecurityManager(); is null
Spring with Apache Jackrabbit.
getting the details of the file from the servlet
Moving jackrabbit repository
Request to add a JCR/Jackrabbit section