Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
80thAirhacksQ&A.md

Ask questions and see you at November, 2nd, 8.PM. CET: https://vimeo.com/event/154379

Also checkout recent episode:

79th airhacks.tv

Please keep the questions Jakarta EE-stic. Means: as short and as concise as only possible. Feel free to ask several, shorter questions.

Upcoming airhacks.tv events are also going to be announced at meetup.com/airhacks

@djafaka
Copy link

djafaka commented Oct 19, 2020

Use Payara? :-)

Yes, by default the server where my application is deployed is Payara as you can see in the admin console http://localhost:8080/

Do I have to change something in the config file generated ?
Here the content of the Dockerfile:
FROM airhacks/glassfish
COPY ./target/payara-jwt.war ${DEPLOYMENT_DIR}

And buildAndRun.sh

#!/bin/sh
mvn clean package && docker build -t com.eni.samples/payara-jwt .
docker rm -f payara-jwt || true && docker run -d -p 8080:8080 -p 4848:4848 --name payara-jwt com.eni.samples/payara-jwt

Thanks Adam.
Karim

@djafaka
Copy link

djafaka commented Oct 19, 2020

Ok I found the problem.
I have to change the content of the dockerfile generated:

FROM airhacks/payara-micro
ENV ARCHIVE_NAME demo2.war
COPY ./target/demo2.war ${DEPLOYMENT_DIR}

And I need to change the code of the PingResource generated, there is a compile problem if you don't change the code:

@GET
public String ping() {
    return  " Jakarta EE with MicroProfile 2+!";
}

I will adapt the archetype to those modifs...
Thank you
Karim

@AdamBien
Copy link
Author

AdamBien commented Oct 29, 2020

Ok I found the problem.
I have to change the content of the dockerfile generated:

FROM airhacks/payara-micro

Use airhacks/payara

Payara fish is the server I used in projects, workshops and conferences and what my clients are using as well. Wildfly and Co. would work as well. Payara-micro was just a PoC.

ENV ARCHIVE_NAME demo2.war
COPY ./target/demo2.war ${DEPLOYMENT_DIR}

And I need to change the code of the PingResource generated, there is a compile problem if you don't change the code:

@GET
public String ping() {
    return  " Jakarta EE with MicroProfile 2+!";
}

I will adapt the archetype to those modifs...
Thank you
Karim

@dempile
Copy link

dempile commented Oct 29, 2020

Hi Adam,

I would like to centralize the authentication of all our enterprise applications in one place using Keycloak, We have several JSF-Jakarta EE applications and few apps that uses frontend libraries.
How can I use Keycloak with Soteria in order to secure the apps that have JSF pages since keycloak is oriented to secure endpoint resources. And if you can hack something to clarify how we could secure JSF pages and Rest Endpoint it would be very nice.

Thanks

@JosefMaderKreiner
Copy link

JosefMaderKreiner commented Nov 1, 2020

Hi Adam,

Microservices build with eclipse Microprofile / Jakarta EE are really efficient. State of the art implementations like Quarkus or Openliberty need just a view MBs to host a REST-service. Even though there are a lot of discussions about the right size of Microservices.

Actually there are still use-cases where you need a lot of resources.

What do you think are good technical limitations for Microservices written in Jakarta EE / Microprofile.
Is a Microservices which needs about 10 GB RAM and 4 Cores still micro? Do you restrict resources in your projects?

Thanks for your advice!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment