cancel
Showing results for 
Search instead for 
Did you mean: 

can`t connect

Former Member
0 Kudos

Hi

I want connect to predefined system using this by PageProcessorComponent

// get a client service  
IJCOClientService clientService = (IJCOClientService) request.getService(IJCOClientService.KEY);
JCO.Client client = clientService.getJCOClient("VA4088", request);       
// connect to SAP system       
client.connect();

Line IJCOClientService clientService = (IJCOClientService) request.getService(IJCOClientService.KEY); throws exception

An exception occurred while processing a request for :

iView : pokus4.Landscape

Component Name : pokus4.Landscape

com/sapportals/portal/prt/service/jco/IJCOClientService.

Exception id: 10:52_26/04/05_0092_3246050

See the details for the exception ID in the log file

Please, whats wrong?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

basicly You have to include the service to Your application by typing eg.:


<application-config>
<property name="SharingReference" value="htmlb, jcoclient, jco, usermanagement, landscape"/>
</application-config>

in Your portalapp.xml

afterward it should do:


IJCOClientService clientService =
				(IJCOClientService) PortalRuntime
					.getRuntimeResources()
					.getService(
					IJCOClientService.KEY);

Walter

Answers (1)

Answers (1)

Former Member
0 Kudos

Take a look at the following forum posting.

I would recommend you to start using JCA instead of JCO. SAP recommends JCA for portal development.