cancel
Showing results for 
Search instead for 
Did you mean: 

Sysid and client of caller for EJB Jco function

frank_wagner2
Participant
0 Kudos

Hello,

I'm trying to identify the sender system and client (ABAP) for a processFunction call implemented as ejb (with JCO interface).

Does someone knew a method to access caller information from the processFunction call?

Regards,

Frank

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

com.sap.mw.jco.JCO.Server jcoServer =
        ((com.sap.mw.jco.IServerThread) Thread.currentThread()).getServer();
com.sap.mw.jco.JCO.Attributes attributes = jcoServer.getAttributes();
String systemID = attributes.getSystemID();
String client = attributes.getClient();
frank_wagner2
Participant
0 Kudos

Hmm,

don't seem to work - the cast fails with a invalid cast exception. Don't have time now to go deeper into this, but thanks for the suggestion.

Regards,

Frank

Former Member
0 Kudos

OK, maybe I should have asked which release you are using.

So which release/ehp/sp is it?

frank_wagner2
Participant
0 Kudos

Hi,

the system I'm currently testing on is a Java 7.01 (EHP1) - SPS 6. But of course it has to work at least for all 7.00 based releases - and migration to 7.10 I have to keep in mind, too.

Thanks,

Frank

Former Member
0 Kudos

Hi Frank,

I have to admit that my proposal does not work.

There is a thread change in the 7.0x JCo RFC Provider service so that casting the thread this way is illegal.

I am afraid that there is no possibility as you would like to have one.

But I think the switch with release 7.10 to internally use the new JCo would allow a similar cast then.

I think it should be possible with release 7.10 and higher. But that does not help you right now.

I'm sorry.

Best regards,

Stefan

Answers (1)

Answers (1)

frank_wagner2
Participant
0 Kudos

No solution available, I have used another method to validate security context.