Ask questions and see you at 11th April at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
- Java EE 8 News
- 2 years of airhacks.tv celebration (now really 2 years)
- Do you think NetBeans is still a good IDE for JEE, Java, HTML, SPA, etc, development in 2016? I'm currently faced with a number of developers who seem to love IntelliJ, but I'd love a free alternative for some of our projects. We're currently using Eclipse (and STS), but that platform doesn't agree with me which is why I'm considering NetBeans. I know I should just make up my own mind about this, but I appreciate your work a lot and would love to hear your opinion.
- How to access the "other side" with afterburner.fx?:
@Service
public class Receiver {
private long counter = 0;
@PostConstruct
public void init() {
System.out.println("Receiver.init()");
}
@RabbitListener(queues = "hello")
public void receiveMessage(Message message) {
String s = new String(message.getBody());
// msgRepository.save(new Msg(null, s));
Platform.runLater(() -> {
counter++;
System.out.println("Received <" + s + ">" + counter);
//I want to print this log to JavaFx Label
});
}
}
Hi Adam,
I have a few questions.
In your last show I saw that you used controls from boundaries of another business component. I thought that classes inside control package are not exposed to other business components. Is boundary only for external usage? If I only have JAX-RS access, would I only place the REST endpoint there?
If I have simple CRUD operations via REST, which usually take less than a second: does it make sense to use
@Suspended AsyncResponse
with a dedicatedManagedExecutorService
to gain more robustness? Is there any best practice?Is there a good pattern how to manage long running tasks (several minutes) in JavaEE via REST? So far I immediately return 201 with an id (for client long polling) and start the task asynchronously, which returns a
Future
. To manage the tasks (monitor status, cancel, ...) I keep a reference of allFuture
results in aConcurrentHashMap
inside a@Singleton
EJB. Is there any better (leaner) approach to achieve that?I plan to develop a new web application and wanted to use Angular 2 right away. First I wanted to write it with ES2015, but then I saw that Angular 2 itself is written in Typescript. What would you recommend to use?
Regards,
Simon