Re: How to implement multi tenancy with separate database in struts and hibernate?

2014-07-08 Thread Néstor Boscán
If you want to recreate this feature yourself with different databases you're going to have to map your entrypoint (initial URL) to your specific client and from there to the specific database datasource. Once you have the data source, associate it with the SessionFactory and everything will work c

Re: How to implement multi tenancy with separate database in struts and hibernate?

2014-07-08 Thread john feng
Oracle 12c should fit your needs. Unless you want to recreate this feature by your self. On Tue, Jul 8, 2014 at 5:36 AM, Kevin Peterson wrote: > Hi, > > We have an application wherein we want to keep separate database for each > client. We want to achieve this using multi tenancy approach. A wo

How to implement multi tenancy with separate database in struts and hibernate?

2014-07-08 Thread Kevin Peterson
Hi, We have an application wherein we want to keep separate database for each client. We want to achieve this using multi tenancy approach. A working example will be highly appreciated. Thanks, Kevin Peterson - To unsubscri

Re: Struts and Hibernate

2006-07-03 Thread Adam Hardy
DOUILLARD David on 03/07/06 08:02, wrote: Hello, I'm working on struts and hibernate. J'ai une tache qui est affectée à un utilisateur. I have a Actionform named Task. Private Integer code ; Private String codeus ; // Login of user Private String libelle; I have also a POJO Task

Struts and Hibernate

2006-07-03 Thread DOUILLARD David
Hello, I'm working on struts and hibernate. J'ai une tache qui est affectée à un utilisateur. I have a Actionform named Task. Private Integer code ; Private String codeus ; // Login of user Private String libelle; I have also a POJO Task. Private Integer code; Private User user;

Re: [OT]: Struts and Hibernate lazy

2005-08-25 Thread Letícia Álvares Barbalho
To unsubscribe, e-mail: [EMAIL PROTECTED] On 8/25/05, Shajee <[EMAIL PROTECTED]> wrote: > > Hi i want to unsubscribe from this group. > > Kindly unsubscribe me. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional

Re: [OT]: Struts and Hibernate lazy

2005-08-25 Thread Shajee
Hi i want to unsubscribe from this group. Kindly unsubscribe me. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [OT]: Struts and Hibernate lazy

2005-08-10 Thread David Durham
Konrad Billewicz wrote: Lindholm, Greg neom.com> writes: What I do is use a Hibernate Servlet Filter that closes the Hibernate session at the end of the request. This is used in conjunction with the HibernateUtils class that stores the Hibernate session in ThreadLocal storage. An example

Re: Struts and Hibernate lazy

2005-08-10 Thread Konrad Billewicz
Gareth Evans msoft.co.uk> writes: > http://www.javalobby.org/java/forums/t20533.html While ago other kind person gave mi a link to the Hibernate web site and I solved my problem. I'll read this article later. Thank you for it. Best regards, Konrad Billewicz

Re: [OT]: Struts and Hibernate lazy

2005-08-10 Thread Konrad Billewicz
Lindholm, Greg neom.com> writes: > What I do is use a Hibernate Servlet Filter that closes the Hibernate > session > at the end of the request. This is used in conjunction with the > HibernateUtils > class that stores the Hibernate session in ThreadLocal storage. > > An example of this techni

Re: Struts and Hibernate lazy

2005-08-10 Thread Gareth Evans
http://www.javalobby.org/java/forums/t20533.html Marco Mistroni wrote: Hello, Could you tell me more? Which filter? Do you mean Tomcat filters? Which plugin? It's a Servlet Filter if I am correct.. Plugin is a Struts plugin If you check www.hibernate.org in FAQ there should be a link

RE: Struts and Hibernate lazy

2005-08-10 Thread Marco Mistroni
Hello, >Could you tell me more? Which filter? Do you mean Tomcat filters? Which >plugin? It's a Servlet Filter if I am correct.. Plugin is a Struts plugin If you check www.hibernate.org in FAQ there should be a link to those informations.. Regards marco -

Re: Struts and Hibernate lazy

2005-08-10 Thread Konrad Billewicz
Nick Heudecker gmail.com> writes: > The most common way to solve this problem is to use the Open Session > In View pattern, which leaves the Hibernate session open until the JSP > has finished rendering. Typically accomplished with a filter, there > is also a Struts plugin to help with this patt

[OT]: Struts and Hibernate lazy

2005-08-09 Thread Lindholm, Greg
://www.hibernate.org/43.html) -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Konrad Billewicz Sent: Tuesday, August 09, 2005 10:11 AM To: user@struts.apache.org Subject: Struts and Hibernate lazy Hello, I am using Hibernate in my Struts project. A have a problem with Hibernate

