Certainly not the strongest protection, but a fast one:

Add a time cheking code snippet to the StartUpListener or add a custom
spring ApplicationListener listenening for the ContextRefreshedEvent. (
http://static.springframework.org/spring/docs/2.0.x/reference/beans.html#context-functionality-events
)
Simply throw an RuntimeException if your demo time period is exceed, this
should prevent the webap to startup.

Bye,

Peter

2009/4/4 Developeryours <pennent.j...@gmail.com>

>
> Hi,
>
> I need to create demo version application file.So the application need to
> expire after certain time period..Any ideas..Please help me
> --
> View this message in context:
> http://www.nabble.com/How-to-create-demo-war-file-tp22881701s2369p22881701.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>
>

Reply via email to