You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@pekko.apache.org by "He-Pin (via GitHub)" <gi...@apache.org> on 2026/07/04 07:25:12 UTC
[PR] fix: replace deprecated bindAndHandle with newServerAt().bind() in Java samples [pekko-samples]
He-Pin opened a new pull request, #176:
URL: https://github.com/apache/pekko-samples/pull/176
### Motivation
Two Java sample files use the deprecated `Http.bindAndHandle()` API, producing deprecation warnings during compilation.
### Modification
- **WeatherHttpServer.java** (pekko-sample-sharding-java): replace `bindAndHandle` with `newServerAt("localhost", port).bind(routes)`, remove unused `ConnectHttp`, `Materializer` and `SystemMaterializer` imports
- **DemoApp.java** (pekko-sample-cluster-kubernetes-java): replace `bindAndHandle` with `newServerAt("0.0.0.0", 8080).bind(complete(...))`, remove unused `ConnectHttp` and `Materializer` imports
### Result
Samples use the modern HTTP server binding API. No more deprecation warnings from these files.
### Tests
- `sbt compile` in pekko-sample-sharding-java - no warnings
- pekko-sample-cluster-kubernetes-java: Not run - pre-existing dependency resolution issue (Maven project with missing published artifacts)
### References
None - cleanup
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org
Re: [PR] fix: replace deprecated bindAndHandle with newServerAt().bind() in Java samples [pekko-samples]
Posted by "He-Pin (via GitHub)" <gi...@apache.org>.
He-Pin merged PR #176:
URL: https://github.com/apache/pekko-samples/pull/176
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@pekko.apache.org
For additional commands, e-mail: notifications-help@pekko.apache.org