Ask questions and see you at June, 1st at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
- Moving a process from a ee server to a microservice maybe rest on a live system without impacting users @pblakez
Ask questions and see you at June, 1st at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
Do you agree that concept of EJB bean pool is dead end? For me @ApplicationScoped singleton is much simpler but equally powerful. Stateless EJB taken from pool is assigned exclusively to handle single request. Did you ever used or seen case that application code really utilize fact that single request is handled by the same instance of EJB? If not, then @ApplicationScoped singleton is enough and simpler.
How do you test with Arquillian a REST (JAX-RS) method ? Any simple example?
Could you suggest how to utilize effectively docker for the database layer?
Do you use separate "data only container"? Example is here http://docs.docker.com/userguide/dockervolumes/#creating-and-mounting-a-data-volume-container and here http://stackoverflow.com/a/20652410
Am I right that for any simple web application I need 3 docker containers. For example:
And for microservices I can use the same approach? Each microservice has 3 containers: web + db + data only container.
Thanks you!
Hi Adam,
I have a question about JPA and the Entity relationships.
For bi-directional OneToMany relationships, doesn't JPA copy the ID of the grater (One) Entity in the table of the smaller Entity (Many). If so, can you show me a simple example.
I have two classes "User" and "Address". Many User can live in One Address, so I crated the relationship like following:
public class User{
....
@manytoone @joincolumn(name="address_id", referencedColumnName="id")
private Address address;
.....
}
public class Address {
@onetomany(cascade= CascadeType.ALL, mappedBy="address_id")
private Set users = new HashSet();
}
When I start the server and run the Project, I get different "address_id" in the "User"-table when I save the formular.
can you show me a solution?
Thank you very much.
Hi Adam,
i have a question about handling to implementations of an interface and injecting the implementation to an interface-type injection point:
Normally, this could only be done if one implementation of the interface is in classpath, otherwise, CDI will throw an exception because it could not be choose the right impl. If you have 2 impls in classpath you coud use @alternatives annotation to handle it somehow.
Now my question: is there a different approach to tell CDI that a specific implementation should be used if 2 impls are in classpath without changing code (qualifiers, ...)? I have the problem that WebSphere 8.0.0.9 (OpenWebBeans) completly sucks with @alternatives annotations because of bugs (not in WLP).
regards
Karsten
Hi Adam, I have often seen to typing model objects in your screencasts which I always find it strange as I personally use @value
Hi Adam, How can is simulate a JavaEE application deployed with docker on AWS with thousands of users to test scalability? Can you show a practical example
regards
For someone who knows java, works with spring (spring-data + spring-security + JSF) and wants to study/learn/work with JEE but doesn't know where to start (lots of resources out there, but no one at his(me and others I think) level). Is your book appropriated? Isn't it outdated?
Visibility of instance variables inside EJB. I was taught to use as strict visibility as possible that means in most cases "private". There is no visibility modifier for instance variables in your EJBs, that means you use default visibility (package private). Why? What is the logic behind that? [Antonin]