{"action":"opened","issue":{"url":"https://api.github.com/repos/freme-project/technical-discussion/issues/63","labels_url":"https://api.github.com/repos/freme-project/technical-discussion/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/freme-project/technical-discussion/issues/63/comments","events_url":"https://api.github.com/repos/freme-project/technical-discussion/issues/63/events","html_url":"https://github.com/freme-project/technical-discussion/issues/63","id":107887043,"number":63,"title":"Spring Cloud + Integrating FREME NER into the Broker","user":{"login":"nilesh-c","id":1786561,"avatar_url":"https://avatars.githubusercontent.com/u/1786561?v=3","gravatar_id":"","url":"https://api.github.com/users/nilesh-c","html_url":"https://github.com/nilesh-c","followers_url":"https://api.github.com/users/nilesh-c/followers","following_url":"https://api.github.com/users/nilesh-c/following{/other_user}","gists_url":"https://api.github.com/users/nilesh-c/gists{/gist_id}","starred_url":"https://api.github.com/users/nilesh-c/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nilesh-c/subscriptions","organizations_url":"https://api.github.com/users/nilesh-c/orgs","repos_url":"https://api.github.com/users/nilesh-c/repos","events_url":"https://api.github.com/users/nilesh-c/events{/privacy}","received_events_url":"https://api.github.com/users/nilesh-c/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-23T10:06:41Z","updated_at":"2015-09-23T10:06:41Z","closed_at":null,"body":"Here's the current entry point of the FREME NER server: https://github.com/freme-project/freme-ner/blob/master/src/main/scala/org/elinker/core/api/Server.scala\r\n\r\nThis is like a Spring Boot app (I don't have much experience with Spring but from the docs this looks like the closest equivalent).\r\n\r\nI can see two ways to integrate FNER into the Broker:\r\n1. I can write a Java wrapper for this (that'll be filled with all the necessary configuration options) for use inside the Broker. Since this is maven-ready, you'd include the freme-ner artifact (it's currently called elinker, will change it) into the Broker pom.xml, instantiate the Java object with the config options (SOLR IP:PORT, path to models, MySQL address) and go from there. When FNER is running on its own node, apart from the rest of the configuration options, you should also provide the address to the eureka server (if I understand this correctly, because FNER will have some spring cloud client code to register itself on the eureka server I guess), unless if it's running completely standalone.\r\n\r\n2. I can use spray-servlet and package the app into war that you can deploy into Tomcat or some other servlet container, make it read the configuration from XML files. But I frankly wouldn't recommend that because for users that means another headache (setting up a servlet container and messing with XML configs).\r\n\r\n@jnehring let's have a discussion on this."}}