Ezra, sorry the docs I posted last week are not complete, as were in the RC cycle for 2.4.
I will try and update the docs online tomorrow, as the current are all sitting in CVS.
Heres what I have locally:
| 6.1.3.2. Injecting Services in the portlet context
|
| <portlet-app>
| <service>
| <service-name>UserModule</service-name>
| <service-class>org.jboss.portal.identity.UserModule</service-class>
| <service-ref>:service=Module,type=User</service-ref>
| </service>
| </portlet-app>
| Injects the UserModule service in to the portlet context, allowing a portlet to then
leverage the service. For example:
|
| UserModule userModule = (UserModule)
getPortletContext().getAttribute("UserModule");
| String userId = request.getParameters().getParameter("userid");
| User user = userModule.findUserById(userId);
|
|
|
The difference you're seeing is how the contexts are mapped to services. Look in
jboss-portal.sar/portal-core.sar/META-INF/jboss-service.xml for the mbean definitions.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3957588#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...