cancel
Showing results for 
Search instead for 
Did you mean: 

Write messages in syslog using SOA services

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi folks!

Does anybody know is it possible or not using ootb SAO services to write messages in tcserver.syslog.

I know how to do it using ITK, but I could not find any related methods from SOA services.

 

Kind regards,

Denis

7 REPLIES

Re: Write messages in syslog using SOA services

Legend
Legend

Hello,

 

All I can think of is create an SOA wrapper to your TC_write_syslog ITK function and call it from your SOA client

 

Regards,

Mahendra

 

 

Re: Write messages in syslog using SOA services

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi Mahendra,

Thank you for your reply! Yeah I thought about it. Just wanted to check that there is no OOTB java tools to achive this.

 

Denis 

Re: Write messages in syslog using SOA services

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Mahendra,

I've never worked before with c functions from Java.

What are using for that, JNI (Java Native Interface) or something else?

Re: Write messages in syslog using SOA services

Phenom
Phenom

Though I am not sure how feasible it is to directly write to syslog, I can suggest getting absolute path to syslog using API "getTCSessionInfo". The GetTCSessionInfoResponse contains Hashtable ExtraInfo. You can get absolute path to syslog using key "syslogFile".

Re: Write messages in syslog using SOA services

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Hi xplm2005,

Thank you for your valuable advice!

Without your hint it was impossible for me to find this value in API documentation.

Yeah, writing with Java tools to syslog file does not work properly but it's ok and enough for my syslog parser.

 

Denis

Re: Write messages in syslog using SOA services

Phenom
Phenom
I wrote it all from C# .net point of view. But there should be a call similar to getTCSessionInfo in java.

Re: Write messages in syslog using SOA services

Solution Partner Creator Solution Partner Creator
Solution Partner Creator

Ok,

Here is Java way to get it:

 

Map<String, String> extraInfo = session.getConnection().getTcSessionInfo().extraInfo;