Re: Struts and Hibernate lazy

2005-08-09 Thread Nick Heudecker
The most common way to solve this problem is to use the Open Session In View pattern, which leaves the Hibernate session open until the JSP has finished rendering. Typically accomplished with a filter, there is also a Struts plugin to help with this pattern. Google for "Open Session In View" and

Struts and Hibernate lazy

2005-08-09 Thread Konrad Billewicz
Hello, I am using Hibernate in my Struts project. A have a problem with Hibernate lazy option. When I am setting it to true, I get an error in my JSPs: org.apache.jasper.JasperException: could not initialize proxy - the owning Session was closed Of course I know why this error occurs. I am clo

Wanted Struts and Hibernate developers in Hungary and Romania!

2005-08-03 Thread Zsolt
Hi, We are looking for developers with good understanding of Struts and Hibernate in Hungary and Romania. If you are interested in please contact me at: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Re[2]: Struts and Hibernate Session

2004-05-05 Thread Lionel
Carl-Eric Menzel wrote: > It is possible to reassociate an object from an older session with the > current session by using the Session.lock() method. See > > http://www.hibernate.org/hib_docs/reference/en/html/manipulatingdata.html#manipulatingdata-update-lock > GREAT !! This is EXACTLY what

Re[2]: Struts and Hibernate Session

2004-05-05 Thread Carl-Eric Menzel
> At 1:57 PM +0200 5/5/04, Lionel wrote: >>The problem is that when I load an object, put the object into HttpSession, >>close the hibernate Session. >>If later I call a getter on lazy loaded children, I get a LazyException, >>connection closed >>I want to keep the children lazy loaded because

Re: Struts and Hibernate Session

2004-05-05 Thread Joe Germuska
At 2:10 PM +0200 5/5/04, Lionel wrote: Nicolas de Amorrortu wrote: Have you tried the following? http://www.hibernate.org/43.html. this is what I was thinking about when I posted my question...but haven't tried it yet. I don't think it will solve my problem as the object I load is put in session a

Re: Struts and Hibernate Session

2004-05-05 Thread Lionel
Nicolas de Amorrortu wrote: > Have you tried the following? http://www.hibernate.org/43.html. this is what I was thinking about when I posted my question...but haven't tried it yet. I don't think it will solve my problem as the object I load is put in session and can be accessed many requests late

RE: Struts and Hibernate Session

2004-05-05 Thread Nicolas de Amorrortu
Have you tried the following? http://www.hibernate.org/43.html. Regards, Nicolás -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Lionel Sent: Miércoles, 05 de Mayo de 2004 08:58 a.m. To: [EMAIL PROTECTED] Subject: Re: Struts and Hibernate Session Joe Germuska wrote

Re: Struts and Hibernate Session

2004-05-05 Thread Lionel
Joe Germuska wrote: >> Acutally, I have put the getHibernateSession() on a ActionFormBase. >> After each SQL action (load, find...) I close the Session. >> I don't believe this is a good design and would like to improve it. > > This is actually how Hibernate is meant to be used. The session > lif

Re: Struts and Hibernate Session

2004-05-05 Thread Joe Germuska
Where is the best way to keep the current opened Hibernate Session ? -in the HttpSession of each user ? -in a singleton ? -... When to close this Session ? -after each request ? -when the HttpSession closes ? -... Acutally, I have put the getHibernateSession() on a ActionFormBase. After each SQL ac

RE: Struts and Hibernate Session

2004-05-05 Thread Marco Mistroni
- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Lionel Sent: 05 May 2004 11:31 To: [EMAIL PROTECTED] Subject: Struts and Hibernate Session Hi ! I use struts 1.2 and Hibernate on Websphere 5. I use the struts plugin to store the SessionFactory on applicaiton context. Where is the best way to keep

Struts and Hibernate Session

2004-05-05 Thread Lionel
Hi ! I use struts 1.2 and Hibernate on Websphere 5. I use the struts plugin to store the SessionFactory on applicaiton context. Where is the best way to keep the current opened Hibernate Session ? -in the HttpSession of each user ? -in a singleton ? -... When to close this Session ? -after each

RE: Struts and Hibernate

