Keeping SAP's rfc data for consecutive calls of RFC using JCO -


i wondering if posible keep rfc called via jco opened in sap memory can cache stuff, scenario have in mind:

suppose simple function increments number. function starts 0, first time call import parameter 1 should return 1.

the second time call it should return 2 , on.

is posible jco?

if have function object , make 2 succesive calls return 1.

can i'm picturing?

designing application around stability of connection never idea (unless you're building stability monitoring software). build software works, no matter how connection closed , re-opened , no matter how session initialized , destroyed on server side. may want persist state using database, or may need (or want to) use shared memory mechanisms provided system. of inconsequential rfc handling itself.

note, however, may need ensure sequence of calls happen in single context or "business transaction". see this question , answer example. these contexts short-lived , allow intended in first place - aware should not design application has keep these contexts alive minutes or hours.


Comments