We are trying to build a server (not web service related) using Spring framework. Yes, Spring provides many features in support of creating a web application. But is there any out of box features from Spring that can help to creat a non web related standalone server (or daemon)?
For example, we simplely want a server that runs some scheduled job(using quartz), listens and handles Tibco messages..
For this kind of server, what I can think of for now is something like this:
Is this a good way to start? Any best practice?Code:Public class MyServer{ public static void main(String[] args) throws Exception { new ClassPathXmlApplicationContext(new String[]{"com/abc/serverContext.xml", "com/abc/quartzContext.xml}); while(1){} } }


Reply With Quote

