Hi, My server app now is under develop using SpringMVC, but now I want to use tcp communication instend of http, so I selected Mina. before i go to work, i want to know how to manage session through Spring. Is there a way to reach my purpose like example demonstrated below
here is my example, my app now use @Session annotation : @Session public class User{ // this bean is session scope String uid; String name; // other field... public String getName() { return name; } // other getter/setter } @Controller public class UserAction{ @Resource User user; public void sayHello() { // when user is logined, i can get user's name through user.getName() System.out.print("hello:" + user.getName()); } } Regards