Skip to content

Instantly share code, notes, and snippets.

@AdamBien
Created May 10, 2017 12:32
Show Gist options
  • Save AdamBien/b1a66dafdae21c0c40d647f05f44e57c to your computer and use it in GitHub Desktop.
Save AdamBien/b1a66dafdae21c0c40d647f05f44e57c to your computer and use it in GitHub Desktop.
39thAirhacksQ&A.md
@problemzebra
Copy link

problemzebra commented May 31, 2017

Hi Adam,

what are your experiences with the Java EE Batch API (JSR 352), especially JBeret (the JSR 352 implementation in JBoss EAP/Wildfly) concerning

  • Monitoring
  • Clustering
  • Scheduling (EJB timer or ScheduledExecutorService?)?
  • Resilience (what happens if a job connects to a e.g. mail server but for some reason the job runs forever because a timeout is not working?)

A typical job in our application is: (a) reading a file from imap/folder/ftp/database/… (b) doing some processing like validation, transformation, … (c) writing a file to smtp/folder/ftp/database….

Are there any established alternatives to JSR 352? When would you recommend to build a own job framework?

@sebargarcia
Copy link

sebargarcia commented Jun 2, 2017

Hi Adam,
Is there a way tu use eclipselink @Multitenant in CMT (container managed transactions)?
I use JPA (eclipselink implementation) in Payara and in my webapp I need tu use multitenant. What I see is that there are nothing standard in JPA but eclipseLink have @Multitenant. My problem is that for what i see you can only use @Multitenant in BMT (bean managed transaction) thats mean I can not inject the entityManager (
@PersistenceContext(unitName = "myPU") private EntityManager em;
)
and set the tenant dynamically.
what are your strategy tu develop multitenant app?

oh and for @mehdithe Antnios´s blog had a good entry about JWT and jax-rs:
[https://antoniogoncalves.org/2016/10/03/securing-jax-rs-endpoints-with-jwt/]

Thanks
Sebastian.

@dempile
Copy link

dempile commented Jun 4, 2017

Hi Adam,
I want to create a project with multiple java ee modules packaged in war files connected with each other with rest webservices, these wars are deployed in the same payara appserver and sharing a single database.
Is this kind of architecture suitable to build a project with large amount of data, and is having a unique database can cause performance problems ?
architect

In you opitnion what can be the architecture to build a JEE application with different business modules sharing data between them
thanks
Kiko

@jcrochavera
Copy link

Hi Adam, did you have any experience programming an scheduled MDB ?? Could you sho us an example?

Thanks

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