Adam Bien's Weblog

Friday Aug 01, 2014

Microservices, State, REST, Learning Java and Questions Overflow: 5th Airhacks Q & A

  1. Gateway pattern, stateful vs. stateless behavior and the “Extended” EntityManager (multiple questions)
  2. Boundaries intercommunication restrictions Java EE (two boundaries should not communicate with each other) Boundaries intercommunication restrictions Java EE Email question from: Sergio David
  3. How to learn Java SE/EE (email from *seti*)
  4. .NET vs. Java EE – after 5 years JAVA EE OR .NET - AN ALMOST UNBIASED OPINION Question from: Süleyman Vurucu
  5. What is the state of Java EE 7 (Adam S.)
  6. Cancel vs. Cancellation, and when “GET” and “POST” are not enough Frank
  7. @AdamBien please suggest some good resource for Java EE inside view like how container create stateless beans and so on #airhacks @ mesurajchhetry
  8. Layers, Tiers and interactions. Blog post dicusssion
  9. What are micro services? Carsten Czyszewski
  10. Is it possible to Implement microservices with JEE? Carsten Czyszewski
  11. Are there any improvements on implementing the good old design patterns with
    JEE 7 / Java 8? Carsten Czyszewski
  12. The difference between @Path and @Stateless + @Path Sam
  13. How do I run integration tests? mvn test does not trigger them, nor the mvn
    integration-test zemiak

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

Tuesday Jul 29, 2014

WLS 12c (12.1.3) and Java EE 7, Some Smoke

WLS 12c supports some Java EE 7 API like: JSON Processing (JSR 353), JAX-RS 2.0, JPA 2.1 http://docs.oracle.com/middleware/1213/wls/NOTES/index.html. Now it is time for a Smoke Test:

  1. Download size is reasonable: 198,7 MB for a generic ZIP. However: the download requires a login to OTN. This is an unnecessary barrier for developers.
  2. Installation is easy: setting a MW_HOME variable pointing to the extraction folder and executing the configure.sh
  3. NetBeans 8 integration worked out-of-the-box. Application was directly deployed from NetBeans with Maven 3. WLS is nicely integrated with NetBeans: you can start, stop and deploy your application directly from NetBeans. Also a useful feature: WLS and GlassFish are using different ports--you can run both servers at the same time.
  4. wls12c was installed on Java 8 (1.8.0-b132 / mac) without any problems
  5. Java EE 6 tests were passed

Interestingly: a basic JAX-RS service with JsonObject works perfectly on GlassFish v4, but fails on WLS 12.1.3:


@Stateless
@Path("alert")
public class AlertResource {

    @Inject
    FireState fireState;

    @GET
    public JsonObject get() {
        return Json.createObjectBuilder().
				add("Smoke?:", fireState.isSmoke()).
				build();
    }
}

<Error> <com.sun.jersey.spi.container.ContainerResponse> <BEA-000000> <Mapped exception to response: 500 (Internal Server Error) javax.ws.rs.WebApplicationException: com.sun.jersey.api.MessageException: A message body writer for Java class org.glassfish.json.JsonObjectBuilderImpl$JsonObjectImpl, and Java type interface javax.json.JsonObject, and MIME media type application/octet-stream was not found.

Seems like the "Accept" header is ignored. The request was initiated by: curl -H "Accept: application/json" http://localhost:7001/server-smoke/resources/alert and browser link.

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

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

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