Re: [Stripes-users] Maximum connections reached - hibernate session.close() ?

2009-06-09 Thread Morten Matras
Hi Richard and the rest of you. You're quite right the filter looks similar to this: filter-mapping filter-name TLSessionManagementFilter/filter-name url-pattern/*/url-pattern dispatcherREQUEST/dispatcher /filter-mapping Actually it looks like this: filter-mapping

Re: [Stripes-users] Maximum connections reached - hibernate session.close() ?

2009-06-09 Thread VANKEISBELCK Remi
Forgot to cc the list, sorry -- Forwarded message -- From: VANKEISBELCK Remi r...@rvkb.com Date: 2009/6/9 Subject: Re: [Stripes-users] Maximum connections reached - hibernate session.close() ? To: Richard Hauswald richard.hausw...@googlemail.com Hi Richard, I think OSIV is

Re: [Stripes-users] Implementing a 'keep me logged in' feature

2009-06-09 Thread DaveMark
Hi Joao, Re: I'm looking for ways to implement a keep me logged in feature on a Stripes application Why not just stick the user in the session? You can have the user login however you like, and get the user from the database for eg. If the user in the session is null, you redirect to the

Re: [Stripes-users] Maximum connections reached - hibernate session.close() ?

2009-06-09 Thread VANKEISBELCK Remi
Hi Morten, The /* mapping for the filter is good for development, but it could be a problem in production, as you'll open a session/tx for each incoming request, even those GETting images, javascripts and the like, which is probably not what you want. The mapping of the OSIV filter should be done

Re: [Stripes-users] Implementing a 'keep me logged in' feature

2009-06-09 Thread Oscar Westra van Holthe - Kind
On 09-06-2009 at 09:15, DaveMark wrote: Hi Joao, Re: I'm looking for ways to implement a keep me logged in feature on a Stripes application Why not just stick the user in the session? You can have the user login however you like, and get the user from the database for eg. If the

Re: [Stripes-users] Implementing a 'keep me logged in' feature

2009-06-09 Thread Joao Azevedo
How can I define the session expiration time? Thanks, Joao On Tue, Jun 9, 2009 at 10:49 AM, Oscar Westra van Holthe - Kind kin...@xs4all.nl wrote: On 09-06-2009 at 09:15, DaveMark wrote: Hi Joao, Re: I'm looking for ways to implement a keep me logged in feature on a Stripes

Re: [Stripes-users] Maximum connections reached - hibernate session.close() ?

2009-06-09 Thread Morten Matras
So you suggest to: - Stick with the OSIV pattern I'm using - Optimize by - looking at the database requests - use cache: * on the view level using oscache, * second level caching where this makes sence and * create custom cache where this is necessary. Does this makes sence to

Re: [Stripes-users] Maximum connections reached - hibernate session.close() ?

2009-06-09 Thread Richard Hauswald
Wow, this is a very interesting discussion! Thanks to all participants! I'm not sure if I got this right, but it seems that many of you say, that transactional services means using DTO's. I'm using transactional services without DTO's most of the time. I only use DTO's if the structure of the

Re: [Stripes-users] Maximum connections reached - hibernate session.close() ?

2009-06-09 Thread VANKEISBELCK Remi
2009/6/9 Richard Hauswald richard.hausw...@googlemail.com: I'm not sure if I got this right, but it seems that many of you say, that transactional services means using DTO's. I'm using transactional services without DTO's most of the time. I only use DTO's if the structure of the domain model

[Stripes-users] Override DateTypeConverter formats in resource bundle

2009-06-09 Thread Jan Künstler
Hello list, it seems I don't understand the standard DateTypeConverter correctly. What do I have to specify in my resource bundle to get my user inputs correctly parsed? The input should allow the following formats: HH:mm - dd.MM., HH:mm dd.MM., HH:mm ddMM 1.) @Validate(required

[Stripes-users] ValidateNestedProperties and required=true on optional collection

2009-06-09 Thread Lionel
Hello all, I have an issue when I validate a property of a Collection of object. I don't want any error validation when the collection is empty, but if one line has been added, some properties are mandatory. Here is an example: @ValidateNestedProperties ({ @Validate(field = regulationName,

Re: [Stripes-users] Implementing a 'keep me logged in' feature

2009-06-09 Thread Oscar Westra van Holthe - Kind
On 09-06-2009 at 10:53, Joao Azevedo wrote: How can I define the session expiration time? In web.xml: session-config session-timeout30/session-timeout /session-config The 30 here means 30 minutes. -1 means no timeout. Oscar -- ,-_ /() ) Oscar Westra van holthe - Kind

[Stripes-users] stripes and maven

2009-06-09 Thread Richard Hauswald
Hello list, when searching for stripes at the maven repository (http://mvnrepository.com/artifact/net.sourceforge.stripes/stripes/1.5.1) i found many dependencies which are no dependencies. I'm new to maven so I dont know who is responsible for this. I'd be happy if someone could explain to me how

Re: [Stripes-users] stripes and maven

2009-06-09 Thread Simon
Hi Richard ! There is different types of dependencies for Maven, see : http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html Most of the dependencies you see are optional, this means that you have to add them manually to your project if you want to use some