#1  
Old 14th July 2021, 01:42 AM
knrandall knrandall is offline
Member
 
Join Date: Jan 2018
Posts: 46
Default TMS RemoteDB

Hi,

I don't seem to be able to use the RemoteDB built into nxServer from a TMS Web App. It works fine using VCL.

From the TMS documentation https://doc.tmssoftware.com/biz/spar...ors-middleware It looks like the unit Sparkle.Middleware.Cors needs to be added and Module.AddMiddleware(TCorsMiddleware.Create) needs to be called.

Can you provide any help on how to do this?

Thanks,

Ken
  #2  
Old 14th July 2021, 09:55 AM
Eivind Bakkestuen
 
Posts: n/a
Default Re: TMS RemoteDB

> Can you provide any help on how to do this?

You would modify the nxRemoteDBServer.pas unit with the required
changes, and recompile nxServer.

--

Eivind [NX]
  #3  
Old 14th July 2021, 07:07 PM
knrandall knrandall is offline
Member
 
Join Date: Jan 2018
Posts: 46
Default

I added

if not Assigned(rdbsServerModule) then
rdbsServerModule:=THttpServerModule.Create(rdbsBas eUrl);
rdbsServerModule.AddMiddleware(TCorsMiddleware.Cre ate);

in the TnxRemoteDBServer.scInitializing procedure after

rdbsServer.AddModule(TnxRemoteDBModule.Create(Self , t));

But this makes no difference. Any ideas?
  #4  
Old 14th July 2021, 11:36 PM
Thorsten Engler [NDA]
 
Posts: n/a
Default Re: TMS RemoteDB

I would think you need to add it to the TnxRemoteDBModule

knrandall wrote:

>
> I added
>
> if not Assigned(rdbsServerModule) then
> rdbsServerModule:=THttpServerModule.Create(rdbsBas eUrl);
> rdbsServerModule.AddMiddleware(TCorsMiddleware.Cre ate);
>
> in the TnxRemoteDBServer.scInitializing procedure after
>
> rdbsServer.AddModule(TnxRemoteDBModule.Create(Self , t));
>
> But this makes no difference. Any ideas?


  #5  
Old 14th July 2021, 11:47 PM
Eivind Bakkestuen
 
Posts: n/a
Default Re: TMS RemoteDB

> But this makes no difference. Any ideas?

I don't currently have access to the TMS Web stuff for testing, sorry.
You may have to check with TMS support what exactly is required to get
their RemoteDB and Web products to cooperate.

--

Eivind [NX]
  #6  
Old 17th July 2021, 12:01 AM
knrandall knrandall is offline
Member
 
Join Date: Jan 2018
Posts: 46
Default

Thanks. I now have my own "nxServer" service running as an XData server as well. It works very well with TMS Web.


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
nxServer & RemoteDB knrandall nexusdb.public.support 2 12th July 2021 03:33 AM
RemoteDB and alias with SPACE Alessandro Romano nexusdb.public.support 1 29th October 2019 03:40 AM
RemoteDB Alessandro Romano nexusdb.public.support 4 9th June 2018 12:18 AM
Why RemoteDB? chris nexusdb.public.discussions 0 1st April 2018 02:57 AM
TMS RemoteDB obeltrami nexusdb.public.support 8 7th March 2018 08:33 AM


All times are GMT +11. The time now is 08:20 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.