|
Log in | ||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
(repost from 3rd party ng)
How to embed a NexusDB server in a DA server? I assume the general idea would be to include and configure the nxSQLengine, nxServerEngine, nxSession and nxDatabase components on a datamodule in the DA server project, and then create a NexusDB driver connection string to that database in the DA schema modeller. Thorsten has mentioned that for the NexusDB DA connection string, << The server must be: ipv4://[servername@]ip-or-dns np://servername[@computername] embedded://name registered://name if the servername is completely empty it internally defaults to: embedded://default "registered://" allows you to setup a server engine (embedded or remote) and related components on a datamodule... and register that with the driver. if you look into the driver unit you will see the nexusdb specific interface that allows you to register and unregister a external serverengine with the driver. >> is this where I would need to use the "registered" approach, and how do I do that (eg any pointers or code examples?) Which is the 'drivers' unit referenced above (a specific name or folder would be helpful . . . I've looked in both the NexusDB and DA source folders and haven't spotted any obvious candidate for this drivers file). Thanks! Lauchlan M |
|
#2
|
|||
|
|||
|
See my notes posted in binaries group
on this - perhaps they will help. JoeH |
|
#3
|
|||
|
|||
|
> See my notes posted in binaries group
> on this - perhaps they will help. Since you register/unregister the server engine in 5 and 6, 5. In dm.oncreate add With uDANexusDBDriver.GetDriverObject as INexusDBDriver do RegisterServerEngine(<server.name>,<server.servern name>), e.g. ('nxServerEngine1','EmbeddedNexusServer') 6. In dm.ondestroy add with uDANexusDBDriver.GetDriverObject as INexusDBDriver do UnRegisterServerEngine(<server.name>), e.g. ('nxServerEngine1'); instead of 7 and 10 - 7. In Schema Manager leave the servername for connection empty 10. For SM Database entry, a) use a "path://c:\...\" databasename or b) use a "alias://aliasname" database name in SM, and use serverengine.aliashandler.add... in datamodule's oncreate - perhaps you could use the registered syntax? eg server as 'registered://name' as << "registered://" allows you to setup a server engine (embedded or remote) and related components on a datamodule... and register that with the driver. if you look into the driver unit you will see the nexusdb specific interface that allows you to register and unregister a external serverengine with the driver. >> But Thorsten has also said that << if the servername is completely empty it internally defaults to: embedded://default >> which is what your approach looks like it is using. Why would one want to use embedded over registered when it _is_ registered? Thanks very much for this Joe. I'll give it a go as soon as I have some time available for it. Lauchlan M |
|
#4
|
|||
|
|||
|
> INexusDBDriver do
RegisterServerEngine(<server.name>,<server.servern name>), > e.g. ('nxServerEngine1','EmbeddedNexusServer') also, what would you use here if you were using a C/S arrangement with a nxRemoteServerEngine? Thanks! Lauchlan M |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| NexusDB ADO.NET Driver with RemObject's Data Abstract | Brian Wheatley | nexusdb.public.support.adoprovider | 1 | 25th July 2009 04:54 PM |
| REPOST: from third party (sort of) | Bill Mullen | nexusdb.public.support.sql | 1 | 22nd November 2006 05:11 PM |
| Embedding a NexusDB server in a Data Abstract server? | Lauchlan M | nexusdb.public.support.thirdparty | 1 | 19th January 2004 07:31 PM |
| Geoff - request for manual section - NexusDB and Remobjects Data Abstract | Lauchlan M | nexusdb.public.discussions | 16 | 16th December 2003 05:17 PM |
| Embedding a NexusDB database in a DA Server? | Lauchlan M | nexusdb.public.support.thirdparty | 0 | 16th December 2003 01:19 AM |