Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Re: HTML issue user session.

$
0
0

I have similar issue in my HTML bridge code. I injected UserSessionService in ActionsController.

 

private final UserSessionService _userSessionService;

 

public ActionsController(UserSessionService userSessionService, < other constructor args>  ) {

      _userSessionService = userSessionService;

// other constrcutor args

 

}

 

public Map<String, Object> invoke(....) {

 

UserSession userSession = _userSessionService.getUserSession();   // here userSession is coming as null.

}


actionsController and userSessionService bean in webapp/WEB-INF/spring/ bundle-context.xml.


<bean name="actionsController" class="com.sabc.mvc.ActionsController" autowire="constructor"/>

<osgi:reference id="userSessionService"    interface="com.vmware.vise.usersession.UserSessionService"/>


Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>