cancel
Showing results for 
Search instead for 
Did you mean: 

JCA Connection is null after defining iview as anonymous

Former Member
0 Kudos

Hi,

I have an iview that worked great with default login that pointed to a trusted r3 alias, I had the following code and the connection worked great

IConnectorGatewayService cgService =(IConnectorGatewayService) PortalRuntime.getRuntimeResources().getService(IConnectorService.KEY);

ConnectionProperties prop = new ConnectionProperties(request.getLocale(), request.getUser());

connection = cgService.getConnection("Jco_Sempra", prop);

But once I changed the iview itself to anonymous, there is a link that takes you straight to the iview, the connection is null

When I use the request.getUser() it throws an exception but if I just put the request in no exception is thrown but the connection is null?

Does anyone have an answer for this one, is there something I should ensure when I login the portal as anonymous for the backend?

Cheers,

Devlin

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

HI I am just reposting to see if anyone knows how to use JCA or JCO to get an trusted R3 alias signed in as anonymous

Any help would be appreciated I really don't want to put username and password in if all possible

Cheers,

Devlin

Former Member
0 Kudos

Maybe you can set up a different system with uid/pwd instead of logon tickets and then do user mapping from the Anonymous users group?

I haven't tried it, but it might work.

Cheers

Former Member
0 Kudos

Yeah I saw that but then how can I get the connection with JCA of a trusted system name

Former Member
0 Kudos

I'm not sure! You may need to use a normal JCo call, and hardcode a username and password in JCo.createClient. Yes, messy...

Cheers

Former Member
0 Kudos

I think you'll find that anonymous logon doesn't create a logon ticket, as there's no username to put in there.

Cheers