Skip to content

Command-line example for Helidon MP? #8072

Answered by lprimak
lprimak asked this question in Q&A
Discussion options

You must be logged in to vote

Alright, I found they "key ingredient" Weld needs to be statically initialized at build-time (native image):

    static {
        container = new Weld()
                .addServices(new HelidonProxyServices())
                .initialize();
    }

This way, no runtime initialization is performed and it works!

Replies: 3 comments 17 replies

Comment options

You must be logged in to vote
12 replies
@ljnelson
Comment options

@lprimak
Comment options

@danielkec
Comment options

@lprimak
Comment options

Answer selected by lprimak
Comment options

You must be logged in to vote
1 reply
@tomas-langer
Comment options

Comment options

You must be logged in to vote
4 replies
@lprimak
Comment options

@lprimak
Comment options

@lprimak
Comment options

@tomas-langer
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants