Emmanuel Hugonnet's Library tagged → View Popular
Customizing JAXB : Enterprise Tech Tips
In this tip, you'll learn several ways of customizing or extending the default behavior of JAXB. A samples package accompanies the tip. The package includes two files, JAXBSample.java and schema.xsd that demonstrate some of the techniques covered in this tip. The tip also points to resources that more fully cover the topic.
4 steps to add Scala to your Maven Java projects | StuQ.nl
In this tutorial you learn how to integrate Scala in your existing Maven Java projects. From configuring the project’s pom file to adding your first Scala code. Tip: Try to hide this inside a large code commit, and your co-workers will not notice you have added Scala support.. surprise!
» Rerouting Spring Security 2 Login Page Through a Spring Controller - It’s Only Software
Typically, you might want to display data on the login page that’s provided by Spring service-layer beans, or tie into the i18n bundles you’ve configured, or tens of other possibilities.
Fortunately, this is possible with a few tweaks to your Spring configuration. In this post, I’ll assume you’ve started with the configuration I wrote up in the initial 5 Minute Guide to Spring Security.spring ace
12 things I bet you didn't know about Hibernate
I’ve been working with Hibernate for the past 2 years, doing multiple projects with the framework. With this experience, I thought I pretty much had Hibernate figured out and knew what was possible and what wasn’t. Now this month, I have been prepping for a course I’ll give about the framework and to my great surprise I actually learned a lot! I’m more then happy to share some of this new cool stuff I’ve found out!
Linux Commands I Hardly Knew
Quickly Find a PID with pgrep
Execute The Last Executed Command
Execute The Last Command Starting With ...
Last Argument.
Run a Command Repeatedly and Display the Output
Save Quickly in VI/VIM
Quickly Log Out of a Terminal
Navigate to the Last Directory You Were In
Make Parent Directories the Smart Way
Delete the Entire Line
Set the Time stamp of a File
Command to File
Ampersand
Resetting your session
Create simple custom Converter implementation class in JSF
This article explains the simple Converter class implementation. Converter class is used for converting any given input to the desired output format or with any business logic to the input values. This example also includes the PhaseListener to identify in which JSF lifecycle phase the convertion happens.
Cobertura with Maven and Hudson
Cobertura and Maven: There are TWO important things to do. Then, we’ll see about integrating Cobertura and Hudson.
Firefox: Functional Firefox User Styles
Now that you've been running Firefox 3 for almost a week, it's time customize its interface to your liking with a few great user styles. Just like you can add user scripts (JavaScript) to web pages with the Greasemonkey extension, you can also add user styles (CSS) to Firefox's interface with the Stylish extension. While lots of user styles just skin specific web sites with a new look, many can actually improve the browser itself by changing the look and behavior of menus, tabs, dialogs, and buttons—Firefox's "chrome." Let's take a look at some of the best user styles which tweak, customize, enhance, and streamline Firefox's chrome.
Specify and Manage web application context root in Maven 2
Let us assume you have to create atleast one web module in a JEE project. By default Maven assigns a context root whose value is the same as the value of artifactId in the pom.xml of the web module. The below description helps in overriding this default behaviour.
The below screenshot shows the pom.xml of the web project [module]. Hence the application.xml inside the EAR packed will have the context root as theaweb [which is nothing but the value of artifactId].
Erlang-style Supervisor Module for Scala Actors
In this post I will explain how you can build fault-tolerant systems using Scala Actors by arranging them in Supervisor hierarchies using a library for Scala Supervisors that I just released.
Unit tests are not integration tests
The classic difference between integration and unit testing is that unit tests run in isolation, or near-isolation. Using an in-memory database for DAO unit tests. Using mocked-out components for the other layers. Integration tests, on the other hand, test the whole stack. If you're using Spring, you inject the whole Spring context and try to flush out any configuration issues, or integration issues between the various layers.
Test Early » Hudson - Tips and Tricks
This article describes a few real-life tips and tricks that we have found at work and will assist in configuring Hudson to work most effectively in your environment as well:
1. Changing Hudson home directory
2. OutOfMemoryError
3. Securing Hudson
4. Hudson Views
5. Hudson and Groovy
6. Spaces in directory names
7. Browser to use
Using Spring to Manage JSF Beans
The traditional way to integrate JSF and Spring was to define JSF beans in faces-config as managed beans and refer to the spring beans using the managed-property configuration. With the help of the spring’s delegatingvariableresolver the managed property is resolved from spring application context and JSF’s IOC injects the bean to the JSF Managed bean instance. I’ve written an article it about this way before
Using Spring request scope in JSF portlet
When you use Spring request scope with your JSF application, you can configure your request and session scoped beacking beans in a Spring application context instead of faces-config.xml. The great thing about this possibility is that the syntax of the Spring configuration is much more consise and that Spring AOP gives you a world of useful interception features.
Enterprise Java Community: JSF Anti-Patterns and Pitfalls
This article covers anti-patterns and pitfalls of day to day JSF development. These challenges include performance, tight coupling, thread safety, security, interoperability and just plain ugliness.
Find of the day: Wagon Subversion extension
Say you want to host your small project on a provider like Google Code, but they don't give you SSH access, and since your project is using Maven 2, you'd really like to be able to use its handy release plugin, which requires the ability to push files over to a repository. The missing link, for me anyway, has been setting up a Maven 2 repository to host jars and snapshots of these little one-off projects. I want to be able to use the existing Subversion repository Google Code gives me to be the Maven repository, but Maven needs a way to commit new files and directories...
21 Ruby Tricks You Should Be Using In Your Own Code
I get to see a lot of Ruby code while writing for Ruby Inside. Most is very good, but sometimes we forget some of Ruby's shortcuts and tricks and instead reinvent the wheel. In this post I present 21 different Ruby tricks, from those that most experienced developers already use every day to those that are more obscure.
Primary and secondary table with JPA
It‘s the third time I‘ve been asked if in JPA you can persist the attributes of your entity in several tables. The answer is yes. It has a performance impact (each simple query will use joins) but it can be very helpful when you need to map your objects into an existing database.
-
It‘s the third time I‘ve been asked if in JPA you can persist the attributes of your entity in several tables. The answer is yes. It has a performance impact (each simple query will use joins) but it can be very helpful when you need to map your objects into an existing database.
The 90th percentile: Mock Your Spring Config for Fun and Profit
What follows are all the alternatives that we tried to configur Spring: - PropertyPlaceHolderConfigurer - Spring imports - Spring JavaConfig - Placeholders in ApplicationContext - Extending ContextLoader
Using Callable to Return Results From Runnables : Core Java Technologies Tech Tips
Thanks to the Callable interface introduced in J2SE 5.0, instead of having a run() method, the Callable interface offers a call() method, which can return an Object or, more specifically, any type that is introduced in the genericized form.
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in tips
-
Firefox
Items: 4 | Visits: 208
Created by: Daniel Gauthier
-
how to decorate your home
sites of nicely-decorated h...
Items: 30 | Visits: 254
Created by: Iris Deters
-
Need learn and unread
Items: 12 | Visits: 169
Created by: Vincent Tsao
Highlighter, Sticky notes, Tagging, Groups and Network: integrated suite dramatically boosting research productivity. Learn more »
Join Diigo
