[jboss-user] [JBoss Portal] - Re: Help me ! How to get UserModule throuth the Injecting Se
wendy8
do-not-reply at jboss.com
Tue Sep 26 10:16:15 EDT 2006
HI all,
I add the jboss-portlet.xml file;
<portlet-app>
<service-name>UserModule</service-name>
<service-class>org.jboss.portal.identity.UserModule</service-class>
<service-ref>:service=Module,type=User</service-ref>
</portlet-app>
and use
UserModule userModule = (UserModule) getPortletContext().getAttribute("UserModule");
String userId = request.getParameters().getParameter("userid");
User user = userModule.findUserById(userId);
in the portlet, but it throw many exceptions.
so I try to print out what's userModule.
it's print [service=Module,type=User], how I can use UserModule in the portlet? can you example that to me? Thanks very much!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3974211#3974211
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3974211
More information about the jboss-user
mailing list