The Java EE 7 Tutorial is live and on this edition we feature the following:
Examples for Java API for WebSocket (JSR 356), Java API for JSON Processing (JSR 353), Batch Applications for the Java Platform (JSR 352), and Concurrency Utilities for Java EE (JSR 236) – Basically all new Java EE 7 technologies.
Examples for the updated specs like Java Message Service 2.0 (JSR 343), Java API for RESTful Web Services 2.0 (JSR 339), Java Servlet 3.1 (JSR 340), JavaServer Faces 2.2 (JSR 344), and Contexts and Dependency Injection for Java EE 1.1 (JSR 346).
The examples now are Maven based, so you can build, package and deploy to GlassFish 4.0 through Maven thanks to the brand new Cargo plugin.
Check it out!
Check it out:
Oracle WebLogic Server 12c is a major release and includes several new features, including Java EE 6, Maven integration, and JDK 7 support. This release also includes additional features that are important for administration and monitoring of an Oracle WebLogic domain. This article will focus on one such feature: RESTful Management Services
You can read the complete article on here -> http://www.oracle.com/technetwork/articles/soa/oliveira-wls-rest-javafx-1723982.html
Just published another article at Oracle Technology Network. This one shows the basics of Oracle Enterprise Gateway and a walk through example of how it can be integrated with Oracle Service Bus and Oracle Web Services Manager. To read the complete article click here and feel free to give any feedback.
A great partnership with my pal Fabio Mazanatti to produce the article!
After a long (very long) absent time of my blog, I’m finally writing something here. There are so many things that I’d like to share and that happened on the past months that I’ll probably make a quick brief on this post and talk a little bit more of each item on separate posts.
One of the main reasons of my absence was the Java EE Tutorial. It’s almost two years that I’m working on the Java EE Tutorial doing some small write ups and code examples but last year the group gave a great assignment, write a complete case study. The case study (Duke’s Forest) was finally pushed into the latest update of the tutorial this month and if you want to view some of the latest Java EE 6 technologies running along (CDI, JSF 2, JAX-RS, JAX-WS, Events) you can check it out. Hopefully this will be also part of the Java EE 6 Tutorial – 4th Edition – Advanced Topics book to be released
Last year Oracle launched Weblogic 12c with
finally supporting for Java EE 6 APIs. This was a great update for the product but we still have updates for Weblogic 11g, which is the only version support for Oracle Fusion Middleware and Oracle Fusion Apps. So, hopefully we will have Oracle FMW running on Weblogic 12c and then get a real move to use the product. The great thing here also is that I stayed at Oracle Open World Latin America Demoground doing the demo for Weblogic 12c and showing some of the new features like Maven 2.0, NetBeans Integration and more.
Oracle also release last month a new Oracle Fusion Middleware release, PS5 (220.127.116.11) and here is a link to the new features. IMHO the greatest features are more BPEL 2.0 functionality, updated Service Bus version and some bug fixes at Oracle CEP. Of course that there are much more than that, but this is only my opinion…
I’ve also worked with some Oracle partners (Latin America) on the Exastack Program, which made me play a little bit with those machines, install some applications and setup their environment, which was a good exercise btw…
There are a couple of articles that should get published at OTN soon… Anyhow, although it’s not an excuse I was very busy mostly working and now I’m planning to write at least some small notes here regularly….
It’s been a while since my last post but I expect to get back to blogging in the next month.
For now I’m sharing a complete reference for all annotations available in Java EE 6. As you already know, Java EE 6 is really changing the way to program for Java Enteprise platform and these annotations are responsible for hiding part of the complexity of EE development.
The link above is broken, please or use the following:
As some of my friends know, I am now a happy Android user. In fact, for about 5 months already… But my phone shipped with ECLAIR version of Android (2.1) and since I’m an Ubuntu user, I would find a way to flash my device and update my firmware to FROYO without Window$ / VirtualBox
traditional approach. For my surprise, there are some options to accomplish that and I’ll explain the one that worked for me.
Please Note: These steps worked for me but it’s possible that will not work for you. It’s a very stable procedure but $hit happens. Do follow the steps at your own risk.
UPDATE – The same procedure works with Android 2.3.3 (Gingerbread) firmware. Version I9000BVJJV3 – Jun 2011. Please check samfirmware website to download.
According to their website, here is a description:
Heimdall is a cross-platform open-source tool suite used to flash firmware (aka ROMs) onto Samsung Galaxy S devices.
It has ports for Mac OSX, Linux and even Windows, although most of the Windows users prefer to use Odin to flash their devices or even Samsung Kies.
You can grab heimdall packages for Ubuntu from their website -> http://www.glassechidna.com.au/products/heimdall/
For this tutorial I’m using Heimdall 1.1.1 command line tool. Using the GUI version I’ve got some strange behaviours and some times the GUI just said that Flash happened without any processing.
Android Froyo firmware download
To flash your device you must obtain the firmware version that you’ll apply. You have many options over the web to obtain different versions of Android. Some of them claims to be original ones from operators and some others modified/hacked versions with extra functionalities. I’ll stick with the “original” ones and since I’m in Brazil, my device has digital TV so I need to use a GT-I9000B firmware. Here are two options to download firmwares:
For this tutorial I’m using Froyo 2.2 (Operator Free):
- Install heimdall
- Uncompress the downloaded firmware package, in my case -> OK – 2.2 – FROYO – BRASIL SEM OPERADORA.rar
- Check if you have all the necessary files:
-r--r--r-- 1 markito markito 13955072 2010-12-11 01:23 cache.rfs
-r--r--r-- 1 markito markito 4833980 2010-12-11 02:04 zImage
-r--r--r-- 1 markito markito 716800 2010-12-11 02:04 param.lfs
-r--r--r-- 1 markito markito 254341120 2010-12-11 02:04 factoryfs.rfs
-r--r--r-- 1 markito markito 12582912 2010-12-12 22:30 modem.bin
- Move or copy the PIT file (s1_odin_20100512.pit) to the same directory you uncompressed the firmware
- Put your device in download mode. On a Galaxy S you should hold -> home buttom + power buttom + volume downand wait until you see the Android logo with “Downloading” written below.
- Now that your phone is ready to receive a new firmware, plug the USB cable, wait a few seconds and type the following command in the same directory you have uncompressed all the files:
heimdall flash --factoryfs factoryfs.rfs --cache cache.rfs --param param.lfs --kernel zImage --modem modem.bin --pit s1_odin_20100512.pit
- Now you should wait a few minutes and expected for the best: successful messages. :-)
- Your device should boot and will stuck a few moments in the Samsung S logo. That’s normal because it’s the first boot of your new kernel. But your are ready to go now, firmeware updated!
If it worked for you, congratulations. If you had or still have some problems, please take a look at some of the sources that I’ve used to learn and apply to my device, maybe it will help.
Sometimes, when you are executing a file transfer between your computer hard drive and an external drive and your computer shutdown for some reason (in my case, no battery/ac power) it’s pretty common to get some errors on external drives that uses NTFS as they file system.
The most common message is:
Error mounting: mount exited with exit code 13: $MFTMirr does not match $MFT (record 0).
Failed to mount ‘/dev/sdb3’: Input/output error
NTFS is either inconsistent, or there is a hardware fault, or it’s a
SoftRAID/FakeRAID hardware. In the first case run chkdsk /f on Windows
then reboot into Windows twice. The usage of the /f parameter is very
important! If the device is a SoftRAID/FakeRAID then first activate
it and mount a different device under the /dev/mapper/ directory, (e.g.
/dev/mapper/nvidia_eahaabcc1). Please see the ‘dmraid’ documentation
for more details.
One workaround for this issue is to do as the message says, boot on Windows and try to use the
awesome NTFS tool that Windows offer. But a perfect solution for a Linux users is to use the ntfsprogs utility.
UPDATE: On some recent Linux releases, you need to install ntfs-3g utilties. Try sudo apt-get install ntfs-3g or download from http://www.tuxera.com/community/ntfs-3g-download/
ntfsprogs is a suite of NTFS utilities based around a shared library. The tools are available for free and come with full source code.
- mkntfs: Create an NTFS volume on a partition
- ntfscat: Print a file on the standard output
- ntfsclone: Efficiently backup/restore a volume at the sector level
- ntfscluster: Given a cluster, or sector, find the file
- ntfsfix: Forces Windows to check NTFS at boot time
- ntfsinfo: Dump a file’s attributes, completely
- ntfslabel: Display or set a volume’s label
- ntfslib: Move all the common code into a shared library
- ntfsls: List directory contents
- ntfsresize: Resize an NTFS volume
- ntfsundelete: Find files that have been deleted and recover them
- ntfswipe: Write zeros over the unused parts of the disk
- ntfsdefrag: Defragment files, directories and the MFT
- ntfsck: Perform consistancy checks on a volume
- nttools: Command-line tools to view/change an offline NTFS volume, e.g. ntfscp, ntfsgrep, ntfstouch, ntfsrm, ntfsrmdir, ntfsmkdir
- ntfsdiskedit: Walk the tree of NTFS ondisk structures (and alter them)
Be careful with these utilities, they might damage the filesystem, or your hard disk !
With ntfsprogs installed (
sudo apt-get install ntfsprogs) you should execute the following commands in a terminal:
sudo ntfsfix /dev/partitionName
After this command you should expect the following output:
~$ sudo ntfsfix /dev/sdb3
Mounting volume... FAILED
Attempting to correct errors...
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... FAILED
Correcting differences in $MFTMirr record 0...OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
NTFS volume version is 3.1.
NTFS partition /dev/sdb3 was processed successfully.
After this step you should be able to access your external drive partition as usual, mount or use nautilus to access your files.