Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Java Examples #3

Open
dagamargit opened this issue Mar 4, 2021 · 1 comment
Open

API Java Examples #3

dagamargit opened this issue Mar 4, 2021 · 1 comment

Comments

@dagamargit
Copy link

Hi,

I have just started to use this connector and the Scala examples.
I would like to know if there are Java examples available. I plan to use the connector in some classes, but students don't have Scala knowledge.

Kind regards,
Daniel.

@sonsoleslp
Copy link
Member

Hi,
I am so sorry but so far the connector has only be used in Scala programs and has not been tested in Java. The syntax should not be very different for making use of the connector, though.
Alternatively, you can use a generic HTTP connector for Spark Streaming (e.g., https://github.com/alexryasn/spark-streaming-http-receiver) and parse the body of the message yourself to convert it into an NGSI event object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants