Skip to content

Instantly share code, notes, and snippets.

@AdamBien AdamBien/14thAirhacks&A.md
Last active Nov 27, 2015

Embed
What would you like to do?
14thAirhacks&A.md

Ask questions and see you at 4th May at 6.PM. CET: http://www.ustream.tv/channel/adambien

  1. 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.]
@suchwerk

This comment has been minimized.

Copy link

suchwerk commented Apr 9, 2015

Hi Adam, 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 correspondending emails (from the MTA)? Background is a mail based API where requests are sent by mail and the response arrives also via mail.

@carlosbarragan

This comment has been minimized.

Copy link

carlosbarragan commented Apr 9, 2015

Hi Adam,

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:

  1. InjectionPoint needs to be declared in a @dependent Scope bean.
  2. String is not proxiable. This could be solved by introducing another class that wraps the value.
@viktorcitaku

This comment has been minimized.

Copy link

viktorcitaku commented Apr 10, 2015

Is Java EE more secure and faster than Microsoft's ASP.Net MVC?
Is Java EE more secure and faster than Spring Framework?

@trimkadriu

This comment has been minimized.

Copy link

trimkadriu commented Apr 10, 2015

Is it a good idea to move the business logic Java code from our Service layer to Stored Procedures on DB level?

@nazmuddin

This comment has been minimized.

Copy link

nazmuddin commented Apr 12, 2015

Hi adam, 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.

@laches

This comment has been minimized.

Copy link

laches commented Apr 26, 2015

Hi Adam,

  1. Porcupine exposed by jmx and collected in LightFish? Good idea or not. I'm having problems with the seeing the jmx on glassfish.
  2. 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.
  3. Have you had any problems injecting ejbs into rest sub resources?

Hope your arm isn't too badly broken.
Many thanks,
Best,
Hastings

@hvoyer

This comment has been minimized.

Copy link

hvoyer commented Apr 28, 2015

Hi Adam,
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?

Thanks

@arthurportas

This comment has been minimized.

Copy link

arthurportas commented May 2, 2015

Hi Adam,
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.
Cheers,

@brunohorta82

This comment has been minimized.

Copy link

brunohorta82 commented Nov 27, 2015

Hi Adam,
You can explain how to implements concurrency on JMS Consumer and analyse that. And i can use JsonB in JEE 7?

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.