Skip to main content

By Popular Demand: Magnolia's Campaign Management App, Continued

Posted by rah003 on December 30, 2014 at 12:06 AM PST

It seems that campaign management is my readers’ Achilles’ heel. I got a truly overwhelming number of requests and comments from many of you in private. This leads me to speculate that you struggle with managing campaigns efficiently - so I took your most requested changes to heart and revisited the app to deliver them to you.

#1 Add multiple items to a campaign at once

JavaLand 2015 Training Day Teaser

Posted by edburns on December 26, 2014 at 2:03 PM PST

JavaLand Training Day Teaser

With only 61 days to go until JavaLand 2015, it's high time for a preview of the Training Day session I am pleased to offer with my friend Oliver Szymanksi. Briefly, this session is a full day treatment of the parts of Java EE 7 that intersect with the world of HTML5 web development.

Working towards the first JSF 2.3 milestone

Posted by mriem on December 24, 2014 at 8:00 AM PST

As we are working towards our first JSF 2.3 milestone release I want to tell everyone once it is out please start testing. With your help we are able to catch so much more before we ship. This is why we are going to be doing milestone releases. So once the first one is out try it out! I hope you all will make testing your JSF application with JSF 2.3 a New Years resolution!

Enjoy!

MVC and Adopt a JSR

Posted by mriem on December 19, 2014 at 12:52 PM PST

Today I participated in a phone call on Adopt-a-JSR for the MVC 1.0 specification.

While we do not have a whole lot of things that can be worked upon by a JUG at the moment I do want to point out that once we start publishing SNAPSHOT releases and milestones we will be looking forward to your contributions!

Java8: How to implement a custom Collector?

Posted by kocko on December 19, 2014 at 4:40 AM PST

As you may already know, Java's Stream API is one of the most significant features introduced in the latest platform version. Aside from the lambdas, which can reduce the amount of boilerplate code in our code base, the Stream API releases us from the burden to be responsible for how collections are traversed, for example.

JavaEE Tip #6 - Resources

Posted by mriem on December 18, 2014 at 9:15 AM PST

The @Resources annotation makes it possible to define resources that you are going to lookup at runtime. The example describes a way to lookup a datasource that is mentioned in the @Resources annotation on the class.


@Resources(value={
@Resource(name="ShoppingCartDB", type=javax.sql.DataSource),

MongoDB: Text search vs. dedicated text search engines

Posted by manning_pubs on December 17, 2014 at 5:47 PM PST

By Kyle Banker, Peter Bakkum, Shaun Verch, Douglas Garrett, and Tim Hawkins
MongoDB in Action, Second Edition

Save 39% on MongoDB in Action, Second Edition discount code jnmongdbat manning.com.

JavaEE Tip #5 - Resource

Posted by mriem on December 15, 2014 at 4:57 AM PST

With the @Resource annotation you define the resource you want to inject. Note this annotation is an older style annotation. Going forward the recommendation is to use the CDI @Inject annotation.

In code

  @Resource
  UserTransaction utx;

Enjoy!

Working with geospatial data

Posted by manning_pubs on December 14, 2014 at 6:17 AM PST

By Radu Gheorghe and Matthew Lee Hinman, Elasticsearch in Action

JavaEE Tip #4 - PreDestroy

Posted by mriem on December 13, 2014 at 7:29 AM PST

With the @PreDestroy annotation you annotate a single method in your class that you want to be called just before your object (EJB, JSF managed bean, CDI bean) is taken out of service.

In code

  @PreDestroy
  public void destroy() {
    // put your destroy code here.
  }

Enjoy!