2004-04-21 Thread David Friedman
sses/com/edhand/whatever.java Regards, David -Original Message- From: Mario St-Gelais [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 10:14 PM To: Struts Users Mailing List Subject: Re: Struts and Hibernate David Friedman wrote: >Mario, > >Where is your hibernate.properties f

Re: Struts and Hibernate

2004-04-21 Thread Mario St-Gelais
RE: Struts and Hibernate could the problem lie beneath the different jdbc-drivers you two guys use? Joe, you are using the newest generation mysql-driver. Mario uses the old one. I also experienced strange stuff using the old one. worked after switching to the new one... hth Alexander It is actual

RE: Struts and Hibernate

2004-04-21 Thread David Friedman
Mario, Where is your hibernate.properties file? in WEB-INF/classes or somewhere else? Regards, David -Original Message- From: Jesse Alexander (KXT) [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 21, 2004 5:09 AM To: 'Struts Users Mailing List' Subject: RE: Struts and Hiberna

RE: Struts and Hibernate

2004-04-21 Thread Jesse Alexander (KXT)
: Joe Hertz [mailto:[EMAIL PROTECTED] Sent: Donnerstag, 8. April 2004 08:08 To: [EMAIL PROTECTED] Subject: Re: Struts and Hibernate Mario, hibernate config look like? If it's saying the dialect doesn't support identity (and MySQL clearly does -- I use it!), then I'm betting it'

Re: Struts and Hibernate

2004-04-07 Thread Joe Hertz
1:08 AM > To: Struts Users Mailing List > Subject: Re: Struts and Hibernate > > > David Friedman wrote: > > >Nick, > > > >Your problem is the "type" set in your tag. From > (RTFM) the > >page: > >http://www.hibernate.org/hib

Re: Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
David Friedman wrote: Nick, Your problem is the "type" set in your tag. From (RTFM) the page: http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping- s1-4--generator See the "identity" description, which reads: identity - supports identity columns in DB2, MySQL, MS SQL

Re: Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
David Friedman wrote: Nick, Your problem is the "type" set in your tag. From (RTFM) the page: http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping- s1-4--generator See the "identity" description, which reads: identity - supports identity columns in DB2, MySQL, MS SQL

RE: Struts and Hibernate - this means you, Mario! :)

2004-04-07 Thread David Friedman
Sorry Nick. Hey Mario, read the docs/primer (a nice way to say RTFM. LOL) Regards, David -Original Message- From: Nick Heudecker [mailto:[EMAIL PROTECTED] Sent: Thursday, April 08, 2004 12:42 AM To: Struts Users Mailing List Subject: Re: Struts and Hibernate You addressed it to the

Re: Struts and Hibernate

2004-04-07 Thread Nick Heudecker
; > > > > > > > > > > > > type="java.lang.String" /> > > > > > > > > -Original Message- > From: Nick Heudecker [mailto:[EMAIL PROTECTED] > Sent:

RE: Struts and Hibernate

2004-04-07 Thread David Friedman
e document section just a few lines lower under the "native" explanation) Regards, David > > > > > > > type="java.lang.String" /> > > > -Original Message----- From: Nick Heudecker [mailto:[EMAIL PROTECTED] Sent: Wednesday, Apr

Re: Struts and Hibernate

2004-04-07 Thread Nick Heudecker
The next thing I'll suggest is changing your mapping to: If that still doesn't work, your best bet is to hit the Hibernate forums: http://forum.hibernate.org/ > > > > > > > > type="java.lang.String" /> > > > > Tried both native and identi

Re: Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
Nick Heudecker wrote: It sounds like you didn't configure the primary key generation correctly. I believe that MySQL supports identity keys, not sequences. Your tag should look like: OR Go here for more: http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-s1-4--gene

Re: Struts and Hibernate

2004-04-07 Thread Nick Heudecker
It sounds like you didn't configure the primary key generation correctly. I believe that MySQL supports identity keys, not sequences. Your tag should look like: OR Go here for more: http://www.hibernate.org/hib_docs/reference/html/or-mapping.html#or-mapping-s1-4--generator On 2004-Apr-07

Re: Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
David Friedman wrote: What is the contents of your hibernate.properties file (or hibernate.cfg.xml file) and in what directory did yout place it? Also, how did you create/instantiate the SessionFactory? Regards, David I used the hibernate.properties file as per the exemple : ==

RE: Struts and Hibernate

2004-04-07 Thread David Friedman
07, 2004 9:15 PM To: [EMAIL PROTECTED] Subject: Struts and Hibernate Ok for half the day now I have been trying to make a small application with Hibernate as I am trying to learn it so I can use it with Struts. I tried an exemple application shown at http://homepage.mac.com/edahand/projects/java

Struts and Hibernate

2004-04-07 Thread Mario St-Gelais
Ok for half the day now I have been trying to make a small application with Hibernate as I am trying to learn it so I can use it with Struts. I tried an exemple application shown at http://homepage.mac.com/edahand/projects/java/example1.html but I keep getting an error message : net.sf.