JSF, MVC, CDI and .net Or Questions for the 14th Airhacks "May" Edition

Questions for the 4th May, 6.PM. CET, or 14th airhacks.tv edition: http://www.ustream.tv/channel/adambien:

  1. "Stop talk about Java EE" email from Gulam
  2. It’s been announced a new MVC framework with Java EE 8. What do you see in the future of JSF? Do you think JSF will become obsoleted by this MVC framework?

    Antonio Varela. antoniovl
  3. Do you use JSF for the presentation layer of your projects, or you use something else?

    Antonio Varela. antoniovl
  4. I’m reading your discussion of CAP in Real World Java EE Patterns. When you say ‘the “Don’t Distribute” advice can be understood as a general best practice’, does that include cases where a single-JVM app is replicated on the nodes in a cluster? In other words, is the best practice not to run a cluster at all? Or does “distributed” here refer only to apps where you run “the presentation in one process and run your business logic on another machine”? [Mike W.]
  5. obviously it’s not so difficult to send out emails from a Java EE application via JavaMail. What I am interested in is the best practice to receive/handle correspond ending emails (from the MTA)? Background is a mail based API where requests are sent by mail and the response arrives also via mail. suchwerk
  6. how would you inject properties using CDI that can change at runtime ? This means that a property could have a different value in the next request. Unfortunately you can’t use the following:

    @Produces

    @RequestScoped

    @MyPropertyQualifier

    public String produceProperty(InjectionPoint ip) {

    ///

    }

    You will get two CDI errors at deployment time because:

    InjectionPoint needs to be declared in a @Dependent Scope bean.

    String is not proxiable. This could be solved by introducing another class that wraps the value. carlosbarragan
  7. Is Java EE more secure and faster than Microsoft’s ASP.Net MVC?

    Is Java EE more secure and faster than Spring Framework? viktorcitaku
  8. Is it a good idea to move the business logic Java code from our Service layer to Stored Procedures on DB level? trimkadriu
  9. I am a beginner of javaEE, but i have read some concept of CDI and according to it, we need a bean.xml to tell the glassfish that we are using CDI in our application. I have follow your airhacks application on github, my question is where is the beans.xml in airhacks application and how @inject is being executed and when. nazmuddin
  10. Porcupine exposed by jmx and collected in LightFish? Good idea or not. I’m having problems with the seeing the jmx on glassfish.

    So trivial I’m embarrassed. When you use code completion on netbeans you seem to use a key short cut to select rather than a mouse. If so, what are they, I’ve spent far too long looking for them.

    Have you had any problems injecting ejbs into rest sub resources?

    Hope your arm isn’t too badly broken.

    laches
  11. About AMX…

    What happened to AMX support for Glassfish? I have been trying to get it working in glassfish 4.0

    and have been unable to used it. If its supported, where can i get some examples?

    Can we overlay JMX to get AMX Beans?

    What other application server supports it?

    henryvoyer
  12. In a JEE weabpp where services layer uses EJB3/JPA2.0 and every service extends a base EJB under an interceptor that sets the entity manager, how can this be flexible to set an entity manager that could vary since i’ve defined at least 3 different persistence units?

    Right now i have a dedicated base service class + interceptor for each persistence unit. arthurportas
Any questions left unanswered? Write a comment to the post or ask during the show at twitter.com/AdamBien or IRC #airhacks.

See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.


NEW online workshop: WebStandards Igniter (online)

Airport MUC workshops: Java EE 7: Bootstrap, Effective, Architectures, Web, React and Angular, Testing and Microservices

Podcast: airhacks.fm and newsletter: airhacks.news

A book about rethinking Java EE Patterns

Comments:

A question, maybe for AirHacks #15.

I'm starting a new application, based on microservices ("or a sort of").

I'm using a war to build UI with Angular and communicate with Rest. Let's call "WAR-1" and it's in the "First Tier"

Then, for every logic module I have "WAR-2", "WAR-3", "WAR-4" and for now "WAR-5". This is only logic, not persistences. They are "second tier"

¿Why? In my domain all the wars share the same set of entities (about 400 entities, with differents views of the same problem). It's difficult isolate them, because, on our database they have many relations to each other. Perhaps for the app I am starting to develop I only need to write 15 entities, and read perhaps 30, but many of it are core, so they have a lot of relationships and i can't isolate them easily.

So my question is about pro and cons of the solution i'm thinking about.

I think to have a third tier, to manage persistence. So, they receive, via REST, JAXB objecto or JSON object, using your GenericDTO, transform into an entity, do persistence logic an return GenericDTO. I see the problem that I have to have, dao method, especific for every interaction (i loose the posibility to do a simple "persist()" in the way I do it using JPA and bussiness logic in the same war). And in my "logic tier" i need a copy of "entities.jar" package if i want to work in a domain oriented way. If not I have to work with GenericDTO and JSON for deliver it to Angular App.

¿Do you see a better way to deal with that?

Posted by mart dominguez on May 04, 2015 at 05:29 PM CEST #

Post a Comment:
  • HTML Syntax: NOT allowed
realworldpatterns.com
Online Workshops
...the last 150 posts
...the last 10 comments
License