on 09-22-2008 7:34 AM
Hi
I'm using this piece of code to connect to the back-end via a defined system (system alias = CN)
IConnectorGatewayService cgservice =(IConnectorGatewayService) PortalRuntime .getRuntimeResources() .getService(IConnectorService.KEY);
ConnectionProperties cp = new ConnectionProperties(request.getLocale(), request.getUser());
try {
con = cgservice.getConnection("CN", cp);
}
catch (Exception e)
{
e.printStackTrace();
}
Is there a way I can pass hard-coded username/password in "ConnectionProperties(__,__)" instead of retrieving the logged-on user? i don't want to do user-mapping on the portal for connecting to the backend.
Thanks,
Prerana
Points will be awarded generously for helpful answers
ConnectionProperties constructor does not allow you to give the locale and user hardcoded. But instead of populating the local and user from request, you can create them with the hardcoded values by the respective locale and user APIs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prerana,
did you find a solution for this?
I've the same requirement and I'm still searching for a solution.
Thanks a lot!
Arno
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Prerana,
I am not very sure about the solution.
If you have created a system created then i think you can easily specify the userid and password in the useradmin for particular user for connection to backend.
I think this could resolve the issue.
Regards,
Prashil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.