Java Lobby Announcements

Subscribe to Java Lobby Announcements feed
Updated: 8 hours 39 min ago

Java 8 Type Annotations

Tue, 2014-02-11 08:38
Lambda expressions are by far the most discussed and promoted feature of Java 8. While I agree that Lambdas are a large improvement I think that some other Java 8 feature go a bit short because of the Lambda hype. In this post I want to show a number of examples from another nice Java 8 feature: Type Annotations. Preview Text:  While I agree that...
Categories: Java

Grails Goodness: Customize Root Element Name Collections for XML Marshalling

Tue, 2014-02-11 08:37
When we convert a List or Set to XML using the Grails XML marshalling support the name of the root element is either <list> or <set>. We can change this name by extending the org.codehaus.groovy.grails.web.converters.marshaller.xml.CollectionMarshaller. We must override the method supports() to denote the type of collection we want to...
Categories: Java

Some Quick HarpJS Tips and Tricks

Tue, 2014-02-11 08:30
  I spent some time today converting an older ColdFusion site to static HTML (I'll talk more about that tomorrow) and I thought I'd share some tips that may help others. Tip One - What to do when you don't see an error. Today I ran into an odd problem where Harp wouldn't tell me what went wrong with a request. Normally Harp will pass up errors just fine. As an example, here...
Categories: Java

Using Hadoop 2.2 as a Sink in Flume 1.4

Tue, 2014-02-11 08:30
Google really screwed the pooch with their protobuf 2.5 release. Code generated with protobuf 2.5 is binary incompatible with older protobuf libraries (I guess Google missed the semantic versioning boat on this release). Unfortunately the current stable release of Flume 1.4 packages protobuf 2.4.1 and if you try and use HDFS on Hadoop 2.2 as a sink you’ll be smacked with the following...
Categories: Java

Renaming Glassfish Application Server's Domain Name

Tue, 2014-02-11 08:30
Renaming domain names is not supported by Glassfish application server. There is no toolkit or any command available by Glassfish to perform domain name rename. You can choose your desired domain name when you install glassfish 3.x, but Glassfish 4 doesn’t let you choose your desired domain name (auto selecting domain1 for domain name). Without diving into domain configuration files...
Categories: Java

Listen to Your SaaS Customers

Tue, 2014-02-11 08:15
Companies get more from software-as-a-service (SaaS) solutions than just lower cost. So says a recent study conducted by IBM.  It reveals that companies find that the greatest benefits from SaaS solutions are more collaboration, a better customer experience, and faster time-to-market. For anyone that’s been marketing SaaS solutions for any amount of time, those finding aren’t...
Categories: Java

Code Review Best Practices

Mon, 2014-02-10 09:53
Code review is a great software instrument and you should definitely use it to improve the quality of your code. But like any other tool, it may be misused sometimes. That’s why I came up with a list of best practices to guide you when reviewing your peers’ code. Preview Text:  Code review is a great software instrument and you should...
Categories: Java

Tuning the JVM to Improve Performance in Cassandra

Mon, 2014-02-10 09:15
It's a common problem: As data grows, performance suffers. That was the case in this article from Blake Eggleston at the Shift Developer Blog - an expanding dataset led to nodes that became unresponsive for seconds at a time, and even bigger problems - which was eventually solved by tuning the JVM to cooperate better with Cassandra. Preview Text:  ...
Categories: Java

Product vs. Project

Mon, 2014-02-10 09:00
There are many ways for a business to release software. Two common approaches are projects and products. They sound similar but are vastly different. Preview Text:  There are many ways for a business to release software. Two common approaches are projects and products. They sound similar but are vastly different. Legacy ...
Categories: Java

Android Animations: Working with KitKat's Scenes and Transitions

Mon, 2014-02-10 09:00
Android's KitKat included a number of new features, and this recent two-part tutorial from Bolot Kerimbaev at Big Nerd Ranch cove Preview Text:  This two-part tutorial covers a new feature from KitKat: the android.transition framework. The framework includes functionality for what Android calls "scenes" and "transitions," the...
Categories: Java

Secret Key Import in Java Keystore by Key Replacement Method

Mon, 2014-02-10 08:48
If you are a programmer and have to deal with cryptography issues, you've surely heard about keywords such as encryption, decryption and key management. The last key word, key management, is defined as a group of operations such as generating, exchanging, storing and protecting security artifacts (i.e. keys and certificates). Security artifacts are essential parts of any cryptography operations....
Categories: Java

MapReduce On Hive Tables Using HCatalog

Mon, 2014-02-10 08:45
In my last post Introduction To Hive's Partitioning I described how we can load csv data to a partitioned hive table. Today we shall see how we can use HCatalog to run MapReduce on Hive table and store the output in another Hive table. HCatalog makes Hive metadata available to users of other Hadoop tools like Pig, MapReduce and Hive. It provides connectors for MapReduce and Pig so that users of...
Categories: Java

Build Your Own Custom Lucene Query and Scorer

Mon, 2014-02-10 08:40
Every now and then we’ll come across a search problem that can’t simply be solved with plain Solr relevancy. This usually means a customer knows exactly how documents should be scored. They may have little tolerance for close approximations of this scoring through Solr boosts, function queries, etc. They want a Lucene-based technology for text analysis and performant data structures, but they...
Categories: Java

The Effects of Database Heap Storage Choices in MongoDB

Mon, 2014-02-10 08:40
William Zola over at MongoDB gave a great talk called “The (Only) Three Reasons for Slow MongoDB Performance”. It reminded me of an interesting characteristic of updates in MongoDB. Preview Text:  Because MongoDB’s main data store is a flat file and secondary indexes store offsets into the flat file, if the location of a document changes,...
Categories: Java

Comparing JVM Web Frameworks at vJUG

Mon, 2014-02-10 08:37
A couple months ago, I was invited to speak at Virtual JUG - an online-only Java User Group organized by the ZeroTurnaround folks. They chose my Comparing JVM Web Frameworks presentation and we agreed I'd speak yesterday morning. They used a combination of Google Hangouts, live streaming on YouTube and IRC to facilitate the meeting. Preview Text:  ...
Categories: Java

Use Java Annotation Deprecated the Right Way

Mon, 2014-02-10 08:35
There is hardly anything more infuriating that seeing a method @Deprecated without proper documentation. I feel lost. Should I still use the method? Probably that is not the intention of the developer, that is why he/she added the deprecation annotation. Should I use something else? So….What are the rules using @Deprecated? Preview Text:  ...
Categories: Java

Death by 70,000 Facets

Mon, 2014-02-10 08:30
Just sit right back and you'll hear a tale, a tale of a fateful bug. That started from a simple request, about a feature that was just a bit too snug. Okay, leaving aside my attempts at humor. This story is about a customer reporting an issue. “Most of the time we have RavenDB running really fast, but sometimes we have high latency requests”. After a while, we managed to narrow it down...
Categories: Java

Android Development 101 with Eclipse and Xamarin

Mon, 2014-02-10 08:30
Last week I had the pleasure of delivering a free half-day introduction to Android development at our Haifa branch. The day focused on both native application development on Android (with Eclipse and ADT) and C# development with Xamarin. We developed a simple “todo list” application that displays pending tasks, tracks the user location, and stores tasks in persistent storage on the...
Categories: Java

Reusing Front-End Components in Web Applications

Mon, 2014-02-10 08:27
In the Java SE realm, GUI components are based on Java classes with the help of libraries such as AWT, Swing or the newer JavaFX. As such, they can be shared across projects, to be inherited and composed. Things are entirely different in the Java EE world, as GUI components are completely heterogeneous in nature: they may include static HTML pages, JavaScript files, stylesheets, images, Java...
Categories: Java

The Best of the Week (Jan. 31): Cloud Zone

Mon, 2014-02-10 08:22
Make sure you didn't miss anything with this list of the Best of the Week in the Cloud Zone (Jan. 31 to Feb. 6). Here they are, in order of popularity: Preview Text:  Make sure you didn't miss anything with this list of the Best of the Week in the Cloud Zone (Jan. 31 to Feb. 6). This week's topics include a survey for the DZone Cloud...
Categories: Java

Pages