Results 1 to 3 of 3

Thread: Implementing License Restrictions

Hybrid View

  1. #1
    Join Date
    Sep 2005
    Posts
    2

    Default Implementing License Restrictions

    I have a fairly big web application using JDK 1.5, Spring 1.2.4, Hibernate 3.0.5, and Cocoon 2.1.7. We have a requirement to have encrypted Licenses to be provided to users to restrict things like "30 day trial", or "Cannot add more than XXX number of Users".

    My business problem is how to implement the restrictions without putting in specific code for each License restriction in every DAO (i.e. querying the number of users when addUser() is called and validating). Is there an interceptor way of doing this that anyone can think of? Or a better solution in general that someone else has done?

    Many thanks,
    Dustin

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    You can put an interceptor on all your business methods and place the logic there. However, how exactly do you plan to implement the restrictions?
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Sep 2005
    Posts
    2

    Default

    I was thinking that I will have a separate interceptor for each license restriction, which will need to access my Service Layer to perform some checking anyway.

    So for my number of users example, my license interceptor would intercept the addUser() method at the Service Layer and do some checking with the pre-loaded license, which means getting a count of users, then verifying against the license's value. I would have to perform separate checks for everything anyway despite what my original post says.

    Thanks for the response.
    Dustin

Similar Threads

  1. How to make License for war file
    By kotesh in forum Web
    Replies: 1
    Last Post: Jun 18th, 2005, 06:15 AM
  2. Spring license
    By ChrisCross in forum Meta
    Replies: 3
    Last Post: Feb 17th, 2005, 04:53 AM
  3. Replies: 2
    Last Post: Jan 21st, 2005, 04:17 AM
  4. Implementing OpenSessionInViewInterceptor
    By springuser in forum Data
    Replies: 0
    Last Post: Nov 2nd, 2004, 08:21 AM
  5. aopalliance.jar license.
    By ajoseph in forum AOP
    Replies: 6
    Last Post: Sep 29th, 2004, 09:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •