[jboss-user] [JBoss Portal] - Re: Access to User's Dashboard from a Servlet

dvanwest do-not-reply at jboss.com
Mon Nov 5 19:11:39 EST 2007


OK, I found it... looked in jboss-service.xml and then the stuff below works if you wrap in a transaction.

MBeanServer mbeanServer = MBeanServerLocator.locateJBoss();
				
customManager = (CustomizationManager)MBeanProxy.get(CustomizationManager.class, 
						new ObjectName("portal:service=CustomizationManager"), mbeanServer);
				
userModule = (UserModule)MBeanProxy.get(UserModule.class, 
						new ObjectName("portal:service=Module,type=User"), mbeanServer);		
				
User user = userModule.findUserByUserName(request.getRemoteUser());				
Portal portal = customManager.getDashboard(user);



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4102022#4102022

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4102022



More information about the jboss-user mailing list