Ask questions and see you at October, 3rd at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
- Java EE 8 News
- JavaOne San Francisco impressions
Ask questions and see you at October, 3rd at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
1.) I want to do load balancing for my application running on Glassfish. I came up with two possible solutions:
2.) Do you use Linux server for Docker? Do you use OpenJDK JRE/JDK or from Oracle in production and why?
3.) Does Docker work if you have a Swing based application? Have you even had a database running in Docker?
4.) In 30th Airhacks alameen said that he uses JasperReports and that Glassfish crashes for large PDFs. My company also uses JasperReports for all reporting and works great. If we have large PDFs we use a Virtualizer (http://community.jaspersoft.com/wiki/virtualizers-jasperreports).
Hi Adam,
how important is the role of the JVM (Oracle vs OpenJDK vs IBM) in your projects. Do you even bother? Any recommendations for JVM tuning for server side applications?
Thanks,
Tobi
Hi Adam,
I have a question related to CDI on Clusters environment, I deploy applications on Weblogic 12.1.3 or 12.2.1 and the CDI @Inject not suitable to work with Ejb Beans. The proyect Structure is in two differents artifacts, Web and EAR package with Ejb Module, and also Api Module with commons things to the proyect. I try to Inyect the Ejb interface Remote to get the reference to EJB and I get the Ambiguous Dependency Error, to fix this error I put a Qualifier Annotations, passing this error, I deploy again y all nodes on the Cluster, but multiples errors display on console for each node of WLS Cluster. The finally Question is CDI is Supported to work on Clusters Environments ? You can give please a explanation about .
Thanks.
Best Regards.
Carlos Romero V.
Hi Adam,
how do you combine JAX-RS and JSF? The tutorials I found, as well as your JAX-RS video only covers JAS-RX returning XML, JSON or plain text, but not complex templates you can create with JSF.
I am not sure how to start/structure. My idea is like this:
Is this a good approach or are there better ways to achieve that? How do you do that?
Regards
Christian
Hi Adam, I've asked you via twitter and you add here the first question. I am experimenting with docker and microservices in one of my news projects and I have others question related to docker and microservices:
The role between Docker and projects like Kumuluz or WildFly Swarm. ¿It's necessary or convenient to dockerize an Kumuluz jar for example? ¿What is the advantage of run the same Jee7 application in Kumuluz or for example in payara micro with docker? It's almost the same or am I so confused?
what's the best way to configure a driver jdcb, jdbc pool and datasource in a JEE7 server running in docker?
Reading Kumuluz tutorial (https://ee.kumuluz.com/tutorial/2015/06/04/microservices-with-java-ee-and-kumuluzee.html ) they define the persistence.xml file with a persistence-unit using transaction-type "RESOURCE_LOCAL" and on servers is not recommended (I remember your article http://www.adam-bien.com/roller/abien/entry/don_t_use_jpa_s ). It's a difference in that kind of projects using RESOURCE_LOCAL vs JTA.
Thanks
Martín Domínguez.
@martdominguez
Hi Adam,
do you know a JASPIC Server Authentication Module for SAML Authentication? Is there already a SAM implemented anywhere, that uses SAML? (well, I know, there is PicketLink for Wildfly but this is not an exchangeable JASPIC SAM for other Java EE AppServers)
Thx + Regards,
Robert
In the last time I had the feeling that JavaFX is loosing traction and may become obsolete. Is this impression correct or are there new impulses? Is it worth to invest time in learning JavaFX nowadays?
Thanks,
Alex
@fischbauch
Hi Adam, firstly thank you for all this content you are providing for the community!
I have two questions about communication between applications using REST.
Which are the best practices out there to design API returns, for instance, a service to verify if a customer has credit.
Should I return status 200 to show that some customer has credit and a 404 to show that he hasn't? Or should I return an object with the result of verification, like { "status": 0, "return": true, "message": "Has credit"} ?
In the consumer service, where I consume that service should I threat the response json or just the status?
Thank you!
- Which are the best practices out there to design API returns, for instance, a service to verify if a customer has credit.
Should I return status 200 to show that some customer has credit and a 404 to show that he hasn't? Or should I return an object with the result of verification, like { "status": 0, "return": true, "message": "Has credit"} ?
How about Status-Code 204 (No Content)?
Hi Adam,
I just wanted to ask you about a small advice how to resolve a problem that we found in one of our projects.
There is a JEE application deployed as .EAR file in WildFly 9.0.2. Sometime after the application server restart it starts to consuming 100% CPU and unfortunately we were not able to find what is the source of the problem. At the moment we are planning to introduce two mechanisms in order to find what is wrong with our app:
Any ideas what else should we check? Any help will be very appreciated.
Best regards,
Artur
Hi Adam,
I am passing here the question that I asked on youtube after watching the video regarding communication between microservices.
It's not always evident to be able to use Docker on some projects (the company hosting my VPS for example told me that I won't be able to install Docker and use it on the VPS as the virtual machine uses Virtuozzo), what will then be the best (or appropriate) way to make services communicating with one another? As far as I could see on the internet, everybody tends to recommend the use of service registries like Zookeper or Netflix's Eureka.
I tend to not considering them at the moment as using them will IMO "pollute" code (http://blog.arungupta.me/zookeeper-microservice-registration-discovery/), is there a more elegant way to solve that problem?
Beste Grüße,
Daniel
Hi Adam,
which JavaOne 2016 sessions would you recommend for viewing?
Thanks,
Nenad
Hi @rherschke
Thank you for the answser =) I forgot about that one!
But would be nice to know some common HTTP status for operations like CRUD, verify something, validation errors, business errors or requirements and so on.
Thank you!
Hello Adam,
Saw your talk on infoshare on 'A Code-Driven Microservices Session', you explained about monitoring in Payara using url localhost:4848/monitoring/domain1/server.
How to do same kind of monitoring in Wildfly?
Thank You.
Hello Adam,
I watched recently your great training course about Microservices, which is the most complete one about Java EE & Docker.
I just hope to see "Service Discovery" video, to complete the series ;)
PS: The video about load balancing & docker was wonderful !
Thank you !
Hi Adam
I would like to hear you opinion on event sourcing. Have you worked in a project that uses this pattern ?
Thanks and keep the good work !
Josh
Hi Adam,
What tool do you recommend to generate Rest API docs?
Thanks,
Anoop
Hello Adam,
do you already use the HEALTHCHECK CMD
support introduced in docker release 1.12?
https://blog.newrelic.com/2016/08/24/docker-health-check-instruction/
Cheers,
Thomas
Hi Adam, do you have a favorite zero downtime deployment strategy with JEE and docker? Thanks, Ivan
Hi Adam,
How would you wire programmatically the EntityManager without using persistence.xml file.
Does the only way would be to rely on vendor specific feature? ex, hibernate: http://docs.jboss.org/hibernate/orm/5.1/userguide/html_single/Hibernate_User_Guide.html#bootstrap-jpa-hibernate
Thanks,
Hi Adam,
I watched your latest screencasts accessing javaee backend with angular2, reactiveJS and native javascript as frontend implementation.
First off all thanks for that, great job as always ;)
Thanks Michael
(and sunny greetings from the Costa Blanca)
Hi Adam,
What is your point of view about RAML ( restful api modeling language ) for documenting REST APIs ?
Thank's