I have created following class
@Component
@Scope(value = "session", proxyMode = ScopedProxyMode.TARGET_CLASS)
public class ApplicationUserInfo implements Serializable {
private String user;
private Integer companynumber;
}
I am ding @Autowire to use this class into my Batch processing which is outside the session. I want to use session scoped bean outside the session so how could I do this? Is there any other way to use that bean.
Please suggest me.