Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created October 11, 2017 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AdamBien/a232908944dd0b3cad4d0b321fa6ee27 to your computer and use it in GitHub Desktop.
Save AdamBien/a232908944dd0b3cad4d0b321fa6ee27 to your computer and use it in GitHub Desktop.
44thAirhacksQ&A.md
@omega09
Copy link

omega09 commented Nov 5, 2017

Hi Adam,

I have a design question. I'm linking a small example project with skeleton classes because I think it's easier than describing with words. I hope it's legal. https://github.com/omega09/injection-example/tree/master/injection-test

My initial idea was to have an entity as a global variable in the request scope which various stateless beans can manipulate like an assembly line, but there are

problems:

  • Accessing the stateful bean from different stateless beans for some reason causes weird errors related to CDI.
  • I'm not sure the design even scales properly (utilizing the stateless bean pool).
  • As mentioned in an inline comment, doesn't work with asynch JAX-RS.

It can be solved if I pass the entity to every method call but it is cumbersome, which is why I wanted to have it available globally.
Can you suggest a proper design please?

Thanks!

@vanuatoo
Copy link

vanuatoo commented Nov 6, 2017

  1. Do you still recommend boundary/control pattern for JAX-RS applications?
    http://www.adam-bien.com/roller/abien/entry/bureaucratic_design_with_java_ee
  2. What is the best practice to store conversational state in JAX-RS/Stateless Session Bean applications which is Scalable?

@mhoennig
Copy link

mhoennig commented Nov 6, 2017

Hi Adam,

How do you, as a Java and JavaEE advocate, feel about the fact that there is no official or at least inofficial enterprise ready Java solution for the browser anymore? I am not talking about server-side rendered HTML but a technology which makes it possible to build offline first progressive web apps or even hybrid apps for all major mobile platforms.

Michael

@amihaiemil
Copy link

amihaiemil commented Nov 6, 2017

Is there any endpoint in Glassfish (out of the box), to "deploy" static files under docroot folder?

I have some static resources, which Glassfish serves from the docroot folder. I would like to update these resources automatically, by POSTing them to some endpoint, without having to deploy a JAX-RS app which exposes such an endpoint.

@dinolupo
Copy link

dinolupo commented Nov 6, 2017

Hi Adam,
talking about microservices, what about pro topics like security, load-balancing, high availability, service discovery and so forth? Are those topics covered by some of your online courses or what are the e-learning/book sources that you suggest to cover those Enterprise topics? Just as an example, what are the Pros and Cons between using things like Payara-Micro (auto discovery of other instances in the same network) or other approaches like thin wars in a full container? In a DevOps optics, the programmer should know how to configure those aspects and how to monitor, debug distributed software with ease. Thanks a lot for your time.

Dino Lupo
Software Architect at Atos (looking forward to become a programmer of course...)
Italy.

@mistrz7
Copy link

mistrz7 commented Nov 6, 2017

Hello,
I use jbatch in few projects on jbosseap (jberet). Batches are scheduled on ejb beans using @schedule annotation. But for dev reason I fire batches using rest->ejb->jbatch. My problem is, that sometimes ejb fire batch on my dev enviroment when project is deployed, but that is not desirable situation. How to prevent it? What is prefered model of work to prevent fire @schedule on dev enviroment?

Best Regards
sw

@taysay
Copy link

taysay commented Nov 6, 2017

Dear Adam,

Is it advisable using a NoSQL backend for a realtime solution like payments, if yes which vendor do you advice?

@dempile
Copy link

dempile commented Nov 6, 2017

Hi Adam, did you ever tryed Beanshell and how do you compare it to a Groovy, Scala, or newly Kotlin ?
Do you still use JSF often in your projects or you're starting to migrate to Javascript based framework like React , all with Jax-RS ?
Whats the best solution to create reports instead of JasperReport ?

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