Adam Bien's Weblog

Thursday Jul 17, 2014

Nashorns, Strange Practices, DI in FX and No Hallway Conversations--An Interview About my (=Adam Bien) JavaOne Activities

In the interview I said: "The JavaOne is the only conference, which I attend as a speaker" what I meant was: "...as an attendee". Sorry, but it was late :-).

Thanks Reza https://twitter.com/reza_rahman for the interview!

See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.

See you at Java EE Workshops at MUC Airport or on demand and in a location very near you: airhacks.io!


Special Event: Java 8 with Java EE 7: "More Power with Less Code", 13th October, 2014

A book about rethinking Java EE Patterns

Wednesday Jul 16, 2014

Late Summer Java (SE,FX,EE) Hacks

  1. Munich Airhacks: From Java EE to HTML 5, 21st to 25th July: http://workshops.adam-bien.com
  2. Virtual: 5th, 6th and 7th Airhacks Q & A (each first Monday of the month at 6 P.M. (CET): http://www.ustream.tv/channel/adambien Temporary questions repo: https://gist.github.com/AdamBien/e1855469d4c507427ef9
  3. Hamburg: "Java EE Patterns and Best Practices", 11th-13th August, http://www.oose.de/training/java-ee-6-patterns-und-best-practices/
  4. Rapperswil: Java EE 7 + Java 8 Good Practices, 9th September, http://www.ch-open.ch/wstage/workshop-tage/2014/programm-2014/ws-1-java-ee-7-java-8-good-practices/
  5. San Francisco: JavaOne, 28th September, 9th October, "Enterprise Nashorn", Productive Java FX 8, Unorthodox Enterprise Practices and Java EE 8 Community Update and Panel"
  6. Munich Airhacks: "Java 8 with Java EE 7 or The Impact of Java 8 on Java EE Applications" http://workshops.adam-bien.com/java8.htm

Enjoy the summer of Java!


Special Event: Java 8 with Java EE 7: "More Power with Less Code", 13th October, 2014

A book about rethinking Java EE Patterns

Tuesday Jul 15, 2014

Starting With Java FX, Maven and afterburner.fx

Very first steps (minutes) with maven, igniter and afterburner:

See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.

See you at Java EE Workshops at MUC Airport, particularly at the Java EE User Interfaces workshop!


Special Event: Java 8 with Java EE 7: "More Power with Less Code", 13th October, 2014

A book about rethinking Java EE Patterns

Monday Jul 14, 2014

Hosted WatchDock(er) Available

watchdock is also available from: http://watchdock.org

Watchdock is an offline docker monitoring and management (coming soon) HTML 5 app. watchdock will directly connect to your local docker installation without using any backend service.

I will also use watchdock as one of the examples during the regular airhacks.


Special Event: Java 8 with Java EE 7: "More Power with Less Code", 13th October, 2014

A book about rethinking Java EE Patterns

Friday Jul 11, 2014

WatchDock(er) v0.0.1 Released

watchdock is a simple, but useful http://www.docker.com monitoring application.

watchdock presents you the relevant container information on one page and saves you several CLI keystrokes.

There is no server side installation necessary, you can just launch the application by opening the index.html directly with a modern browser and point to the docker demon. Because watchdock is a web page and it has to communicate with the docker remote services, you will have to enable CORS and expose the monitoring via IP at the docker demon level: -H tcp://0.0.0.0:5555 -api-enable-cors

Installation: git clone https://github.com/AdamBien/watchdock.git

Usage:


cd watchdock
open public_html/index.html

I will use watchdock as one of the sample applications during the Java EE 7 and HTML 5 http://airhacks.com workshops.


Special Event: Java 8 with Java EE 7: "More Power with Less Code", 13th October, 2014

A book about rethinking Java EE Patterns

Thursday Jul 10, 2014

The 4th Airhacks.io Question && Answers Show

The first non-interactive (re-recorded) airhacks show. We had a short connectivity problem in the middle of the show. It was easier for me to record the show again, instead of editing the file.

Thanks for the interactions, particularly from the IRC #airacks channel and twitter.

Any questions left? Then join the conversation at each first Monday of the month at 6 P.M. live. No registration or any other commitment required. Btw. alle dates for 2014 are scheduled: http://www.ustream.tv/channel/adambien.

See also other screencasts at: http://tv.adam-bien.com or subscribe to http://www.youtube.com/user/bienadam.

See you at Java EE Workshops at MUC Airport or on demand and in a location very near you: airhacks.io!


Special Event: Java 8 with Java EE 7: "More Power with Less Code", 13th October, 2014

A book about rethinking Java EE Patterns

Wednesday Jul 09, 2014

Java EE 7 Sample With JPA Integration Tests Released

The v0.0.3 version of Java EE Boundary Control Entity project is available.

New in this version are automated JPA integration tests:


public class RegistrationIT {

    EntityManager em;
    EntityTransaction tx;

    @Before
    public void initEM() {
        this.em = Persistence.createEntityManagerFactory("integration-test").createEntityManager();
        this.tx = this.em.getTransaction();
    }
  (...)
}

Execute:


mvn archetype:generate -Dfilter=com.airhacks:javaee-bce-archetype

then


mvn clean install
mvn failsafe:integration-test

See you at Java EE Workshops at MUC Airport or on demand and in a location very near you: airhacks.io!


Special Event: Java 8 with Java EE 7: "More Power with Less Code", 13th October, 2014

A book about rethinking Java EE Patterns

Monday Jul 07, 2014

Official Airhacks IRC Channel

IRC channel for the http://airhacks.io and http://airhacks.com events was set up at https://freenode.net.

Main channel is: #airhacks, fallback is ##airhacks.

You can use the channel for questions / discussions, particularly during the monthly airhacks Q & A shows: http://www.ustream.tv/channel/adambien

You can still ask questions via twitter mentioning me: https://twitter.com/AdamBien or using the hashtag #airhacks. However, IRC is faster, more interactive, and easier to handle.

See you today, at 6 P.M. (CET) at: http://airhacks.io or http://www.ustream.tv/channel/adambien.


Special Event: Java 8 with Java EE 7: "More Power with Less Code", 13th October, 2014

A book about rethinking Java EE Patterns

Thursday Jul 03, 2014

4th Airhacks Q&A Live: The Questions

  1. Are vanilla Java EE applications actually viable? How popular are Java EE applications without any external dependencies? @reza_rahman + Twitter Conversation
  2. (...) what about exposing DB objects via REST directly? @tsaltsol
  3. (...) I have 7 JEE 6 applications that communicate with each other via EJBs, JAX-WS and JAX-RS. I have couple of applications that are plain command line or Swing based applications. A lot of classes that are shared between JEE and non-JEE applications, so a lot of those classes are in "util" Maven module that is shared between applications. Is this OK or do you have a better solution? Gregor K.
  4. what is the best way to implement my own data source for database connections. We have some special requirements how data source should behave. What I have done now is that I create a custom JNDI resource in Glassfish that uses my own ObjectFactory to create classes. In this ObjectFactory I have a static final Map that holds custom data sources. Is there a better solution how to do this? Gregor K.
  5. (...)I've got a web application deployed as a WAR. I'm using hibernate. My SQL DDL populates the database upon web application startup via persistence.xml e.g.

    <property name="javax.persistence.sql-load-script-source" value="01_bootstrap.sql"/>

    How do I salt the bootstrapped passwords using the compiled code from my web application (e.g. the files in WEB-INF/classes)? I assume that I should create a simple Java utility class but I don't know where to put the class in my web application module structure or how to execute the utility in Intellij or NetBeans. Thank you so much. Patrick G.
  6. Adam, about the BCE pattern, on the boundary layer, is it necessary has 2 SLSB i.e. (Registrations and RegistrationsResources) ? The *Resources is the protocol adapter, but it is necessary to be an ejb ? Inside the app I want use the only the Registrations ejb. The *Resource should be just a REST entry point, or not? Mauricio
  7. (...)given the uncertain future of Glassfish, which Application Server(s) would you recommend today for a production environment when CDI/JPA/JTA... are required but EJBs are not needed? Jürgen
  8. (...)do you recommend overriding/using the "equals" method given that it doesn't work when comparing (WELD-) Proxies to "real" objects? Jürgen
  9. JSF2.2 is still in early days to support HTML5 & the only option i see is using passthrough feature. Ideas/thoughts? #airhacks 3/3 @mnsbutt
  10. We want to follow the bootstrap-style best practices but do not want to loose JSF's server-side-ness. #airhacks 2/3 @mnsbutt
  11. What is the recommended practice to ensure Responsive Web Design (RWD) with JSF? #airhacks 1/3@mnsbutt
  12. (...) what do you think about Java EE's JASPIC? Why do you never use it in your examples? @john_waterwood
  13. Is there a good way to debug concurrency-locks? Which method is locking an object, how long has it been locked etc.? @Kfroelund
  14. Please may you provide an example of connection JavaFX client to JavaEE Back-end with Restful web service. A.Elmuniem
  15. what is the best way to handle large files (20mb+ at least) in a modern JEE7 webapp? These files are going to be regularly downloaded/uploaded by a few hundred users and the tendency is that these files get larger and larger if the users start uploading video files and such (maybe reaching a 1/2GB in the worst case scenario). João N.
  16. Why maven lifecycle hooks are problematic? Michael T.

The questions above are going to be answered during the next "Airhacks Q & A" http://airhacks.io live. You can subscribe to the channel and / or for the next event: http://www.ustream.tv/channel/adambien (both is optional, no registration required to watch this event live).

If you miss a question, write a comment on this post, tweet your question with the hashtag "#airhacks" or mention me https://twitter.com/AdamBien.

The best of all: you can ask the questions live, during the show using the chat: http://www.ustream.tv/channel/adambien, twitter (hashtag "#airhacks") or (the best option): using channel ##airhacks on http://freenode.net.

See you at Java EE Workshops at MUC Airport or on demand and in a location very near you: airhacks.io!


Special Event: Java 8 with Java EE 7: "More Power with Less Code", 13th October, 2014

A book about rethinking Java EE Patterns

Monday Jun 30, 2014

Temporarily pointing maven to another settings.xml

The following switch explicitly sets a settings.xml file. The file specified after the --settings= flag is going to be used instead of the default ~/.m2/settings.xml configuration:


mvn --settings=[PATH_TO_SETTINGS] clean install

Enjoy mavening!


Special Event: Java 8 with Java EE 7: "More Power with Less Code", 13th October, 2014

A book about rethinking Java EE Patterns

realworldpatterns.com
...the last 150 posts
...the last 10 comments
Links
License