NetTalk Central

Author Topic: Question, Multi-Site host NT 14.04  (Read 2480 times)

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Question, Multi-Site host NT 14.04
« on: October 16, 2023, 09:55:09 AM »
Hi Bruce,

     I have been re-reading the NetTalk Book, 4th edition.  On pages 284-285 you discuss how to handle data table locations.  Here you mention that each table needs a full pathname variable set, for example !glo:customersFileName.  You recommend it be threaded.  I have multiple apps successfully running in the Host.exe without using a full pathname variable.  I simply use the file name as seen in the example image attached.  Then, in the WebHandler, ProcessLink embed I use: 

         crf001{prop:name} = clip(self.site.appPath) & 'crf001.tps'

I do this for all files in my DLL apps.  Is this the wrong way to do things?  Is a full pathname variable necessary?

Thanks,

Jeff King
« Last Edit: October 16, 2023, 11:12:29 AM by jking »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Question, Multi-Site host NT 14.04
« Reply #1 on: October 17, 2023, 12:14:33 AM »
My only doubt is if crf001{prop:name} is threaded or not. I think it's maybe not.
Which is fine, as long as your system is not multi-tenant.

the !glo:CustomersFileName approach works better if you move to a multi-tenant environment.

Cheers
Bruce

jking

  • Sr. Member
  • ****
  • Posts: 419
    • View Profile
    • Email
Re: Question, Multi-Site host NT 14.04
« Reply #2 on: October 17, 2023, 06:31:22 AM »
Hi Bruce,

    My systems are not multi-tenant.  Simply have multiple users logging in, all use the same set of tps files in each app. 

Thanks, 

Jeff