-
I'm working on a project that consists of several components, the main one contains an http server that processes requests and interacts with a database. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
@vic0824 I think that using ArcadeDB's Undertow is an excellent idea! You're right, the easiest way is to create a server plugin (look at
At startup, ArcadeDB Server will initiate your plugin and register your API. To start the server with your plugin, register the full class in Example:
|
Beta Was this translation helpful? Give feedback.
-
Unfortunately I cannot get it to work. This is how the registerAPI method looks like in my custom plugin: When I start the server (embedded in my application), the log says that the plugin was started: |
Beta Was this translation helpful? Give feedback.
@vic0824 I think that using ArcadeDB's Undertow is an excellent idea! You're right, the easiest way is to create a server plugin (look at
MongoDBProtocolPlugin
plugin implementation) and then implement theregisterAPI
method. Example for the HTTP POST API/myapi/test
:At startup, ArcadeDB Server will initiate your plugin and register your API. To start the server with your plugin, register the full class in
arcadedb.server.plugins
setting:Example:
java ... -Darcadedb.server.plugins=MyPlugin:com.yourpackage.MyPl…