Ok.But It gives exception, when I try to get User Management service. Is
there any way to get Estrangement instance?
My program looks like this
public class MyClient {
private static TurbineConfig config = null;
static
{
try
{
config = new TurbineConfig( ".",
"TurbineResources.properties");
config.initialize();
}
catch (Exception e)
{
fail(StringUtils.stackTrace(e));
}
}
private static UserManagement getService()
{
return (UserManagement)TurbineServices
.getInstance()
.getService(UserManagement.SERVICE_NAME);
}
public static void main(String[] args)
{
UserManagement t =MyClient.getService();
}
}
But it always throws
org.apache.turbine.services.InstantiationException: ServiceBroker:
unknown service UserManagement requested
at
org.apache.turbine.services.BaseServiceBroker.getServiceInstance(BaseSer
viceBroker.java:354)
at
org.apache.turbine.services.BaseServiceBroker.getService(BaseServiceBrok
er.java:296)
at MyClient.getService(MyClient.java:36)
at MyClient.main(MyClient.java:42)
Exception in thread "main"
-----Original Message-----
From: David Le Strat [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 17, 2005 8:32 AM
To: Jetspeed Users List
Subject: Re: How to get list of all users?
Look at
http://portals.apache.org/jetspeed-2/multiproject/jetspeed-api/apidocs/i
ndex.html
userMgr.getUsers("");
will return all users.
Regards,
David Le Strat
--- "Logantha, Jayaprakash (STSD)"
<[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> My requirement is listing all the users created in the Jetspeed in a
> java client. Is there any way to do this?. Is there any document for
> this?
>
> Thanks,
> JP
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
________________________
David Le Strat
Blogging @ http://dlsthoughts.blogspot.com
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]