cancel
Showing results for 
Search instead for 
Did you mean: 

How can I obtain jco connection inside ep 7 ?

Former Member
0 Kudos

Hi all:

In my current EP 7, I have defined and setup one jco connections, the connections is for SAP HR ESS/MSS.

However, I want to create one small j2ee app to use this jco connections to connect to backend R/3. Is it possible to obtain jco connection inside that portal ?

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi all.

Thanks , but in my small jsp application, how can I get the JCO connection ?

Former Member
0 Kudos

Hi,

Refer the following link for JCo connection.

<a href="http://www.apentia-forum.de/viewtopic.php?t=1962&sid=9ac1506bdb153c14edaf891300bfde25">JCO</a>

Rds,

Shanthakumar.

Assign points if useful.

Former Member
0 Kudos

Hello Jianhong,

yes it is possible, if you are programming an portal component and you receive the IPortalComponentRequest object, then use next code:

		IPortalComponentRequest req = ...;
		IJCOClientService clientService = (IJCOClientService) req.getService(IJCOClientService.KEY);
		String system = req.getComponentContext().getProfile().getProperty("System_alias");
		IJCOClientPoolEntry poolEntry = clientService.getJCOClientPoolEntry(system, req);
		JCO.Client client = poolEntry.getJCOClient();

regards.

mz