Re: Connection Pooling

2004-06-08 Thread Masashi Nakane
And if you have a chance to try DBCP , Abandand connection management function will tell you exactly where the unclosed connections are . You will love this. Masashi At 23:33 04/06/08 -0700, you wrote: "And Some other guy says the set the max number of connectons to 1." Yes this is another

Re: Connection Pooling

2004-06-08 Thread Riyad Kalla
"And Some other guy says the set the max number of connectons to 1." Yes this is another good way, thank you for bringing that up. I had a fairly big app that was throwing away connections and when I set the max connections to 1 it became almost immediately aparent where the problem was. Good sug

Re: Connection Pooling

2004-06-08 Thread Masashi Nakane
I'm using Oracle and when I meet that situation, i check the DB session (v$session) and operate GUI . When number of DB sessions increase, that is the timing . And Some other guy says the set the max number of connectons to 1. hope this help At 22:49 04/06/08 -0700, you wrote: This may seem to simp

Re: how to check if html:errors will display anything

2004-06-08 Thread Riyad Kalla
James, I can relate completely to the desire to not have scriplets.. However today is your lucky day, because logic:messagesPresent's defintiion is to actually check for ActionMessages, ActionErrors and a few other things, def: "Evaluates the nested body content of this tag if an ActionMessages o

Re: how to check if html:errors will display anything

2004-06-08 Thread James Neville
Funny you bring this up, as our gfx guy here would like the same thing. It did in fact confuse me for ages why on earth errors wern't being displayed, until I realised that tag only checked for messages (obvious I suppose). It seems to me that the abscence of an accompanying tag is an oversigh

Re: Connection Pooling

2004-06-08 Thread Riyad Kalla
This may seem to simplistic, but you could do a search for whichever method you call to open a connection and then do a search for connection.close() (or whatever you named the variable) and see if the numbers add up... if they don't, this might help you narrow down which file the two aren't syncro

Connection Pooling

2004-06-08 Thread Shailender Jain
I have fished developing the application using Struts and Tomcat 5.0.16 as server. We used the Connection Pooling provided by Struts (DBCP) After the development we have realized that somewhere in the application the connection is not getting closed. Due to this the application is getting hang ve

RE: [OT] Expresso

2004-06-08 Thread Andrew Hill
Ah, well heres the answer to the second part of my question! :-) http://www.jcorporate.com/econtent/Content.do?state=template&template=2 &resource=636&db=default"> For the Model, Expresso can interact with any standard data access technology, including Enterprise Java Beans, JDBC, and JNDI. For t

[OT] Expresso

2004-06-08 Thread Andrew Hill
Any Expresso users out there? Id be interested in hearing your comments and evaluation of this framework. It uses Struts as the basis for the presentation layer, Id be especially interested to know if it maintains Struts flexibility of allowing you to use any (ie: not JSP) view rendering technolog

RE:

