Java
Java Tools & Frameworks
Java Tools & Frameworks
The JSRs 299/330 are pretty interesting as they offer a nice way to use its flexible structure to easily add new features. For instance inside of the Apache implementation (Apache OpenWebBeans) there is already some extension that adds decent support for the JSF2.0 @ViewScoped annotation. The commit shows that the implementation of this wasn’t that of a big deal.
The Apache MyFaces and Apache OWB communities put together a wiki page to discuss more extensions. The endresult of this effort will be (most-likely) a new subproject of the “Apache MyFaces Extension” project. Note: This project currently hosts ExtVal (Validation-Framework) and ExtScripting
…click on the title to read the full article…
The Apache MyFaces project is very active on the JSF 2.0 front.
Recently the first alpha of the MyFaces 2.0 package has been released. Download the alpha here. Today, the Apache MyFaces Trinidad community also released the first alpha release of its JSF 2.0 efforts. Get the download here.
In the middle of January we expect to see the next alpha (or beta) of Apache MyFaces Core. The 2.0 package is pretty stable so far..
Enjoy!
I mentioned earlier that ADS is pretty much model driven and requires no extra sit-ups in the declarative view. It supports (currently) the following ADF components:
activeCommandToolbarButton
activeImage
activeOutputText
table
tree
All DVT components
Most examples that are viewable (or documented) provide an introduction on “How to combine ADS with collection-based data”. Let’s take a look on how to use activeOutputText with a Java Bean, as you may not have a model (or BAM).
Imagine a simple page that contains a ticker/counter. On the server-side a counter is updated every n seconds. We will use ADS to stream the data to the client. The part for the activeOutputText
…click on the title to read the full article…
In JSF 2.0 there is (optional) support for annotating JSF Managed beans, via the Faces Managed Bean Annotation Specification. Both Apache MyFaces and the SUN RI implement this specification.
With the advent of these two JSRs:
299 – CDI (Contexts and Dependency Injection for the Java(TM) EE platform)
330 – @inject (Dependency Injection for Java)
There is an ongoing discussion about the right annotation for the “JSF beans”.
I agree that a JSF 2.0 application should avoid using the @ManagedBean annotation. I prefer using the stuff that 299/330 are offering. The good news is that even Spring (in Version 3.0) does actually support the @inject
…click on the title to read the full article…
Oracle Technology Network published sample chapter SOA Management (Oracle Service Bus) of my Middleware Management book.
You can access the chapter at http://www.oracle.com/technology/books/pdfs/sample-soa-management.pdf
This book covers management of both Oracle Fusion Middleware (WebLogic/OC4J, SOA Suite, IDM, Coherence, Forms/Reports, etc. and non-Oracle Midddleware such as JBoss, Tomcat, Apache Http Server IBM WebSphere and Microsoft .Net/IIS, etc
You can purchase the book at Amazon at http://www.amazon.com/Middleware-Management-Enterprise-Manager-Control/dp/1847198341.
Also see details at http://www.packtpub.com/middleware-management-with-oracle-enterprise-manager-grid-control-10g-r5/book
When enabling Database Change Notification (DCN) a registration is created at the database level which requires it to closed when no longer required. Here is how to close an obsolete registration from JDBC in a case where you don’t have a valid DatabaseChangeRegistration object (for example a JVM crash).
1. Find the obsolete registration as shown below.
SCOTT@linux11g> select regid, CALLBACK, table_name from USER_CHANGE_NOTIFICATION_REGS;
REGID CALLBACK TABLE_NAME———- —————————————- ——————– 100
…click on the title to read the full article…
Normally I would create an EJB session bean to expose my Entity queries from my Entity beans, but I thought it would be easier to just create a Java Service Facade and expose that as a web service as shown below.
1. In my project create an “Entity from table” using the new object gallery item in the EJB node. In this example we use the classic DEPT table.2. Then edit your Dept entity to create another named query as shown below, as well as a toString method to display the bean.
….
@Entity@NamedQueries({@NamedQuery(name = “Dept.findAll”, query = “select o from Dept
…click on the title to read the full article…
Started setting up some coherence demos through ant, in doing so created a small template to work from which enables me to start a coherence cache server. With this you simply place your source code within the SRC directory and it will compile it, package it (once we add a package task), and run the cache server.
1. Firstly create a directory as follows , adding the files (build.properties, build.xml) and 2 directories (src, lib) as shown below.
Directory Name - start-cache-server
build.propertiesbuild.xmlclasses - DIRECTORYlib - DIRECTORYsrc - DIRECTORY
2. Ensure you have ant in your path.
D:\jdev\ant-demos\coherence\start-cache-server>ant -versionApache Ant version 1.7.0 compiled on December
…click on the title to read the full article…
I came across a curios bug where the WSDL uses HTTP Binding rather than SOAP Binding. This caused all sort of hell with the proxy wizard in JDeveloper, which I am working on, but I still ran into problems when I tried to run the client that was generated from the wsimport tool.
It turns out that the JAX-WS dynamic proxy client, the ones with the SEI, doesn’t support HTTP/REST out of the box. In order to have this working you need to add both a binding feature and to set the endpoint address. So you code looks something like this:
…click on the title to read the full article…
In the latest release of JDeveloper (11.1.1.2.0) we’ve added new declarative UIs to help simplify those most crucial and complex of SVN tasks - Merging and Branching. These SVN operations can be tricky. They involve ensuring that you pick the correct location in your repository, the correct revision, and mistakes can be costly and time consuming to fix.
Take a look at the wizard below. This is available whether you choose Merge Working Copy or if you want to Merge a single file. My top tip is that you should almost always use Merge Working Copy, especially if you are working
…click on the title to read the full article…