12-15-2012 10:05 PM
  <servlet>
    <servlet-name>Spring MVC Dispatcher Servlet</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <init-param>
      <param-name>contextConfigLocation</param-name>
      <param-value>/WEB-INF/classes/web-application-config.xml</param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>   
  
  <servlet>
    <servlet-name>sammyapp</servlet-name>
    <servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>sammyapp</servlet-name>
    <url-pattern>*.htm</url-pattern>
  </servlet-mapping>       ApplicationContext appContext = new ClassPathXmlApplicationContext("alfresco/wcmqs-api-context.xml");
       String names[] = appContext.getBeanDefinitionNames();
       for(String name : names) {
          System.out.println(name);
       }
       websiteService = (WebSiteService)appContext.getBean("webSiteService");
       System.out.println("WSSwervice:"+websiteService);
       WebSite website = websiteService.getWebSite("localhost", 8080, "sammy");
12-15-2012 11:16 PM
       CmisSessionPool sessionPool = (CmisSessionPool)appContext.getBean("sessionPool");
       Session session = sessionPool.getGuestSession(); 
					
				
			
			
				
			
			
			
			
			
			
			
		12-18-2012 10:54 AM
   
    ApplicationContext appContext = new ClassPathXmlApplicationContext("alfresco/wcmqs-api-context.xml");
       websiteService = (WebSiteService)appContext.getBean("webSiteService");
       WebSite website = websiteService.getWebSite("myec2.amazonaws.com", 8080, "wcmqs"); 
					
				
				
			
		
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.