[JAVA-5219] Provide GraalVM metadata and substitutions Created: 31/Oct/23 Updated: 24/Jan/24 |
|
| Status: | Backlog |
| Project: | Java Driver |
| Component/s: | Integrations |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | clement escoffier | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Quarter: | FY24Q4 |
| Case: | (copied to CRM) |
| Documentation Changes Summary: | 1. What would you like to communicate to the user about this feature? |
| Description |
|
To compile a Java application using Mongo into a native executable with GraalVM, you need:
The substitutions are there to reduce the footprint of the resulting executable and workaround features not supported by the native compiler. This issue is about migrating substitutions and metadata available in the Quarkus Mongo extension to the Mongo Java client project. It will simplify the maintenance and will prevent changes from breaking native compilation. The idea would be to:
Add the resource: com.mongodb.spi.dns.DnsClientProvider Register for reflection
Initialize at runtime:
|
| Comments |
| Comment by PM Bot [ 31/Oct/23 ] |
|
Hi clement.escoffier@gmail.com, thank you for reporting this issue! The team will look into it and get back to you soon. |