Page 1 of 1

Lansa Integrator - Service_Get Trace(*path) for SMTPMailService doesn't work

Posted: Tue Nov 05, 2019 3:29 am
by dvanoni
Hello everybody! I need to know what is the path of the trace folder when I use SMTPMailService service with Lansa Integrator. So I tried to send the "Service_get trace(*path)" command but I receive an error in the jsm message field: "Unsupported SERVICE_GET TRACE keyword value : SERVICE_GET". I think to have correctly followed the guide but it doesn't work: https://docs.lansa.com/14/en/lansa093/i ... e%7C_____2

How can I fix it?

Thanks

Here the code snippet:

Code: Select all

...
#WRK_jsmcmd := 'Service_Load Service(SMTPMailService) trace(*YES) trace_name(SEND_EMAIL)'
Use Builtin(jsmx_command) With_Args(#WRK_jsmhdle #WRK_jsmcmd) To_Get(#WRK_jsmsts #WRK_jsmmsg)
#WRK_jsmcmd := "Service_Get Trace(*path)"
Use Builtin(jsmx_command) With_Args(#WRK_jsmhdle #WRK_jsmcmd) To_Get(#WRK_jsmsts #WRK_jsmmsg)
...

Re: Lansa Integrator - Service_Get Trace(*path) for SMTPMailService doesn't work

Posted: Tue Nov 05, 2019 10:26 am
by bark
I recall that this was not working OK and was fixed in V14SP2 so if you're not on that version, that might be the reason.

Re: Lansa Integrator - Service_Get Trace(*path) for SMTPMailService doesn't work

Posted: Tue Nov 05, 2019 7:10 pm
by dvanoni
Thanks for your reply. We are using V14SP1 and maybe this can be the issue as you said. We will try to update the product and try again.

Thanks

Re: Lansa Integrator - Service_Get Trace(*path) for SMTPMailService doesn't work

Posted: Wed Nov 06, 2019 5:53 am
by caseywhite
Strange. So it is not just ending up in the standard /jsm/instance/trace folder? That must be a bug. I am on 14SP0 and see it appear in /jsm/instance/trace.

Re: Lansa Integrator - Service_Get Trace(*path) for SMTPMailService doesn't work

Posted: Wed Nov 13, 2019 9:28 pm
by Theo de Bruin
Did you try with CAPITALS ??

as in

#JSMXCMD := 'SERVICE_GET TRACE(*PATH)'
Use Builtin(jsmx_command) With_Args(#JSMXHDLE1 #JSMXCMD) To_Get(#JSMXSTS #JSMXMSG)
#Tracepath := #JSMXMSG

Re: Lansa Integrator - Service_Get Trace(*path) for SMTPMailService doesn't work

Posted: Thu Nov 14, 2019 1:16 am
by dvanoni
Hi Theo,

thanks for your reply.

it doesn't work also with CAPITALS...