Search in sources :

Example 1 with ISessionManagerGateway

use of org.bigbluebutton.deskshare.server.session.ISessionManagerGateway in project bigbluebutton by bigbluebutton.

the class HttpTunnelStreamController method getSessionManager.

private ISessionManagerGateway getSessionManager() {
    //Get the servlet context
    ServletContext ctx = getServletContext();
    //Grab a reference to the application context
    ApplicationContext appCtx = (ApplicationContext) ctx.getAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE);
    //Get the bean holding the parameter
    ISessionManagerGateway manager = (ISessionManagerGateway) appCtx.getBean("sessionManagerGateway");
    if (manager != null) {
        System.out.println("****Got the SessionManager context: *****");
    }
    return manager;
}
Also used : ISessionManagerGateway(org.bigbluebutton.deskshare.server.session.ISessionManagerGateway) WebApplicationContext(org.springframework.web.context.WebApplicationContext) ApplicationContext(org.springframework.context.ApplicationContext) ServletContext(javax.servlet.ServletContext)

Aggregations

ServletContext (javax.servlet.ServletContext)1 ISessionManagerGateway (org.bigbluebutton.deskshare.server.session.ISessionManagerGateway)1 ApplicationContext (org.springframework.context.ApplicationContext)1 WebApplicationContext (org.springframework.web.context.WebApplicationContext)1