2004-06-08 Thread Satish Kataria
Here is the code for defalt value SELECTED Thanks, Satish -Original Message- From: Caroline Jen [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 09, 2004 8:00 AM To: [EMAIL PROTECTED] Subject: I try to create a drop down menu as follow: I am able to disply the menu. I want o

Re: Logic:iterate

2004-06-08 Thread Bill Siggelkow
I am doing this from memory but I think it is right ... Let' suppose that the HashMap is exposed on the bean by the method Map getFooMap() {...} then you can use on your JSP: Key: Value: Bill Siggelkow Naresh Sharma wrote: Hi, I am setting a bean from my action class, this bean class has one h

user@struts.apache.org

2004-06-08 Thread Caroline Jen
I try to create a drop down menu as follow: I am able to disply the menu. I want one of the options to be selected by default. Therefore, I want to type SELECTED somewhere. How do I do it? __ Do You Yahoo!? Tired of spam? Yahoo! Mail has

RE: Single ActionForm accross multiple Actions

2004-06-08 Thread Frank Zammetti
You can set the scope attribute of your action mappings to session, then you don't have to do the code you have below. The form instance that is passed into execute() will either be what was in session, or a newly created one. I'm not sure about the answer to the second part of your question, b

Re: html:link and map of request parameters

2004-06-08 Thread Ron Grabowski
> Date: Tue, 8 Jun 2004 15:42:58 -0400 > From: Kris Schneider <[EMAIL PROTECTED]> > To: Struts Users Mailing List > <[EMAIL PROTECTED]> > Subject: Re: html:link and map of request parameters > > I believe the base requirement for Struts 1.1 is JDK > 1.2 or later. Since > LinkedHashMap was introdu

RE: design security issue

2004-06-08 Thread Sun Peng
Hi, Zhang, Larry: Do you know how to prevent user view previous page after he logon to other website. For example, if you try to leave online banking websites, they will auto log you out first. And even you press the back button, you still cannot view pervious page. Any suggestion of doing it in

RE: Tiles: Use layout definitions from config within jsp? (Corrected + Working Answer)

2004-06-08 Thread David Friedman
Matt, Yes, I had the syntax wrong: <%@ taglib uri="struts-tiles" prefix="tiles" %> You can also override pieces using "tiles:put" statements in your JSP. This works (just tested it on Struts v1.1 + Tomcat). I found the correct syntax in the User and Developer Guides -> "Tiles Tags" -> "Tiles

RE: Single ActionForm accross multiple Actions

2004-06-08 Thread Kunal H. Parikh
Great .. thanks for all the responses... I think I will go with the ActionForm stored in session-scope. Just wanting to confirm, that I will need to perform the following code changes: == public ActionForward execute( ActionMapping actionMapping, ActionForm actionForm, HttpSe

RE: design security issue

2004-06-08 Thread Frank Zammetti
Well, you could do something as simple as setting a session attribute every time an Action is called that stores what page was accessed, but before doing that you check what value is there already and if it's not the previous page, or whatever page might be valid before the one your processing,

RE: design security issue

2004-06-08 Thread Zhang, Larry \(L.\)
Thank you Frank and Yuanbo, for the points. Our application is set up in SSL and password encryption. I guess my question is pretty detail oriented. See I want a design solution so that if the person coming to a page without visiting previous page, I want to display the error page. Also since on

RE: design security issue

2004-06-08 Thread Frank Zammetti
Excellent point, thanks for adding it! Frank From: "Wang, Yuanbo" <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: RE: design security issue Date: Tue, 8 Jun 2004 15:32:16 -0500 One comment. Make sure your Ac

RE: Struts 1.1 J2EE level?

2004-06-08 Thread Pingili, Madhupal
We have several Struts 1.1 web applications running on J2EE 1.2 supported app server for about 10 months now. We are not using JSTL either. We are using Struts html/bean/logic/tiles tags. Reddy Pingili > -Original Message- > From: Yulin Zhao [SMTP:[EMAIL PROTECTED] > Sent: Tuesday, Jun

Reload ApplicationResources

2004-06-08 Thread Joseph Toth
Looking for a way to reload ApplicationResources on the fly, WITHOUT restarting the webapp. I've been search for a while now and came up empty handed... Simple, yet so hard. The only thing I found is the following piece of code which I cannot get to work. Field field1 =

RE: Struts 1.1 J2EE level?

2004-06-08 Thread Zhang, Larry \(L.\)
My answer is nothing theoretical but is practical: We are using Struts 1.1 with J2EE 1.2 ( servlet 2.2 and JSP 1.1), they are running just fine. -Original Message- From: Yulin Zhao [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 4:35 PM To: Struts Users Mailing List Subject: Struts

Struts 1.1 J2EE level?

2004-06-08 Thread Yulin Zhao
Our app server only supports J2EE1.2. Does struts1.1 have any requirement that we need use what level of J2ee? (e.g.: do struts framework jars use any New features from Servlet 2.3 or JSP1.2 or above?) I searched a few websites and asked a few more experienced friends but didn't find a sure answe

RE: design security issue

2004-06-08 Thread Wang, Yuanbo
One comment. Make sure your ActionServlet intercepts all URL patterns so any HTTP request need to get session validated first. Yuanbo -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 3:34 PM To: [EMAIL PROTECTED] Subject: RE: design security

form validation, assigning context

2004-06-08 Thread Bullard, James
Is there anyway to declare that a validator should create ActionErrors under a given key. For instance in my code I write something like this: new ActionErrors("user-errors", new ActionError("errors.user.invalid", username)); Then in the page (I am using velocity, but this is not important bear

Re: Putting Multiple Parameters in the Request

2004-06-08 Thread Henrique VIECILI
Hi Daniel, from struts-doc at http://jakarta.apache.org/struts/userGuide/struts-html.html#link "Normally, the hyperlink you specify with one of the attributes described in the previous paragraph will be left unchanged (other than URL rewriting if necessary). However, there are two ways you can

Putting Multiple Parameters in the Request

2004-06-08 Thread Kies, Daniel
Question: I am trying to put two parameters into the request, but with this code, only the second parameter, offer, gets into the request. Link If I take offer out and the code looks like this: Link The request will get populated with the student data with no problem. What is the best way t

Re: html:link and map of request parameters

2004-06-08 Thread Kris Schneider
I believe the base requirement for Struts 1.1 is JDK 1.2 or later. Since LinkedHashMap was introduced in JDK 1.4, it really can't be used in the Struts codebase. I suppose org.apache.commons.collections.SequencedHashMap could be used in its place. However, the problem is really more general than th

RE: design security issue

2004-06-08 Thread Frank Zammetti
To really do security properly, you really should externalize it using a product like Netegrity's SiteMinder. That would be my first suggestion, but there is considerable cost in something like that, so it's not right for everyone or every situation. So, you can do some more minor things withi

RE: include action into jsp page

2004-06-08 Thread Marco Rossi
Found. Use JSTL, > Da:Lesaint Sébastien <[EMAIL PROTECTED]> > Data: Mon, 7 Jun 2004 17:07:21 +0200 > A: Struts Users Mailing List <[EMAIL PROTECTED]> > Oggetto: RE: include action into jsp page > > Hi, > > I had the same problem. I solved it by using Tiles definitions. > will not work. There i

Re[2]: Hibernate Session to User Session

2004-06-08 Thread Carl-Eric Menzel
Riyad Kalla wrote: > I believe that is what I am using now (it seems to be quite popular) but > I don't quite understand the reasoning behind the ThreadLocal approach > (I've actually never used 'ThreadLocal')... can you shed some light on > this? What the mapping between Hibernate Sessions and Us

design security issue

2004-06-08 Thread Zhang, Larry \(L.\)
I have an web application on which the manager can view his manage tree and select his employee for transactions (such as Perfromance Rating, putting on Leave of absence). Definitely it is very vital in this case to keep the security or make sure one data for one employee is submitted not for an

RE: wahtd does it means ? envCtx = (Context) initCtx.lookup("jav a:comp/env");

2004-06-08 Thread Avinash Gangadharan
"java:comp/env" is the namespace that a J2EE container uses to tie logical names to the various components being managed by the container. The J2EE defines a naming policy for application components. This namespace is rooted with "java:comp" "comp" is a sub-tree for component related bindin

[OT] RE: wahtd does it means ? envCtx = (Context) initCtx.lookup("java:comp/env");

2004-06-08 Thread Robert Taylor
This is not really a Struts question and as such the subject should be prepended with [OT]. That being said, that particular line of code is retrieving the /env context. The javadocs are pretty good at explaining what a Context is and how it is used. http://java.sun.com/j2se/1.4.2/docs/api/java

Re: html:link and map of request parameters

2004-06-08 Thread Ron Grabowski
> From: "James Mitchell" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > <[EMAIL PROTECTED]> > Subject: Re: html:link and map of request parameters > Date: Mon, 7 Jun 2004 12:23:33 -0400 > > Here's how I do it: > (This demonstrates both static and dynamic values > for use with the > html:l

wahtd does it means ? envCtx = (Context) initCtx.lookup("java:comp/env");

2004-06-08 Thread birendar . waldiya
can any onetell me what  does  "java:comp/env" mean in following ???  envCtx = (Context) initCtx.lookup("java:comp/env"); Birendar Singh Waldiya Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.comDISCLAIMER: The information contained in this message is intende

RE: ServletContext in Action

2004-06-08 Thread Frank Zammetti
I wound up using servlet.getServletContext(). Seemed like the least verbose code that worked. Incidentally, although it was in another thread, it was related, my question about getting the URL in a plug-in. I wasn't able to find a way to do it, but I did find that I only actually had two plac

RE: ServletContext in Action

2004-06-08 Thread Venkat Maddipati
Frank, You can also use the following, if you want: this.servlet.getServletContext(); Thanks, Venkat -Original Message- From: Frank Zammetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 7:37 AM To: [EMAIL PROTECTED] Subject: ServletContext in Action Can anyone see how to get

Logic:iterate

2004-06-08 Thread Naresh Sharma
Title: Logic:iterate Hi, I am setting a bean from my action class, this bean class has one hashmap object, and in jsp I want to print Hashmap "key" and "values" both. Can you please suggest how to do that? Regards Naresh

URL during app init

2004-06-08 Thread Frank Zammetti
Here's a good one... Assume I have a plug-in to initialize my webapp... Assume further that the URL used to access my webapp is: http://localhost:8181/toa/ What I need to be able to do is, from my plug-in, get that URL exactly as you see above. Further, it should reflect whatever the URL is, so

Re: ServletContext in Action

2004-06-08 Thread Frank Zammetti
Sorry, answered my own question... I didn't see that method defined in Action. Thanks, I'll use this instead! Frank From: Hubert Rabago <[EMAIL PROTECTED]> Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: Struts Users Mailing List <[EMAIL PROTECTED]> Subject: Re: ServletContext in

Re: ServletContext in Action

2004-06-08 Thread Hubert Rabago
It is in fact a method of Action. It's both in 1.1 and 1.2.0. Hubert --- Frank Zammetti <[EMAIL PROTECTED]> wrote: > What is getServlet() a method of though? I didn't see it in Action, but I > could have missed it. > > I've done as was suggested via Session, works fine. I would in fact pre

Re: Interaction with .NET web service

2004-06-08 Thread Martin Gainty
Ciaran read this article http://www.javaworld.com/javaworld/jw-06-2002/jw-0628-j2eevsnet.html -Martin - Original Message - From: "Ciaran Hanley" <[EMAIL PROTECTED]> To: "Struts User Mailing List" <[EMAIL PROTECTED]> Sent: Tuesday, June 08, 2004 10:38 AM Subject: Interaction with .NET web

Re: ServletContext in Action

2004-06-08 Thread Frank Zammetti
What is getServlet() a method of though? I didn't see it in Action, but I could have missed it. I've done as was suggested via Session, works fine. I would in fact prefer to not go through session if possible though... Frank From: Hubert Rabago <[EMAIL PROTECTED]> Reply-To: "Struts Users Mai

RE: Hibernate Session to User Session

2004-06-08 Thread Marco Mistroni
Hi, I m no expert in hibernate :-( , I got suggestions >From list and hibernate docs... If u check hibernate reference, it mentions somewhere why They suggest using ThreadLocal. If I remember correctly they say that proper use is to use One session (hibernate session) per request.. then I

Re: Interaction with .NET web service

2004-06-08 Thread Varun Garg
Use Axis... it will generate all the code that you need to connect to the .net web service, just get the wsdl from .net and use Axis to generate the code and use it. Varun --- Ciaran Hanley <[EMAIL PROTECTED]> wrote: > Hey, > > > > Is there an easy way for struts to interact with > .NET and we

RE: Interaction with .NET web service

2004-06-08 Thread Frank Zammetti
Is the Struts side of it a service consumer or supplier? If it's a supplier, check out my little project: http://www.omnytex.com/strutsws It's a very simplistic thing and not suitable for every situation, but depending on your requirements, it may be enough. For consuming .Net services though

Stop on first error not working !!!

2004-06-08 Thread Ayoub, Ashraf A
Dears, I use struts 1.1, and I use client side validation. I just want to set the stop on first error to true, as I don't want alerts to be that big to the user and I want them to appear one after one. I configured it as following, but it is still don't work !!! What

Re: ServletContext in Action

2004-06-08 Thread Hubert Rabago
There's also getServlet().getServletContext() in case you don't want to go through the HttpSession object. --- Frank Zammetti <[EMAIL PROTECTED]> wrote: > Ah! I knew it would be an obvious answer I didn't see. Thank you! > > Frank > > > >From: [EMAIL PROTECTED] > >Reply-To: "Struts Users Mail

Re: ServletContext in Action

2004-06-08 Thread Frank Zammetti
Ah! I knew it would be an obvious answer I didn't see. Thank you! Frank From: [EMAIL PROTECTED] Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Subject: Re: ServletContext in Action Date: Tue, 8 Jun 2004 10:39:20 -0400 request.getSess

Interaction with .NET web service

2004-06-08 Thread Ciaran Hanley
Hey, Is there an easy way for struts to interact with .NET and web services? Our current system is developed using struts but now there is a requirement to interact with a web service application which is designed using C Sharp and .NET. The problem is how to interact between the two as I do no

Re: ServletContext in Action

2004-06-08 Thread DGraham
request.getSession().getServletContext(); "Frank Zammetti" <[EMAIL PROTECTED]> 06/08/2004 10:36 AM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To [EMAIL PROTECTED] cc Subject ServletContext in Action Can anyone see how to get access to the current

ServletContext in Action

2004-06-08 Thread Frank Zammetti
Can anyone see how to get access to the current ServletContext object from within an Action? I might be missing something obvious, but I don't see a way to do it. Specifically I need to get the real filesystem path to my WEB-INF folder... I have code that does this already, but it requires the

RE: Action Forward

2004-06-08 Thread brati . sankarghosh
Thanks Shilpa and Frank, I know about the part of adding it to struts-config.xml. but the case is I am receiving the path of a screen at runtime. so I cannot put it in struts-config.xml. Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com "Fra

Re: Hibernate Session to User Session

2004-06-08 Thread Riyad Kalla
Marco, I believe that is what I am using now (it seems to be quite popular) but I don't quite understand the reasoning behind the ThreadLocal approach (I've actually never used 'ThreadLocal')... can you shed some light on this? What the mapping between Hibernate Sessions and Users (or Threads)

ActionForm creation struts 1.1

2004-06-08 Thread Niall Lynch
HI All, I have an action form with two beans as member vairables. When the form is being ceated calls are made to the getter methods of the two beans in the form. What is making the calls to the getter methods? I can't see anything in the RequestUtils class that indicates a call is being made to t

question about modules and switching .

2004-06-08 Thread Bullard, James
I have my default struts-config.xml and another struts-admin.xml module; Depending on the users credentials they might see a link to take them to the admin module. Anyway, from an Action which is being called from the admin module (would it be fair to call it a context, how separate is it _ ) I wa

RE: Action Forward

2004-06-08 Thread Frank Zammetti
Cool, I didn't know that. Ignore my solutions Brati! (I suggested manually doing a forward via RequestDispatcher and returning null from the Action... I believe that would work as well, but certainly this is much better). Frank From: "Robert Taylor" <[EMAIL PROTECTED]> Reply-To: "Struts Users

RE: Single ActionForm accross multiple Actions

2004-06-08 Thread Frank Zammetti
This is more or less what a session-scope ActionForm is for. As long as the ActionForm class contains all the properties and methods for all the screen it will service, just putting it in session I think is your best bet. As someone else said, hidden form fields are your other choice. Actuall

Re: [PATCH] for DynaActionForm set(String, int, Object)

2004-06-08 Thread Joe Germuska
At 6:06 AM +0200 6/8/04, Uwe Voigt wrote: This adds default resizing of array or java.util.List properties Btw. I don't know why ClassCastException is catched if the type is explicitly checked using instanceof Can you please attach this to a bugzilla ticket? http://issues.apache.org/bugzilla It wi

RE: Action Forward

2004-06-08 Thread Shilpa Vaidya
I do not hink its possible. U will have to make an entry in struts config .xml. Something like this...if ur doing a simple forward. w/o any action class. regds shilpa for ex - -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 4

[OT] [SUCCESS] Struts Users in London / meet+greet / pub / netwo rking / BOF? / pre J1

2004-06-08 Thread Pilgrim, Peter
Dear Global Struts Users I am writing to you all in order to report that we had a sucessful first meeting in London, last night. Monday 7th June 2004 19:15 GMT @ Waxy O'Connor (Irish Pub) in central London, the West End. The following person were in attendance: Peter P

RE: Tiles: Use layout definitions from config within jsp?

2004-06-08 Thread Kruse, Matt
> You should read section 4.1.1 of the > Tiles Advanced Features (link at bottom > of the page of the struts site, section > on the Tiles User Guide) which gives > examples like so: > > > ... How does that help? I know how to build definitions from within JSP pages, but that's not what I'm askin

RE: Action Forward

2004-06-08 Thread Robert Taylor
Yes. return new ActionForward(path); robert -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 7:17 AM To: Struts Users Mailing List Cc: Struts Users Mailing List Subject: Action Forward Is it possible to forward to a page(ht

Action Forward

2004-06-08 Thread brati . sankarghosh
Is it possible to forward to a page(html/jsp) from the Action Class without declaring that forward in the struts-config.xml? Brati Sankar Ghosh Tata Consultancy Services Mailto: [EMAIL PROTECTED] Website: http://www.tcs.comDISCLAIMER: The information contained in this message is intended only and

Multibox combined with other fields

2004-06-08 Thread Guillermo Meyer
Hi: I have a form that may contain one or more "rows". Each row has a passenger data. All the passengers in the form consists in a reservation: Number Title NameExtraSeat CabinBaggage 1 Mr Carlos Gardel Yes(1) No(1) 2 Mr

Re: Single ActionForm accross multiple Actions

2004-06-08 Thread DGraham
Hidden form variables. Dennis "Kunal H. Parikh" <[EMAIL PROTECTED]> 06/07/2004 10:08 PM Please respond to "Struts Users Mailing List" <[EMAIL PROTECTED]> To "'Struts Users Mailing List'" <[EMAIL PROTECTED]> cc Subject Single ActionForm accross multiple Actions Hi All!

Struts Validator & Date Patterns

2004-06-08 Thread Enrique Medina
Hi, I would like to know if it's possible to indicate a validation of type "date" indicating as a dattePatern/datePatternStrict a key from an application resource message file. I mean, instead of: datePatternStrictMMdd to be able to indicate the "MMdd" dynamically (to be found through a

RE: Dyanamic form

2004-06-08 Thread Andrew Hill
Take a look at the lazyList method in ListUtils (in commons-collections). It should provide that for which you seek. [http://jakarta.apache.org/commons/collections/api/org/apache/commons/collec tions/ListUtils.html] -Original Message- From: nikhil walvekar [mailto:[EMAIL PROTECTED] Sent:

Re: Dyanamic form

2004-06-08 Thread nikhil walvekar
Hi, Shoaib In getter method of arrayList you must check whether index is within bounds or not. if not then you have to add new object (blank) to arrayList,if possible i will send send utility class for this. Nikhil. [EMAIL PROTECTED] wrote: Hi Nikhil, thanks a lot for your help.But we have t

Tag doesn't use tilesUtilImplClassname parameter

2004-06-08 Thread sirhck
Hi, I have problem with parameter tilesUtilImplClassname defined in struts-config (tiles plug-in definition). I thought that tag uses this feature but it isn't. I found in source code that org.apache.struts.taglib.tiles.InsertTag has that implementation: protected void doInclude(String page) t

RE: Hibernate Session to User Session

2004-06-08 Thread Marco Mistroni
Hi, On hibernate website, there's an example that associates A session to a threadlocal. You can safely use that pattern (it's one Of hibernate patterns)... You could have a DAOFactory (plugin) which instantiates the SessionFactory, And each DAO will get its own session associated with its