cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple sessions created in R3 when using JCA

ErickT
Explorer
0 Kudos

Hi All,

I have created a simple iView in EP6 that retrieves data from R3. Instead of using JCo, I used the JCA, following the JCA tutorial published in SDN. It works fine. Problem is, I noticed that everytime the BAPI is called, it creates a new session in R3. I don't recall having this problem in EP5 using JCo with session pooling. Any idea?

Thanks

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I trying to do the same thing but not with much success!

Could you send me your code to see where I fail??

thanks

Former Member
0 Kudos

The code is the one get in sample, i can send you what i downloaded from sdn, but i need you email.

i changed nothing, I just create a new project in eclipse importing the par file and deployed to portal.

i fixed the problem for multiple r/3 sessions open configuring sap j2ee under eisconnector| select sap|connector properties|select sapfactory in jndi name|pooling properties. change the connection lifetime from 0 to a value press set in pooling properties and again set in the widest mask.

Former Member
0 Kudos

Hi,

Could you pls. send the link for downloading the JCA tutorial(Retriveing data from R/3).

Thanks in advance for ur help.

Regards,

Vasu.

Former Member
0 Kudos

hi, you can find here a code example and documentation on how jca works:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sapportals.km.docs/documents/a1-8-4/jca on ep6 building portal applications.zip

about the example, it has cahching problems, it means that refresh of jsp has not been mananged so it sounds all connections work or don't work, depending on which is the first response you get

Former Member
0 Kudos

i got same problem too, i found some notes about SAPJ2ee for ISA which speak about it and it should work fine at certain patch level of SAPJ2EE. Anyway i'm running with SAPJ2EE PL 23 but worst is that JCA is not working anymore.

in my developped iview I'm still getting java.nullpointer.exception when tries to connect to R3 backend. I'm using UIDPWD auth method. When i test the system launching a transaction it works.