Skip to main content
View by: Most Recent | Topic | Community | Webloggers   
Monthly Archives:    

Blogs by topic: J2EE

• Accessibility • Ajax • Blogging • Business • Community 
• Databases • Deployment • Distributed • Eclipse • Education 
• EJB • Extreme Programming • Games • GlassFish • Grid 
• GUI • IDE • Instant Messaging • J2EE • J2ME 
• J2SE • Jakarta • JavaFX • JavaOne • Jini 
• JSP • JSR • JXTA • LDAP • Linux 
• Mobility • NetBeans • Open Source • OpenSolaris • OSGi 
• P2P • Patterns • Performance • Porting • Programming 
• Research • RMI • RSS Feeds • Search • Security 
• Servlets • Struts • Swing • Testing • Tools 
• Virtual Machine • Web Applications • Web Design • Web Development Tools • Web Services and XML 


J2EE

Just like the LongRangeValidator before the DoubleRangeValidator validates if the given value is within the given range, but then a range of doubles. Say you want to make sure your donors can donate as little as 1.00 but at most 250.00. <html xmlns:h="http://java.sun.com/jsf/html"  xmlns:f="http://java.sun.com/jsf/core">  <h:inputText value=...
on Sep 5, 2012
The LengthValidator is one of the standard validators that is specified by the JavaServerFaces specification. It allows you to verify (validate) if the proposed input (submitted value) on a given component is valid. Say you want to make sure the minimum length of a password is 6 characters and up to 12 characters. The example below describe how you would put this into a JSF page to make that...
on Sep 4, 2012
During the JSF lifecycle each input value can be validated. As such the JSF runtime allows you to write validators that will take care of that during request processing. Several standard validators are part of the standard JSF runtime. Note that the specification has been written with extension in mind so it is also possible to write your own validator and hook it up for request processing...
on Sep 1, 2012
While I don't normally blog about the exiting world of JVM command line options, this new 7.0 option, which allows you to rotate to a new GC log file, was just so exciting... err... not so widely published that I decided to share. Of course these options only apply when you've used the -Xloggc: option. The settings are; UseGCLogFileRotation, default value: false NumberOfGCLogsFiles, default value...
on Aug 20, 2012

Programming

JSR 359 has been accepted by Java SE/EE executive committee a month back. Please see the specification request for the content of this revision of SIP Servlet 2.0 specification. We have established a java.net project for cordinating and communicating the progress of the specification. The work is about to get started. At the moment, the expert group is being formed and some of the leading...
on Sep 3, 2012

Community

When my company, Amway Corp, makes a sale; somewhere, somehow a computerized transaction of that sale is created. This transaction is sent to a number of applications at Amway for processing. One such destination is our Java application. We created a capability, called the Transaction Monitor (or TM) to deliver transactions to our app. Our initial version of the TM worked well, but it was still...
on Aug 10, 2012
As we began our Java adventure at Amway Corp 10 years ago, one of the most important tasks we had to do was to create our Object Model. We had a variety of Java objects that we were planning to use in our application. How were they going to be "wired" together inside of the application? After 4 weeks of Object-Oriented, J2SE, J2EE training; we set out to define our Object Model. This model was...
on Jul 16, 2012
In order to successfully migrate our mainframe application to a Java/application server based solution, we had to figure out how to migrate our batch processes. We had a very good start, in achieving this, by utilizing the LaunchClient command and J2EE Client programs. It was just a matter of putting the remaining pieces together into a working solution. But we were running into a lot of trouble...
on Jul 2, 2012
For us at Amway Corp, a key part of creating batch processes, with Java, was using the LaunchClient command and J2EE Client applications. We felt we were very close to being able to run our Java batch processes on the application server. But more trials and tribulations were ahead of us. We created a J2EE Client application\program that would call a "hello world" EJB. After deploying the code to...
on Jun 29, 2012
Our first Java application (10 years ago) was a migration of a legacy application. The legacy application consisted of a number of screens and a number of batch processes. Migrating the screens to Java technology seemed straight forward. In theory, they would be a direct use of the MVC pattern (EJB, JSP, Servlet). Easy. But what about the batch processes? They didn't seem to fit the MVC pattern....
on Jun 24, 2012
JCertif 2012 Call for Papers Now Open -- http://www.jcertif.com! As some of you already know. The next edition of JCertif is coming and will take place on September 03th-09th in Brazzaville, Congo. If you have an interesting presentation idea, we want to hear from you! We invite you to share your Java experiences with the industry and community by submitting a proposal for this far from the «...
on Jun 6, 2012
During the initial architecture and analysis of our J2EE-based application, one Java issue generated a lot of attention on our team : Enterprise Java Beans or EJBs. Should we use EJBs? What flavor of EJBs should we use? At the time, we received no practical advice on EJB usage. We got a lot of general advice. "Use what is best for you, etc." Quite often, we were referred to a diagram with a lot...
on Jun 4, 2012
In the beginning, our development team had no Java experience at all. Most of us were mainframe developers with a decade or so of IT experience. We realized that not only did we need Java training, but we needed training on object-oriented concepts as well. It seemed like a very challenging goal to achieve. One of the reasons we chose our particular Java software tools vendor is because their...
on May 28, 2012
Release the newest version of the framework to persist objects in Apache Cassandra in easy way. Among improvement is the JPA annotations, also JPQL.   JCassandra jCassandra=persistence.createJCassandra("select * from Person"); List<Person> persons=jCassandra.getResultList(); table 1: sample using JPQL in Easy-Cassandra This version has the improvements below: Supporting...
on May 26, 2012
When we starting planning how we were going to use Java technology at Amway (10 years ago); we realized we had many decisions to make about standards to adopt, practices to learn, architectures to use, patterns to follow, etc. Fortunately for us, there were many sources of information to help us figure all of this out. Unfortunately for us, there were many sources of information to help us figure...
on May 21, 2012
10 years ago, when we were decided to use Java technology to create a new application, for use at Amway Corp; we thought it was sufficient to say, "We are using Java!". We were wrong... We quickly realized that there was Java 2 Standard Edition and there was Java 2 Enterprise Edition. Since we were architecting our application to run in an application server-based environment, we concluded that...
on May 14, 2012
Hello all. My name is Larry Fernandez and I am a Principal Software Developer in IT. I work for Amway Corp in Grand Rapids, Michigan. March 2012 was my company's 10-year anniversary using Java. We have over 1 million lines of J2EE code in production, with more on the way. I have been here since our "Java" beginnings and I have played many roles (developer, architect, project manager, etc.). We...
on May 9, 2012

Databases

Release the newest version of the framework to persist objects in Apache Cassandra in easy way. Among improvement is the JPA annotations, also JPQL.   JCassandra jCassandra=persistence.createJCassandra("select * from Person"); List<Person> persons=jCassandra.getResultList(); table 1: sample using JPQL in Easy-Cassandra Easy-Cassandra 1.0.8 Easy-Cassandra 1.0...
on Apr 21, 2012

Testing

This blog lists the tips, tricks and answers to some of the commonly asked questions on Embedded GlassFish. This list is not sorted in any order. As I recalled I just listed them out here, and will add more as I come across more tips n tricks. Which version of Maven is supported by Embedded GlassFish Maven Plugin? org.glassfish:maven-embedded-glassfish-plugin supports Maven 2 and Maven 3 (4.0-...
on Mar 19, 2012
This blog describes how to configure org.glassfish:maven-embedded-glassfish-plugin for deploying more than one application. There was a community request for this. Refer: http://java.net/projects/glassfish/lists/users/archive/2012-02/message/382 http://stackoverflow.com/questions/9280413/maven-embedded-glassfish-plugin-deploying-2-applications The following pom.xml snippet shows how to configure...
on Mar 18, 2012