Skip to Content
author's profile photo Former Member
Former Member

JCO Connections with Portal's user

hi all!

I have this problem. I'm working with PDK 5.0 to create Iviews that are able to connect through Jco to my R/3 and look for some data(eventually this Iviews are going to migrate to a EP6 enviroment). But I set the JCO.client with the development user,like this:

client =JCO.createClient(sapClient,userid,password,language,hostName,systemNumber);

This works fine, but in a productive envioment I`ll need to obtain the actual Portal's user & password to create the client and so on...

Maybe I'll have to work with the JCO Cliente Service? Do you have any examples how to do that?

thanks for your help!

Jesus

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2005 at 03:03 PM

    Hi,

    u may define a system and a system alias for that system in system landscape(u have to define login method for that system!).

    If u want to use jco(now it is recommended to use jca) try this code:

    IJCOClientService clientService = (IJCOClientService) request.getService(IJCOClientService.KEY);

    poolEntry = clientService.getJCOClientPoolEntry(sourceSystem, request);

    client = poolEntry.getJCOClient();

    ...

    (client.disconnect())

    in portalapp.xml dont forget to add jcoclient to sharingreferences.

    JJ

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 24, 2005 at 03:58 PM

    Hi JJ, thanks for your fast answer.

    I'm trying to do what you said... but I got this Exception:

    Caught an exception:com.sapportals.portal.prt.service.jco.JCOClientServiceException:[JCOClientService] User not defined, not able to create JCOConnection

    Do this have anything to do with the system landscape? or with the user that I got configured in my PDK?

    Thanks!, Jesus H.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.