Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
36thAirhacksQ&A.md
@sergioverde90
Copy link

sergioverde90 commented Feb 27, 2017

Hi Adam.

I lookup in JSR-346 about javax.inject.Singleton annotation but I did not find anything. In javadoc http://docs.oracle.com/javaee/7/api/javax/inject/Singleton.html I did not find anything. The only reference that I have found is in Weld reference http://docs.jboss.org/weld/reference/2.4.0.CR1/en-US/html/scopescontexts.html. If I deploy this bean in Wildfly:

@javax.inject.Singleton
public class SingletonScope {
	
 @Inject
 BeanManager manager;
	
 @PostConstruct
 void init(){
  Class<? extends Annotation> scope = manager.getBeans(SingletonScope.class).iterator().next().getScope();
   log(scope);
 }
}

The output is 'javax.inject.Singleton'. Then, should I assume that this annotation is supported by CDI or only by Weld?

Thanks you, Adam.

@GADNT
Copy link

GADNT commented Mar 2, 2017

Hi Adam

Have you tried to integrate the swagger 1/2 with jersey 1.x? Do you have some sample that works? I am trying to deploy to a Weblogic app that provide jersey 1.18 and it looks that is not able to find the resource class that contains my endpoints. Any thoughts related are kindly appreciated.

Thank you

@deratzmann
Copy link

deratzmann commented Mar 3, 2017

Hi, Adam.
2 questions:

  1. The New payara release has a deactivated autodeployment feature due to Security risks. In many of your docklands projects you actually use this Feature. What is your workaround? Is the New programmatic bootstrap in payara a good alternative?
  2. I experienced long startup times (15-20 seconds) in payara full version with my applications (thin wars, very much use of Java EE APIs, no external libs). As I switched to payara micro, the times were a little bit better (10-15 seconds). What would be a good way to speed up the deployment/startup or to find potential problems?

@deratzmann
Copy link

deratzmann commented Mar 3, 2017

Thanks :)

@vasilaio
Copy link

vasilaio commented Mar 5, 2017

Hi Adam,
I have 3 questions:

  1. How we deal with field validation in JavaFX + FXML?
  2. Can you show an example how we test JAX-RS application with Arquillian on different servers by using as a maven dependencies the javaee-api. In my case, with tomee I get java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl. It works only if I use java-ee api from org.apache.tomee.
  3. When we need to Override getClasses/getSingletons of the javax.ws.rs.core.Application class?

@yacota
Copy link

yacota commented Mar 5, 2017

Hi Adam,
I heard you saying that Keycloak is getting more and more popular. When securing applications/services there are different integration strategies, some of them can be found here
https://keycloak.gitbooks.io/securing-client-applications-guide/content/topics/oidc/java/java-adapters.html
Which of them have you used ? (advantages / disadvantages)
Thanks

@cooljais11
Copy link

cooljais11 commented Mar 6, 2017

Hi Adam,
I have started learning JEE. Your videos and books have been extremely helpful.
I have independent services which needs orchestration. Which framework can I use to do service orchestration in JEE ? Can this service orchestration be a singleton across clusters ?

@vasilaio
Copy link

vasilaio commented Mar 6, 2017

Hi Adam,

Thank you for reply, but in second question, about Arquillian, I mean JAX-RS (or JEE) application and not Bean validation.

@chamisf
Copy link

chamisf commented Apr 7, 2017

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