File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Spring and the fly likes create a start up class  using sprong framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "create a start up class  using sprong framework" Watch "create a start up class  using sprong framework" New topic
Author

create a start up class using sprong framework

manish gupta
Ranch Hand

Joined: Nov 06, 2005
Posts: 36
Hi,

I want a class which create a new thread and this class I want to be a startup class in spring framework.

will appriciate you reply.

Thanks in adwance.

Manish
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

Not entirely sure what you're asking, but you may just need an ApplicationListener bean that looks for ContextStarted or ContextRefreshedEvents (my names might be a bit off; this is from memory).
manish gupta
Ranch Hand

Joined: Nov 06, 2005
Posts: 36
Hi Devid ,

Thanks for reply.

My question is how we can configure any java class as astartup class using springframework?

with regards
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

If they're beans, make them application event listeners, and listen for the events I already mentioned... I'm not sure what else you need to know.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create a start up class using sprong framework