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