Skip to content

Instantly share code, notes, and snippets.

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

Ask questions and see you at July, 1st, 6.PM. CET: http://www.ustream.tv/channel/adambien

Also checkout recent episode:

64th airhacks.tv

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

@altuga

This comment has been minimized.

Copy link

altuga commented Jun 6, 2019

Hello Adam

Which one should we choose, when and why?

1 - ConcurrencyManagementType.BEAN
2 - ConcurrencyManagementType.CONTAINER

Thanks.

@AlexeyMalkovskiy

This comment has been minimized.

Copy link

AlexeyMalkovskiy commented Jun 6, 2019

Hello Adam

I have a question about BCE structire and the BeanValidation API. Where should we put custom validators, their annotations and interfaces which define validation groups? Should we introduce special "validation" package on the top level if we have validators which are used in several business packages? if "yes", should we move all validation classes into this package?

Thanks.

@IramKahkashan

This comment has been minimized.

Copy link

IramKahkashan commented Jun 9, 2019

Hello Adem,
Please guide me which java framework should I use to develop online supply chain management system and can we use JPA for that framework?
IramKahkashan.
static-keyword-in-java-59-638

@ciment7

This comment has been minimized.

Copy link

ciment7 commented Jun 11, 2019

Hello Adam,

How to invalidate caches between multiple microservices? For example. I cache some data from microservice B on microservice A and microservice C write to B. Then I need to invalidate cache on microservice A in asynchronous way. How to achieve this?

What is your recommendation? My suggest is to use Kafka (may not necessary to use such complex system), maybe MQ is better solution. Do you agree?

Thanks.

@NejcCarl

This comment has been minimized.

Copy link

NejcCarl commented Jun 15, 2019

Hi Adam,

what is your recommendation if you want to work on an OSGi project and you want to minimize your time investment into OSGi and maximize your time investment into Java EE? What are your options and which one is best for somebody with basic Java EE knowledge?

Thank you for all you do!!!

Best, Nejc

@dempile

This comment has been minimized.

Copy link

dempile commented Jun 17, 2019

Hi Adam,
In order to create multiple services that communicate with each other I need to introduce a gateway like in Netflix Zuul. In Java EE what is the way to achieve that ?
Please can you explain the role of a service registry , and what are the choices in the Java EE plateform.
mjee_0602

I struggle to get to deserialize the date from javascript date Object to Java usin JSON-B , so I convert and send it as a String from the Client app. is there a better way do send date Objects wth specific format without the conversion to String.

thanks

@jumarome

This comment has been minimized.

Copy link

jumarome commented Jun 25, 2019

Hi Adam,
Sometimes I find it difficult and I feel that I don't have consistency when it comes to establishing the price I will charge for a software project, what techniques or methodologies do you use in order to estimate this? and after you establish a price do you follow a definided structure to elaborate the offer?

Thanks.

@mb-dbc-dk

This comment has been minimized.

Copy link

mb-dbc-dk commented Jun 27, 2019

Hi Adam

When running payara-micro/server using micro-profile how do you go about implementing authentication for /health & /metrics, programatically?
The goal is to limit who can see metrics/health status, and log (remote ip) if somebody tries to do it that isn't allowed.
What I'm really interested in is implementing it in a jar that can be added with --addjars. This is meant to be in our payara docker image, so that all the services requires same authentication. Basically to ensure you don't forget to add configuration to your application to enable it.

@masumcse1

This comment has been minimized.

Copy link

masumcse1 commented Jun 29, 2019

I am using Java EE 8 code pattern according to this link.
https://developer.jboss.org/wiki/JavaEE8CrudApplication
Some of senior senior level java programmer some times provide suggestion need to use Apache - Delta spike for CDI.
I can not understand where Apache delta spike is necessary for this application code (example link).
Can you me a explanation why delta spike is important over CDI2.0(JavaEE8) ?
Note : my understand is apache delta spike is not important for java ee8(wildfy15).

@AdamBien

This comment has been minimized.

Copy link
Owner Author

AdamBien commented Jul 1, 2019

Comments from adambien.blog:

what is the main difference between deploy java ee war from eclipse to
"JBoss" and deploy using wad jar: http://adambien.blog/roller/abien/entry/watch_and_deploy_wad_utility

@AdamBien

This comment has been minimized.

Copy link
Owner Author

AdamBien commented Jul 1, 2019

SseEventSource (...), seems to me security does not exist in the sse client
api.

@AdamBien

This comment has been minimized.

Copy link
Owner Author

AdamBien commented Jul 1, 2019

@AdamBien

This comment has been minimized.

Copy link
Owner Author

AdamBien commented Jul 1, 2019

@AdamBien

This comment has been minimized.

Copy link
Owner Author

AdamBien commented Jul 1, 2019

say i was using bce
pattern, what package would house the Filter class? http://adambien.blog/roller/abien/entry/monitoring_http_requests_with_microprofile

@AdamBien

This comment has been minimized.

Copy link
Owner Author

AdamBien commented Jul 1, 2019

when are your using
Visual Studio Code for java vs. netbeans
http://adambien.blog/roller/abien/entry/thinjars_with_quarkus_io_on

@AdamBien

This comment has been minimized.

Copy link
Owner Author

AdamBien commented Jul 1, 2019

Would you consider GlassFish 5.1 production ready? http://adambien.blog/roller/abien/entry/jakarta_ee_eclipse_glassfish_5

@AdamBien

This comment has been minimized.

Copy link
Owner Author

AdamBien commented Jul 1, 2019

A framework from airhacks.tv alumni: https://developer.jboss.org/wiki/LargeScaleJEEFramework

@mrbyte2001

This comment has been minimized.

Copy link

mrbyte2001 commented Jul 2, 2019

Hi Adam

When running payara-micro/server using micro-profile how do you go about implementing authentication for /health & /metrics, programatically?
The goal is to limit who can see metrics/health status, and log (remote ip) if somebody tries to do it that isn't allowed.
What I'm really interested in is implementing it in a jar that can be added with --addjars. This is meant to be in our payara docker image, so that all the services requires same authentication. Basically to ensure you don't forget to add configuration to your application to enable it.

Hi,

does it make sense to hide health checks behind any security? because you want to use them for your services in e.g. kubernetes to restart pods if they get unavailable. I think you only need to hold them inside your network so that nobody can call http://yourserver/health from outside the cluster (e.g. with nginx or other possibilities).

For the metrics there is already a security configuration if you add

<basicRegistry id="basic" realm="MicroProfileMetrics"> <user name="admin" password="adminadmin"/> <user name="nonadmin" password="guest" /> </basicRegistry> <administrator-role> <user>admin</user> </administrator-role>

to your server.xml then only someone who can login as admin can read it. Maybe there is also a configuration for JWT but I didn't found any so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.