I assume it is possible to query the nHaystack service without using the REST API (given that there is a query tool built in).
I'm looking to write some custom points that roll-up haystack data (via query) into a single control point. I have a working module using the REST API but this solution is very kludgy when it comes to authentication (and the fact that the data I want is local)
Is there any documentation that would point me in the right direction?
Mike JarmyThu 28 Jan 2016
Do you mean programmatically from within an AX JVM instance? If so, then yes. The method getHaystackServer() on BNHaystackService returns an nhaystack.server.NHServer, which is a subclass of org.projecthaystack.server.HServer. So just look up the service via Sys.getService(BNHaystackService.TYPE) and from there you should be good to go.
Chris JohnsonThu 28 Jan 2016
That was exactly the pointer I needed Mike Jarmy. Thanks for the response and your work on nHaystack!
Chris Johnson Wed 27 Jan 2016
I assume it is possible to query the nHaystack service without using the REST API (given that there is a query tool built in).
I'm looking to write some custom points that roll-up haystack data (via query) into a single control point. I have a working module using the REST API but this solution is very kludgy when it comes to authentication (and the fact that the data I want is local)
Is there any documentation that would point me in the right direction?
Mike Jarmy Thu 28 Jan 2016
Do you mean programmatically from within an AX JVM instance? If so, then yes. The method getHaystackServer() on BNHaystackService returns an nhaystack.server.NHServer, which is a subclass of org.projecthaystack.server.HServer. So just look up the service via Sys.getService(BNHaystackService.TYPE) and from there you should be good to go.
Chris Johnson Thu 28 Jan 2016
That was exactly the pointer I needed Mike Jarmy. Thanks for the response and your work on nHaystack!