Ask questions and see you at 29th at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
- Java EE 8 News
Ask questions and see you at 29th at 6.PM. CET: http://www.ustream.tv/channel/adambien Also see archives: airhacks.tv
Hi Adam,
which JDK do you use to build Docklands? In the build.js there is $EXEC(cmd, System.in, System.out, System.err) but this won't work with nashorn full version 1.8.0_102-b14 neither by running build.js directly nor via jjs -scripting build.js.
Instead I have to use print($EXEC(cmd, java.lang.System.in)); which prints the output after the process has finished.
Is there any hint or any switch I have to use for $EXEC to work as in your examples?
Thx+Regards,
Robert
Hi Adam,
can you please explain or give an example of how to use javax.enterprise.concurrent.ContextService
?
Thx+Regards,
Robert
Hi Adam,
what is your take on DTOs in JAX-RS boundaries? I often feel that my model objects are not suitable for the public boundary, as they might contain properties I wouldn't want to risk being exposed. Simple example imagine a GET /user/id/1
. The user model class might contain a password field which you don't want to expose to clients, or it might have a trail of embedded objects like Orders or whatever that you would rather like to expose on a different interface and not have it serialized with User.
Two strategies come to my mind, which both lack in elegance for my taste:
@JsonIgnore
to explicitly rule those fields out of landing in the boundaries input/output. This would also entail that you entirely rely on the library to work correctly or in my example you'd run into the risk of spilling passwords.myDto.setA(myModel.getA())
which is error prone and not elegant at all. Other solutions are automated mapping frameworks like Dozer which in turn brings in another dependency and possible problems.Is there anything obvious that I miss or a pattern to use?
Thanks!
Ciao Adam,
I saw that you are going to do some workshops about Angular2 and React.
Recently I did some investigations in order to understand which technology to use in our company, and seems this two philosophies are all but "Standard".
For instance they don't follow the specification of web components (at least they are not compatible)
Other framework like aurelia, polymer and ember seems to be more "standard friendly"
(By the way I find aurelia 10 times more productive that angular2, but this is just my personal opinion...)
What do you think about it?
Do you think that would be better to adopt something that embrace the "web component standard specification" or is better to follow who is more "popular" (and so probably they will become the "new standard")?
Danke schön,
Maurizio
Suppose a JEE6 entity has a setter and getter, that converts/deconverts the parameter before setting the member. So in the db the converted value is stored, and service methods work with the original value. The conversion depends on a JNDI setting. So the getter/setter are calling static methods to retrieve that setting from JNDI.
It works, but junits on service methods with easymock are not looking nice. I'd prefer to inject a JNDI-register singleton in the entity, or use an interceptor (injected with the JNDI-register singleton) on the getter/setter for conversion, or use an entitylistener (injected with the JNDI-register singleton), a produces to inject the entity, etcetera. Just to get rid of the static methods. I also dont want to code the conversion in my business methods.
Let's assume the conversion uses a JNDI number to xor the value. So the DBA only sees the xorred values.
What are your thoughts on this case?
Do you think is secure to store anonymous user data, for example id of the user basket in secure cookie:
NewCookie cookie = new NewCookie("basketId", id, "/", "host", "", 99999, true, true);
Thanks,
Marcin
Hello Adam,
What reporting library would you recommend for a Javaee app in which a lot of PDF is being generated? I currently use JasperReport which breaks glassfish whenever the report gets bulky.
Many thanks and keep up the good work :)
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>@AdamBien why does haproxy need a Java/CentOS Base image? I'd hardly call this minimalistic!
— Christoph Kutzinski (@kutzi) August 26, 2016
CDI Events in across multiple JARs. http://www.adam-bien.com/roller/abien/entry/java_ee_6_observer_with#comment-1471878349077
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>TIL: I can use JUnit based system tests in JMeter to do basic smoke test on performance issues in Java EE based systems. Thanks @AdamBien
— Hans Kruse (@hanskruse) August 14, 2016
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>Wondering what @AdamBien thinks about @myfear's Nine 'Neins' against Java EE for microservices? https://t.co/ENvPlqr0TS
— Hans Kruse (@hanskruse) August 10, 2016
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>@AdamBien @hanskruse no wonder, I'm sure #Cobol advocates find their happy clients just as fine
— Kristof Jozsa (@kjozsa) August 12, 2016
What is the current state of ESB, and will it or something like it become part of JEE? It seems that the popularity of SOA and microservices has caused a void area in the architectures of a lot of companies. Companies end up with very large collections of services with all pointing at the same things. The proliferation of services (possibly excessive) seems to create lots of redundant configuration, and I believe it makes it a lot more difficult for developers to comprehend different parts of systems. Maybe a more standardized ESB would help ...?
Hi Adam,
Many thanks for this great work. Please are connection pools more reliable than CMP/ Application Server Data-sources in enterprise applications, Please what is your best practice advise as regards this?
Hi Adam,
Please are there times, where running / exposing a web service on the JVM are more robust / better than on an application Server say wildfly or Payara ... ?
Hi Adam,
how do you suggest to stresstest websocket endpoints?
There are several possibilities, all with some disadvantages:
And there is a little idea to solve this use case:
What about implementing a little servlet with a websocket client inside the
doGet
method and then using Apache Benchmark to metric this servlet...What do you suggest?
Thx+Regards,
Robert