Archive for the ‘en-US’ Category
Proxying without AOP
Case
You have many operations to execute on each method call. At first glance, this is the perfect case to write an AOP mechanism (such as in this example Transaction Management with Spring in AOP).
Anyway, sometimes AOP won’t work, for instance when OSGi jars and their inherent opacity prevent you from cutting method calls.
Yet, I suggest here a workaround. In the following example, we log each method call, with inputs and outputs (returned values ; you can improve the code sample to handle raised exceptions, too).
Solution
Starting Point
Let’s consider an interface MyServiceInterface. It is actually implemented by MyServiceLogic.
An EJB MyServiceBean has a field of type MyServiceInterface, and the concrete implementation is of type MyServiceLogic.
Without proxying nor AOP, the EJB should look like:
[java]
public MyServiceBean extends … implements …{
private MyServiceInterface myServiceLogic;
public MyServiceBean() {
this.myServiceLogic = new MyServiceLogic();
}
} [/java]
We have to insert a proxy in this piece of code.
Generic Code
The following piece of code is technical and generic, which means it can be used in any business context. We use the class InvocationHandler, that is part of package java.lang.reflect since JDK 1.4
(in order to keep the code light, we don’t handle the exceptions ; consider adding them as an exercise 😉 )
[java]public class GenericInvocationHandler<T> implements InvocationHandler {
private static final String NULL = "<null>";
private static final Logger LOGGER = Logger.getLogger(GenericInvocationHandler.class);
private final T invocable;
public GenericInvocationHandler(T _invocable) {
this.invocable = _invocable;
}
@Override
public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
final Object answer;
LOGGER.info(">>> " + invocable.getClass().getSimpleName() + "." + method.getName() + " was called with args: " + arrayToString(args));
answer = method.invoke(invocable, args);
// TODO handle throwables
if (method.getReturnType().equals(Void.class)) {
LOGGER.info("<<< (was a void method) ");
} else {
LOGGER.info("<<< " + invocable.getClass().getSimpleName() + "." + method.getName() + " returns: " + (answer == null ? "<null>" : answer.toString()));
}
return answer;
}
private static String arrayToString(Object… args) {
final StringBuilder stringBuilder;
stringBuilder = new StringBuilder();
for (Object o : args) {
stringBuilder.append(null == o ? NULL : o.toString());
}
return stringBuilder.toString();
}
}[/java]
Specific Code
Let’s return to our business requirement. The EJB has to be modified, and should be like:
[java]
public MyServiceBean extends … implements …{
private MyServiceInterface myServiceLogic;
public MyServiceBean() {
final MyServiceInterface proxied;
proxied = new MyServiceLogic();
this.myServiceLogic = (MyServiceInterface) Proxy.newProxyInstance(proxied.getClass().getClassLoader(),
proxied.getClass().getInterfaces(),
new GenericInvocationHandler<MyServiceInterface>(proxied));
}[/java]
From now and then, all the methods calls will be logged… All that without AOP!
[DevoxxFR2012] DevOps: Extending Beyond Server Management to Everyday Workflows
Lecturer
Jérôme Bernard is Directeur Technique at StepInfo, with over a decade in Java development for banking, insurance, and open-source projects like Rio, Elastic Grid, Tapestry, MX4J, and XDoclet. Since 2008, he has focused on technological foresight and training organization, innovating DevOps applications in non-production contexts.
Abstract
This article scrutinizes Jérôme Bernard’s unconventional application of DevOps tools—Chef, VirtualBox, and Vagrant—for workstation automation and virtual environment provisioning, diverging from traditional server ops. It dissects strategies for Linux installations, disposable VMs for training, and rapid setup for development. Framed against DevOps’ cultural shift toward automation and collaboration, the analysis reviews configuration recipes, box definitions, and integration pipelines. Through demos and case studies, it evaluates efficiencies in resource allocation, reproducibility, and skill-building. Implications highlight DevOps’ versatility for desktop ecosystems, reducing setup friction and enabling scalable learning infrastructures, with updates reflecting 2025 advancements like enhanced Windows support.
Rethinking DevOps: From Servers to Workstations
DevOps transcends infrastructure; Jérôme posits it as a philosophy automating any repeatable task, here targeting workstation prep for training and dev. Traditional views confine it to CI/CD for servers, but he advocates repurposing for desktops—installing OSes, tools, and configs in minutes versus hours.
Context: StepInfo’s training demands identical environments across sites, combating “it works on my machine” woes. Tools like Chef (configuration management), VirtualBox (virtualization), and Vagrant (VM orchestration) converge: Chef recipes define states idempotently, VirtualBox hosts hypervisors, Vagrant scripts provisioning.
Benefits: Reproducibility ensures consistency; disposability mitigates drift. In 2025, Vagrant’s 2.4 release bolsters multi-provider support (e.g., Hyper-V), while Chef’s 19.x enhances policyfiles for secure, auditable configs—vital for compliance-heavy sectors.
Automating Linux Installations: Recipes for Consistency
Core: Chef Solo for standalone configs. Jérôme demos a base recipe installing JDK, Maven, Git:
package 'openjdk-11-jdk' do
action :install
end
package 'maven' do
action :install
end
directory '/opt/tools' do
owner 'vagrant'
group 'vagrant'
mode '0755'
end
Run via chef-solo -r cookbook_url -o recipe[base]. Idempotency retries only changes, preventing over-provisioning.
Extensions: Roles aggregate recipes (e.g., “java-dev” includes JDK, IDE). Attributes customize (e.g., JAVA_HOME). For training, add user accounts, desktops.
2025 update: Chef’s InSpec integration verifies compliance—e.g., audit JDK version—aligning with zero-trust models. Jérôme’s approach scales to fleets, prepping 50 machines identically.
Harnessing Virtual Machines: Disposable and Pre-Configured Environments
VirtualBox provides isolation; Vagrant abstracts it. A Vagrantfile defines boxes:
Vagrant.configure("2") do |config|
config.vm.box = "ubuntu/jammy64"
config.vm.provider "virtualbox" do |vb|
vb.memory = "2048"
end
config.vm.provision "chef_solo" do |chef|
chef.cookbooks_path = "cookbooks"
chef.add_recipe "base"
end
end
vagrant up spins VMs; vagrant destroy discards. For training: Share Vagrantfiles via Git, students vagrant up for instant labs.
Pre-config: Bake golden images with Packer, integrating Chef for baked-in states. Jérôme’s workflow: Nightly builds validate boxes, ensuring JDK 21 compatibility.
In 2025, Vagrant’s cloud integration (e.g., AWS Lightsail) extends to hybrid setups, while VirtualBox 7.1’s Wayland support aids Linux GUIs—crucial for dev tools like IntelliJ.
Integrating Chef, VirtualBox, and Vagrant: A Synergistic Pipeline
Synergy: Vagrant invokes Chef for provisioning, VirtualBox as backend. Jérôme’s pipeline: Git repo holds Vagrantfiles/recipes; Jenkins triggers vagrant up on commits, testing via Vagrant plugins.
Advanced: Multi-VM setups simulate clusters—e.g., one for app server, one for DB. Plugins like vagrant-vbguest auto-install guest additions.
Case: Training VM with Eclipse, Tomcat, sample apps—vagrant ssh accesses, vagrant halt pauses. For dev: Branch-specific boxes via VAGRANT_VAGRANTFILE=dev/Vagrantfile vagrant up.
2025 enhancements: Chef’s push jobs enable real-time orchestration; Vagrant’s 2.5 beta supports WSL2 for Windows devs, blurring host/guest lines.
Case Studies: Training and Development Transformations
StepInfo’s rollout: 100+ VMs for Java courses, cutting prep from days to minutes. Feedback: Trainees focus on coding, not setup; instructors iterate recipes post-session.
Dev extension: Per-branch environments—git checkout feature; vagrant up yields isolated sandboxes. Metrics: 80% setup time reduction, 50% fewer support tickets.
Broader: QA teams provision test beds; sales demos standardized stacks. Challenges: Network bridging for multi-VM comms, resolved via private networks.
Future Directions: Evolving DevOps Horizons
Jérôme envisions “Continuous VM Integration”—Jenkins-orchestrated nightly validations, preempting drifts like JDK incompatibilities. Windows progress: Vagrant 2.4’s WinRM, Chef’s Windows cookbooks for .NET/Java hybrids.
Emerging: Kubernetes minikube for containerized VMs, integrating with GitOps. At StepInfo, pilots blend Vagrant with Terraform for infra-as-code in training clouds.
Implications: DevOps ubiquity fosters agility beyond ops—empowering educators, devs alike. In 2025’s hybrid work, disposable VMs combat device heterogeneity, ensuring equitable access.
Jérôme’s paradigm shift reveals DevOps as universal automation, transforming mundane tasks into streamlined symphonies.
Links:
[DevoxxFR2012] Drawing a Language: An Exploration of Xtext for Domain-Specific Languages
Lecturer
Jeff Maury is an experienced product manager at Red Hat, specializing in Java technologies for large-scale systems. Previously, as Java Offer Manager at Syspertec, he architected solutions integrating open systems like Java and .NET. Co-founder of SCORT, a firm focused on enterprise system integration, Jeff has leveraged Xtext to develop advanced development tools, providing hands-on insights into DSL ecosystems. An active contributor to Java communities, he shares expertise through conferences and practical implementations.
Abstract
This article analyzes Jeff Maury’s introduction to Xtext, Eclipse’s framework for crafting domain-specific languages (DSLs), structured across theoretical underpinnings, real-world applications, and hands-on development. It dissects Xtext’s grammar definition, model generation, and editor integration, emphasizing its role in bridging business concepts with executable code. Contextualized within the rise of model-driven engineering, the discussion evaluates Xtext’s components—lexer, parser, and scoping—for enabling concise, domain-tailored notations. Through the IzPack editor example, it assesses methodologies for validation, refactoring, and Java interoperability. Implications span productivity gains in specialized tools, reduced cognitive load for non-programmers, and ecosystem extensions via EMF, positioning Xtext as a versatile asset for modern software engineering.
Theoretical Foundations: Components and DSL Challenges
Domain-specific languages address the gap between abstract business requirements and general-purpose programming, allowing experts to articulate solutions in familiar terms. Jeff frames DSLs as targeted notations that encapsulate métier concepts, fostering adoption by broadening accessibility beyond elite coders. Challenges include syntax design for intuitiveness, semantic validation, and tooling for editing—areas where traditional languages falter due to verbosity and rigidity.
Xtext resolves these by generating complete language infrastructures from a declarative grammar. At its core, the grammar file (.xtext) defines rules akin to EBNF, specifying terminals (e.g., keywords, IDs) and non-terminals (e.g., rules for structures). The lexer tokenizes input, while the parser constructs an abstract syntax tree (AST) via ANTLR integration, ensuring robustness against ambiguities.
Model generation leverages Eclipse Modeling Framework (EMF), transforming the grammar into Ecore metamodels—classes representing language elements with attributes, references, and containment hierarchies. Scoping rules dictate name resolution, preventing dangling references, while validation services enforce constraints like type safety. Jeff illustrates with a simple grammar for a configuration DSL:
grammar ConfigDSL;
Config: elements+=Element*;
Element: 'define' name=ID '{'
properties+=Property*
'}';
Property: key=ID '=' value=STRING;
This yields EMF classes: Config (container for Elements), Element (with name and properties), and Property (key-value pairs). Such modularity enables incremental evolution, where grammar tweaks propagate to editors and validators automatically.
Theoretical strengths lie in its declarative paradigm: Developers focus on semantics rather than boilerplate, accelerating prototyping. However, Jeff cautions on over-abstraction—DSLs risk becoming mini-general-purpose languages if scopes broaden, diluting specificity. Integration with Xbase extends expressions with Java-like constructs, blending DSL purity with computational power.
Business Applications: Real-World Deployments and Value Propositions
Beyond academia, Xtext powers production tools, democratizing complex domains. Jeff cites enterprise modeling languages for finance, where DSLs express trading rules sans procedural code, slashing error rates. In automotive, it crafts simulation scripts, aligning engineer notations with executable models.
A compelling case is workflow DSLs in BPM, where Xtext-generated editors visualize processes, integrating with Activiti or jBPM. Business analysts author flows textually, with auto-completion and hyperlinking to assets, enhancing traceability. Healthcare examples include protocol DSLs for patient data flows, ensuring compliance via built-in validators.
Value accrues through reduced onboarding: Non-technical stakeholders contribute via intuitive syntax, while developers embed DSLs in IDEs for seamless handoffs. Jeff notes scalability—Xtext supports incremental parsing for large files, vital in log analysis DSLs processing gigabytes.
Monetization emerges via plugins: Commercial tools like itemis CREATE extend Xtext for automotive standards (e.g., AUTOSAR). Open-source adoptions, such as Sirius for graphical DSLs, amplify reach. Challenges include learning curves for grammar tuning and EMF familiarity, but Jeff advocates starting small—prototype a config DSL before scaling.
In 2025, Xtext remains Eclipse’s cornerstone, with version 2.36 (March 2025) enhancing LSP integration for VS Code, broadening beyond Eclipse. This evolution sustains relevance amid rising polyglot tooling.
Practical Implementation: Building an IzPack Editor with Java Synergies
Hands-on, Jeff demonstrates Xtext’s prowess via an IzPack DSL editor—a packaging tool for Java apps. IzPack traditionally uses XML; the DSL abstracts to human-readable syntax like “install ‘app.jar’ into ‘/opt/app’ with variables {version: ‘1.0’}.”
Grammar evolution: Start with basics (packs, filesets), add cross-references for variables, and validators for conflicts (e.g., duplicate paths). Generated editor features syntax highlighting, outlining, and quick fixes—e.g., auto-importing unresolved types.
EMF integration shines in serialization: Parse DSL to IzPack model, then generate XML or JARs via Java services. Jeff shows a runtime module injecting custom validators:
public class IzPackRuntimeModule extends AbstractIzPackRuntimeModule {
@Override
public Class<? extends IValidator> bindIValidator() {
return IzPackValidator.class;
}
}
Java linkage via Xtend—Xtext’s concise dialect—simplifies services:
def void updateCategory(Element elem, String newCat) {
elem.category = newCat
elem.eAllContents.filter(Element).forEach[ it.category = newCat ]
// Trigger listeners
elem.eSet(elem.eClass.getEStructuralFeature('category'), newCat)
}
This propagates changes, demonstrating EMF’s notification system. Refactoring renames propagate via index, while content assist suggests variables.
Deployment: Export as Eclipse plugin or standalone via Eclipse Theia. Jeff’s GitHub repo (github.com/jeffmaury/izpack-dsl) hosts the example, inviting forks.
Implications: Such editors cut packaging time 70%, per Jeff’s Syspertec experience. For Java devs, Xtext lowers DSL barriers, fostering hybrid tools—textual DSLs driving codegen. In 2025, LSP support enables polyglot editors, aligning with microservices’ domain modeling needs.
Xtext’s trifecta—theory, application, practice—empowers tailored languages, enhancing expressiveness without sacrificing toolability.
Links:
[DevoxxFR2012] Android Lifecycle Mastery: Advanced Techniques for Services, Providers, and Optimization
Lecturer
Mathias Seguy founded Android2EE, specializing in Android training, expertise, and consulting. Holding a PhD in Fundamental Mathematics and an engineering degree from ENSEEIHT, he transitioned from critical J2EE projects—serving as technical expert, manager, project leader, and technical director—to focus on Android. Mathias authored multiple books on Android development, available via Android2ee.com, and contributes articles to Developpez.com.
Abstract
This article explores Mathias Seguy’s in-depth coverage of Android’s advanced components, focusing on service modes, content provider implementations, and optimization strategies. It examines unbound/bound services, URI-based data operations, and tools like Hierarchy Viewer for performance tuning. Within Android’s multitasking framework, the analysis reviews methodologies for lifecycle alignment, asynchronous execution, and resource handling. Through practical code and debugging insights, it evaluates impacts on battery efficiency, data security, and UI responsiveness. This segment underscores patterns for robust architectures, aiding developers in crafting seamless, power-efficient mobile experiences.
Differentiating Service Modes and Lifecycle Integration
Services bifurcate into unbound (autonomous post-start) and bound (interactive via binding). Mathias illustrates unbound for ongoing tasks like music playback:
startService(new Intent(this, MyService.class));
Bound for client-service dialogue:
private ServiceConnection connection = new ServiceConnection() {
public void onServiceConnected(ComponentName name, IBinder service) {
myService = ((MyBinder) service).getService();
}
public void onServiceDisconnected(ComponentName name) {
myService = null;
}
};
bindService(new Intent(this, MyBoundService.class), connection, BIND_AUTO_CREATE);
Lifecycle syncing uses flags: isRunning/isPaused toggle with onStartCommand()/onDestroy(), ensuring tasks halt on service termination, averting leaks.
Constructing Efficient Content Providers
Providers facilitate inter-app data exchange via URIs. Define via extension, with UriMatcher for parsing:
private static final UriMatcher matcher = new UriMatcher(UriMatcher.NO_MATCH);
static {
matcher.addURI(AUTHORITY, TABLE, COLLECTION);
matcher.addURI(AUTHORITY, TABLE + "/#", ITEM);
}
Implement insert():
@Override
public Uri insert(Uri uri, ContentValues values) {
long rowId = db.insert(DBHelper.MY_TABLE, null, values);
if (rowId > 0) {
Uri result = ContentUris.withAppendedId(CONTENT_URI, rowId);
getContext().getContentResolver().notifyChange(result, null);
return result;
}
throw new SQLException("Failed to insert row into " + uri);
}
Manifest exposure with authorities/permissions secures access.
Asynchronous Enhancements and Resource Strategies
AsyncTasks/Handlers offload UI: Extend for doInBackground(), ensuring UI updates in onPostExecute().
Resource qualifiers adapt to locales/densities: values-fr/strings.xml for French.
Databases: SQLiteOpenHelper with onCreate() for schema.
Debugging and Performance Tools
Hierarchy Viewer inspects UI hierarchies, identifying overdraws. DDMS monitors threads, heaps; LogCat filters logs.
Permissions: Declare in manifest for features like internet.
Architectural Patterns for Resilience
Retain threads across rotations; synchronize for integrity.
Implications: These techniques optimize for constraints, enhancing longevity and usability in diverse hardware landscapes.
Mathias’s guidance refines development, promoting sustainable mobile solutions.
Links:
(long tweet) “Hello world” with JSF 2.0, Tomcat 7 and IntelliJ IDEA 12 EAP “Leda”
(disclaimer: this “long tweet” has absolutely no interest, except playing with Tomcat 7 and “Leda”)
Friday is technical scouting… Today it will be a “Hello World!”.
- Get the code and project available on this page: http://www.mkyong.com/jsf2/jsf-2-0-hello-world-example/
- Get and install Tomcat 7 (very nice new home page)
- Get and install IntelliJ IDEA 12 EAP “Leda”
- Launch IDEA
- Create a new project on existing sources, select the pom.xml of the project above.
- Build with Maven
- In IDEA:
- Run Configuration
- Tomcat Server
- Startup Page: http://localhost:8080/
- Deployment
- Add
- Artifact…
- select the WAR
- OK
- This launches Tomcat 7. You can connect http://localhost:8080/
Actually, I’m sure you can deploy with Tomcat-Maven plugin, ie without actual Tomcat install.
[DevoxxFR2012] Advanced Android Patterns: Mastering Services, Content Providers, and Asynchronous Operations
Lecturer
Mathias Seguy founded Android2EE, specializing in Android training, expertise, and consulting. Holding a PhD in Fundamental Mathematics and an engineering degree from ENSEEIHT, he transitioned from critical J2EE projects—serving as technical expert, manager, project leader, and technical director—to focus on Android. Mathias authored multiple books on Android development, available via Android2ee.com, and contributes articles to Developpez.com.
Abstract
This article delves into Mathias Seguy’s continuation of essential Android development concepts, emphasizing services for background tasks, content providers for data sharing, and patterns for lifecycle synchronization. Building on foundational elements, it analyzes implementation strategies for bound/unbound services, CRUD operations in providers, and thread management with handlers/AsyncTasks. Within Android’s resource-constrained environment, the discussion evaluates techniques for internationalization, resource optimization, and database integration. Through detailed code examples, it assesses implications for application responsiveness, data integrity, and cross-app interoperability, guiding developers toward efficient, maintainable architectures.
Implementing Services for Background Processing
Services enable persistent operations independent of UI, running in the application’s main thread—necessitating offloading to avoid ANRs. Mathias distinguishes unbound (started via startService(), autonomous) from bound (via bindService(), allowing communication).
Lifecycle binding is critical: Align service states with calling components using booleans for running/pausing. Code for an unbound service:
public class MyService extends Service {
@Override
public int onStartCommand(Intent intent, int flags, int startId) {
// Start task
return START_STICKY; // Restart if killed
}
@Override
public void onDestroy() {
// Cleanup
}
}
Bound services use Binder for IPC:
public class MyBoundService extends Service {
private final IBinder binder = new LocalBinder();
public class LocalBinder extends Binder {
MyBoundService getService() {
return MyBoundService.this;
}
}
@Override
public IBinder onBind(Intent intent) {
return binder;
}
}
These ensure tasks like downloads persist, enhancing user experience without freezing interfaces.
Crafting Content Providers for Data Exposure
Content providers standardize data access across apps, using URIs for queries. Mathias outlines creation: Extend ContentProvider, define URIs via UriMatcher.
CRUD implementation:
@Override
public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) {
SQLiteQueryBuilder qb = new SQLiteQueryBuilder();
qb.setTables(DBHelper.MY_TABLE);
if (matcher.match(uri) == ITEM) {
qb.appendWhere(DBHelper.ID + "=" + uri.getLastPathSegment());
}
return db.query(qb.getTables(), projection, qb.getWhere(), selectionArgs, null, null, sortOrder);
}
Manifest declaration:
<provider
android:name=".MyProvider"
android:authorities="com.example.provider"
android:exported="true"
android:readPermission="com.example.READ"
android:writePermission="com.example.WRITE" />
This facilitates secure sharing, like contacts or media, promoting modular ecosystems.
Asynchronous Patterns and Resource Management
Asynchrony prevents UI blocks: Handlers for UI updates, AsyncTasks for background work. Pattern: Bind threads to activity lifecycles with flags.
onRetainNonConfigurationInstance() passes objects across rotations (pre-Fragments):
@Override
public Object onRetainNonConfigurationInstance() {
return myThread;
}
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
myThread = (MyThread) getLastNonConfigurationInstance();
if (myThread == null) {
myThread = new MyThread();
}
}
Resources: Externalize strings in values/strings.xml for localization; use qualifiers like values-fr for French.
These patterns optimize for device variability, ensuring fluid performance.
Database Integration and Permissions
SQLite via SQLiteOpenHelper manages schemas:
public class DBHelper extends SQLiteOpenHelper {
@Override
public void onCreate(SQLiteDatabase db) {
db.execSQL("CREATE TABLE " + MY_TABLE + " (_id INTEGER PRIMARY KEY, name TEXT);");
}
}
Permissions in manifest control access, balancing security with functionality.
Testing and Project Management Strategies
Unit tests with JUnit; instrumentation via AndroidJUnitRunner. Maven for builds, Hudson/Jenkins for CI.
Implications: These foster reliable apps, mitigating fragmentation. In enterprise mobility, they enable scalable, secure solutions.
Mathias’s methodical breakdown equips developers for real-world challenges.
Links:
[DevoxxFR2012] 55 Lesser-Known Features of Java 7: Unveiling Hidden Enhancements Across the Platform
Lecturer
David Delabassee serves as a Director of Developer Relations in the Java Platform Group at Oracle, where he champions Java technologies worldwide through presentations, technical articles, and open-source engagements. Previously at Sun Microsystems for a decade, he focused on end-to-end Java implementations, from smart cards to high-end servers. A member of the Devoxx Belgium steering committee, David co-hosts the Inside Java Podcast and maintains a blog at delabassee.com. He holds Belgian nationality and has spoken at numerous conferences and Java User Groups.
Abstract
This article investigates David Delabassee’s rapid-fire presentation on 55 underappreciated features of Java 7, released in 2011, extending beyond well-known additions like Project Coin, Fork/Join, NIO.2, and invokedynamic. It categorizes enhancements across core libraries, security, internationalization, graphics, and more, analyzing their practical utilities and implementation details. Positioned as a post-Sun acquisition milestone under Oracle, the discussion evaluates how these refinements bolster platform stability, performance, and developer productivity. Through code demonstrations and comparisons to prior versions, it assesses implications for migration, legacy code maintenance, and modern application design, emphasizing Java 7’s role in bridging to future iterations like Java 8.
Core Language and Library Improvements
Java 7 introduced subtle yet impactful tweaks to foundational elements, addressing longstanding pain points. David highlights enhanced exception handling: multi-catch clauses consolidate try-catch blocks for related exceptions, reducing redundancy:
try {
// Code
} catch (IOException | SQLException e) {
// Handle
}
String switches leverage interned strings for efficient comparisons, useful in parsing:
switch (input) {
case "start": // Action
break;
// ...
}
Underscores in numeric literals improve readability for large numbers: long creditCard = 1234_5678_9012_3456L;.
Library updates include Objects class utilities like requireNonNull() for null checks, and BitSet enhancements with valueOf() for byte/long array conversions. These foster cleaner, more maintainable code, mitigating common errors in enterprise applications.
Security and Cryptography Advancements
Security received substantial bolstering, crucial amid rising threats. David details elliptic curve cryptography integration, offering stronger keys with smaller sizes for SSL/TLS. Algorithm disabling via jdk.security.provider.disabledAlgorithms property enhances compliance.
SChannel provider on Windows improves native integration, while JSSE updates support SNI for virtual hosting. These fortify networked applications, essential for cloud and web services, reducing vulnerability exposure without external libraries.
Internationalization and Locale Refinements
Java 7 refined locale handling for global apps. Unicode 6.0 support adds scripts like Batak, enhancing text processing. Locale enhancements include script, variant, and extension keys:
Locale loc = new Locale.Builder().setLanguage("fr").setRegion("FR").setScript("Latn").build();
Currency updates reflect ISO 4217 changes, with getAvailableCurrencies() listing supported ones. NumberFormat improvements allow custom symbols, aiding financial software. These ensure accurate, culturally sensitive representations, vital for international markets.
Graphics and UI Toolkit Upgrades
Swing and AWT saw usability boosts. Translucent/shaped windows via GraphicsDevice enable modern UIs:
window.setOpacity(0.5f);
Nimbus look-and-feel, now default in some contexts, provides scalable, themeable components. JLayer adds decoration layers for effects like blurring. These empower richer desktop apps, aligning Java with contemporary design trends.
Performance and JVM Optimizations
JVM internals evolved for efficiency. Tiered compilation combines client/server compilers for faster startups and peak performance. G1 garbage collector, experimental in Java 7, targets low-pause collections for large heaps.
Compressed oops extend 32-bit addressing to 64-bit, reducing memory footprint. These optimizations benefit server-side applications, improving throughput and responsiveness in high-load scenarios.
Migration Considerations and Ecosystem Impact
Adopting Java 7 involves assessing compatibility, given end-of-life for Java 6. David notes seamless transitions for most code, but highlights needs like updating deprecated APIs. Tools like javac -Xlint warn of issues.
Ecosystem-wise, Java 7 paved for Java 8’s lambdas, solidifying Java’s enterprise dominance. Implications include smoother upgrades, enhanced security postures, and broader internationalization, encouraging developers to leverage these for robust, future-proof systems.
Links:
Leaving Sungard Global Services
After seven years in Cadextan, then Sungard Global Services, I wanted to give new impetus to my career and face new challenges. That is why, at the end of my position in Amundi AM, I left Sungard Global Services last Friday.
I’d like to thank the staff of Sungard Global Services-consultants, administrators, managers, etc. – for these seven years spent working on their sides. I learnt much and met many people with great human qualities. Sungard Global Services is a great success, that changed in a few years from a 100-people company in France to than 500-people in Europe. I am proud to have been part of these successful achievements and adventure.
Leaving Amundi AM
After a couple of months spent as technical expert, transverse architect and manager of project “Reliability and Stabilization”, I left Amundi AM last Friday. I faced exciting and arduous subjects, such us OSGi, JOnAS, JVM customization, EJB2 to EJB3 migration, webservices upgrade, Decalog AS leaks, etc.
I would like to thank the whole teams that greeted me, and especially among them Antoine BODY and Jean-Guillaume BATTAGLIA.
[DevoxxFR2012] Jazz Platform: Fostering Collaborative Software Development Through Integrated Tools
Lecturer
Florent Benoit leads the OW2 EasyBeans open-source project and contributes significantly to the OW2 JOnAS application server. An expert in OSGi and Java EE, he provides architectural guidance on major Bull projects. Member of the Java EE 6 expert group for EJB 3.1 specifications, Florent holds a Master’s in Computer Engineering from Joseph Fourier University, Grenoble. He speaks at open-source conferences like JavaOne and Solutions Linux. Alexis Gaches specializes in automating software development lifecycles. Joining the Jazz movement in 2008, he architects Jazz solutions for IBM Rational, collaborating with French enterprises on agile practices for application management.
Abstract
This article assesses Florent Benoit and Alexis Gaches’s overview of IBM’s Jazz platform, aimed at streamlining collaborative software development from requirements to deployment. It dissects tools for requirements management, architecture modeling, implementation, building, testing, and project oversight. Positioned as a response to fragmented processes, the analysis reviews integration mechanisms, open-source alignments, and deployment options. Through demonstrations, it evaluates benefits for agility, traceability, and efficiency, alongside implications for organizational adoption and tool interoperability in diverse environments.
Rationale and Architecture of Jazz Platform
Jazz addresses silos in development by promoting unified collaboration. Florent outlines its genesis: enhancing processes across lifecycle stages—requirements, design, coding, builds, tests, management. Core philosophy: Tools should interconnect, enabling traceability from user stories to code commits.
Architecture leverages Eclipse for IDE integration, with Rational Team Concert (RTC) as hub. RTC supports SCM, work items, builds via Jazz Team Server. Open Services for Lifecycle Collaboration (OSLC) standardizes integrations, allowing third-party tools like Jira to link.
Alexis emphasizes agility: Iterative planning, dashboards for metrics, reducing manual handoffs.
Key Tools and Functionalities
Requirements Composer manages specs, linking to work items. Quality Manager handles testing, integrating with RTC for defect tracking.
Implementation uses Eclipse with RTC plugins for code management, supporting SVN/Git via bridges. Builds automate via Ant/Jenkins, with traceability to changesets.
Demonstrations showcase scenarios: From story creation to code delivery, highlighting real-time updates and approvals.
Deployment options: On-premise or cloud (JazzHub), with free tiers for small teams/academia.
Integration with Open-Source and Legacy Systems
Jazz embraces open-source: Eclipse foundation, OSLC for extensibility. Migrations from ClearCase/SVN use connectors, preserving history.
Challenges: Cultural shifts toward transparency; tool learning curves. Benefits: Reduced cycle times, improved quality via automated traceability.
Future Directions and Community Engagement
IBM’s openness: Public development on jazz.net, inviting contributions. Academic JazzHub fosters education.
Implications: Enhances enterprise agility, but requires commitment. In global teams, it bridges geographies; for startups, free tools lower barriers.
Jazz exemplifies integrated ALM, driving efficient, collaborative delivery.