Skip to main content

J2EE Related Items on Java.net

Java EE LoadBalancer Project on java.net The Java EE LoadBalancer Filter is a pure J2EE Web Component for high traffic environments. Java Server Performance depends on CPU & Memory allocation of Traffic. Tuning Performance is also a borderline Process in reference to stability. Java EE LoadBalancer addresses this with Monitoring and Run-time Customizing of key parameters (response time & throughput). Traffic is directed among a Semaphore mechanism[from E.W.Dijkstra] to protect memory critical resources. Fail-over strategies are implemented and customizable while calibration process. Via jconsole essential Visibility into Java Web Transactions is supported across your Web Application infrastructure. You can identify performance problems and balance your Java Web Server. The LoadBalancer can be easily deployed over loadbalancer.jar registration in Web-Inf/lib directory of the Web Application and administrated in every Web Application using web.xml registration and configuration. The LoadBalancer runs on all Java Web Containers without any modification and requires a Servlet Specification 2.3 or later. The LoadBalancer supports HTTP and JMX Monitoring and JMX Run-time Customizing of LoadBalancer Parameters. Historical Profiling is supported via file logging using the java.util.logging facility. Using this loadbalancing practice is no hardware or software architecture changes required.
Axiom XMLHttpRequest Project on java.net Axiom XMLHttpRequest is an Enterprise XML Web Framework enables XML Transformations in Java Server using Streaming API for XML (StAX) & Axis2 Databinding Framework(ADB). The Framework extends the client-side JavaScript DOM XMLHttpRequest with XMLHttpRequestSchema and high performance StAX XML Processing on server-side. Parsing XMLHttpRequest to org.apache.axis2.databinding.ADBBean and serialize org.apache.axis2.databinding.ADBBean to HttpServletResponse in ServletContainer while JavaScript Request processing is implemented. Based on supported SchemaCompiler Tool we generate ADBBean from XMLHttpRequestSchema. A Demo Web Application is included in the Framework - explains how to progress JavaScript-XMLHttpRequest in Java Server Page. The Axiom XMLHttpRequest Enterprise XML Web Framework can be easily deployed over axiom-xmlhttprequest.jar registration in Web-Inf/lib directory of the Web Application. The Axiom XMLHttpRequest runs on all Java Web Containers without any modification and requires additional libraries from Apache ADB Project axiom_libs.
Java EE LoadBalancer Project on java.net The Java EE LoadBalancer Filter is a pure J2EE Web Component for high traffic environments. Java Server Performance depends on CPU & Memory allocation of Traffic. Tuning Performance is also a borderline Process in reference to stability. Java EE LoadBalancer addresses this with Monitoring and Run-time Customizing of key parameters (response time & throughput). Traffic is directed among a Semaphore mechanism[from E.W.Dijkstra] to protect memory critical resources. Fail-over strategies are implemented and customizable while calibration process. Via jconsole essential Visibility into Java Web Transactions is supported across your Web Application infrastructure. You can identify performance problems and balance your Java Web Server. The LoadBalancer can be easily deployed over loadbalancer.jar registration in Web-Inf/lib directory of the Web Application and administrated in every Web Application using web.xml registration and configuration. The LoadBalancer runs on all Java Web Containers without any modification and requires a Servlet Specification 2.3 or later. The LoadBalancer supports HTTP and JMX Monitoring and JMX Run-time Customizing of LoadBalancer Parameters. Historical Profiling is supported via file logging using the java.util.logging facility. Using this loadbalancing practice is no hardware or software architecture changes required.
HI I want to integrate image cropper in JSF using iceface1.8.Can any one help me how to integrate image cropping using JSF1.2 and Icefaces1.8 Thanks Santosh
Jump your career from Java Developer to Java Architect level and get higher salary - The Java EE 5 Enterprise (Java EE) architecture is the basis of most enterprise-level Web server products, With the Java EE specification, Java EE 5 Enterprise architecture ensure that compliant Web applications run on any Java EE-compatible server. The latest Java EE version (6.0) comes with powerful APIs to develop JSON based or SOAP web service platforms. <p> The Java EE 5 Enterprise (Java EE) architecture is the basis of most enterprise-level Web server products, With the Java EE specification, Java EE 5 Enterprise architecture ensure that compliant Web applications run on any Java EE-compatible server. The latest Java EE version (6.0) comes with powerful APIs to develop JSON based or SOAP web service platforms. </p> <p> <img src="http://www.java.net/sites/default/files/Java-Architect.png"><br> <em>Figure 1. Oracle Java EE 5 Enterprise Architect Certification</em> </p> <p> The Oracle Certified Master, Java EE 5 Enterprise Architect (SCEA/OCMJEA) certification shape up a Java developer/designer into next level of technology specialist, an Architect. </p> <p> The OCMJEA certification is for architects who can create the structure for Java EE 5 Enterprise application that can benefit from Java technologies to handle non functional requirements such as scalability, performance, availability, reliability, maintenance, etc. The certified architect can decide best technology/COTS components based on project needs. </p> <p> The major difference between an architect and programmer is that “programmer can deliver an application for single user usage without considering scalability and performance needs” but an architect design/develop an application for future scalability, maintenance and all other non functional needs. In simple terms: </p> <ul> <li>Developer : Develop an action (a submit button) for single user click</li> <li>Architect: Develop an action (a submit button) for more than 1000 concurrent user click or and above</li> </ul> <p> To succeed in Java Architect role, one must complete OCMJEA certification to acquire deep understanding and knowledge of appropriate uses of modern design architecture and latest Java EE technologies for business applications. </p> <h3>Java EE 5 Enterprise Architect Certification Importance</h3> <p> This certification provides Java architects for designing and leading Java EE application development for example: Application developers and architects who write Java EE applications, technical architects and senior developers tasked to lead and design Java EE applications (tiers, layers, subsystems, components and their interactions), and anyone interested in Enterprise Application Development and Integration. Software architects can able to understand and communicate high-level design concepts to developers under their direction. Thus the Java EE 5 Enterprise Architect Certification gives a lot of more important on design concepts. </p> <p> Java EE 5 Enterprise Architect Certification provides developers with knowledge needed to develop robust architectures for enterprise Java applications using the Java Platform, Enterprise Edition (Java EE) technology. The Enterprise Java applications developed using the architecture as a guideline can fit for rapid change and growth. By taking this certification, developers can get the deep understanding of the technical context of the Java EE and relevant technologies, and strategies needed to create application blueprints that work well when implementing Java EE technologies. </p> <h3>Steps to Archive OCMJEA Certification</h3> <p> To getting the Oracle Certified Master, Java EE 5 Enterprise Architect Certification requires that you complete these three steps : </p> <p> Part 1: Pass this Exam 1Z0-864, Java Enterprise Edition 5 Enterprise Architect Certified Master Exam (Step 1 of 3). It will test your knowledge about JEE and Design patterns </p> <p> Part 2: Complete this Assignment 1Z0-865, Java Enterprise Edition 5 Enterprise Architect Certified Master Assignment (Step 2 of 3). </p> <p> Part 3: Complete this Essay 1Z0-866 Java Enterprise Edition 5 Enterprise Architect Certified Master Essay Exam (Step 3 of 3). </p> <h3>SCEA/OCMJEA Certification Preparation Materials</h3> <p> There are many books and study materials to prepare for this certification. Selecting the book for effective reparation to study, following books for the certification which is recommended by certified professionals. </p> <p> Sun Certified Enterprise Architect for Java EE Study Guide (2nd Edition). by: Mark Cade, Humphrey Sheil. This book delivers complete, focused review for Sun’s new Sun Certified Enterprise Architect (SCEA) for Java EE certification exam—straight from two of the exam’s creators! </p> <p> <a href="http://www.epractizelabs.com/certification/sun/scea-5-part1-exam.html" target="">SCEA 5 Part 1 Certification Training Lab</a> by EPractize Labs, the product comes with 6 different labs (Pre-Measurement, Basic Sessions, Advanced Sessions, Session Rewind Quiz, Mock Exam Lab and Post-Measurement). You can download Trial and browse the components. Hope you can also love this product. </p> <p> <a href="http://www.epractizelabs.com/certification/sun/scea-5-part23-exam.html" target="">SCEA 5 Part 2 and 3 Certification Training</a> Lab by EPractize Labs, the kit provides six different assignment with complete design solutions to pump up your architecture knowledge and it also offers typical essay questions for Step 3. </p> <p> The Java EE 5 Tutorial (3rd Edition). by: Eric Jendrock, Jennifer Ball, Debbie Carson, Ian Evans, Scott Fordin, Kim Haase. This tutorial uses examples to describe the features and functionalities available in the Java EE 5 platform for developing enterprise applications. Whether you are a new or experienced Enterprise developer, you should find the examples and accompanying text a valuable and accessible knowledge base for creating your own solutions. </p> <h3>Java EE 5 Enterprise Architect Certification Step 1</h3> <ol> <li>Application Design Concepts and Principles - Tests your OO design language skills</li> <li>Common architectures - Tests the skills in evaluation of enterprise application tiers</li> <li>Integration and Messaging - Tests the architectural solution knowledge to connect Java EE with any legacy systems and architectural solution knowledge in synchronous and asynchronous message architecture</li> <li>Business Tier Technologies - Tests the design and basic API knowledge in EJB and JPA</li> <li>Web Tier Technologies - Tests the design and basic knowledge in WAF,JSP,Servlet,JSF and JSTL</li> <li>Applicability of Java EE - Tests the design decision knowledge about Java EE technologies</li> <li>Patterns - Tests the knowledge in design patterns</li> <li>Security - Tests various kinds of enterprise security including firewalls and DMZ</li> </ol> <h3>Java EE 5 Enterprise Architect Certification Step 2</h3> <p> A business problem will be given to you in the form of use case diagrams, business domain model, and statement format. The requirements will encompass both Functional and Nonfunctional requirements. You are requested to come up with an architecture for the given business problem to meet both the functional and nonfunctional requirements. </p> <p> It is a very challenging experience to get to know about Java EE Architecture best practices. Once you have completed your assignment, you need to upload your assignment into Oracle and it will be manually evaluated by technical authors. </p> <h3>Java EE 5 Enterprise Architect Certification Step 3</h3> <p> This is another stimulating test to verify your architectural knowledge about design decisions. Architecture can be implemented in many ways with different design decisions. The questions will be on why you have chosen this way and why not the other way. You need to answer with brief explanation. If you have completed Step 1 and Step 2, Step 3 will be straightforward and very easy to crack. </p> <p> The Java EE 5 Enterprise Architect exam does not require any pre-certifications from Oracle. So, if you decide to take Oracle Certified Master, Java EE 5 Enterprise Architect Certification, you can very well start without any prerequisite. Remember that beginning October 1, 2011, Java Architect and Java Developer certification path requirements will include a new mandatory course attendance requirement. </p> <h3>How much time I need to prepare for this exam?</h3> <p> EPractize Labs time estimator is used to calculate preparation time for </p> <ol> <li><a href="http://www.epractizelabs.com/certification-advisor/time-estimator.php?s=8">1Z0-864 Java EE 5 Enterprise Architect Certified Master Exam</a> (Step 1of 3)</li> <li><a href="http://www.epractizelabs.com/certification-advisor/time-estimator.php?s=9">1Z0-865, 1Z0-866 Java EE 5 Enterprise Architect Certified Master Assignment and Esay Exam </a> (Step 2of 3 and Step 3of 3)</li> </ol> <h3>Java EE 5 Enterprise Architect Certification Recommendations:</h3> <ol> <li>Understand exam objectives (topics covered)</li> <li>Identify the weakness areas (skills you are uncomfortable) and Focus your efforts on those areas</li> <li>Don&#39;t attend mock exams until you are familiar with the concepts. </li> </ol>
public String encrypt(String login_name, String password) { int login_number = this.getLoginNumber(login_name); newpasswordArr = new char[password.length()]; password.getChars(0, password.length(), newpasswordArr, 0); for (int i = 0; i < newpasswordArr.length; i++) newpasswordArr[i] = (char) (newpasswordArr[i] + login_number / 256 + i); System.out.println("encrypt() " + new String(newpasswordArr)); return new String(newpasswordArr); } private int getLoginNumber(String login_name) { int login_number = 0; char[] loginarr = new char[login_name.length()]; login_name.getChars(0, login_name.length() - 1, loginarr, 0); for (int i = 0; i < loginarr.length; i++) login_number += loginarr[i]; return login_number; } public String isAuthenticate(String username, String password, String orgshorname) throws SQLException { String authFlag = ""; String userId = ""; String userName = ""; String authResult = ""; Statement st1 = null; ResultSet rs1 = null; String propno = null; String ORG_ID = null; // MessageContext mc = wsContext.getMessageContext(); // session = ((javax.servlet.http.HttpServletRequest) mc // .get(MessageContext.SERVLET_REQUEST)).getSession(); // HttpServletRequest req = (HttpServletRequest) this.wsContext // .getMessageContext().get(MessageContext.SERVLET_REQUEST); // session = req.getSession(); // session.setAttribute("name", username); ; servletContext.setAttribute("application", username); if ((username == "" || username == null) & (password == "" || password == null) & (orgshorname == "" || orgshorname == null)) { String st = "please enter the username,passwordand orgnationname"; JOptionPane.showMessageDialog(null, st); } else if ((username == "" || username == null) & (password == "" || password == null)) { String st = "please enter the username and password"; JOptionPane.showMessageDialog(null, st); } else if (username == "" || username == null) { String st = "please enter the username "; JOptionPane.showMessageDialog(null, st); } else if (password == "" || password == null) { String st = "please enter the password "; JOptionPane.showMessageDialog(null, st); } else if (orgshorname == "" || orgshorname == null) { String st = "please enter the orgshortname "; JOptionPane.showMessageDialog(null, st); } else { try { String epass = this.encrypt(username, password); con = Connect.getConnection(); st1 = ((Connection) con).createStatement(); rs1 = st1 .executeQuery("select DBLINK_NAME,DBUSER_NAME,ORG_ID from tb_eip_centralize where ORG_SHORTNAME='" + orgshorname + "'"); System.out.println(rs1); while (rs1.next()) { DBLINK_NAME = rs1.getString(1); DBUSER_NAME = rs1.getString(2); ORG_ID = rs1.getString(3); } sql1 = "select empid,empname from " + DBUSER_NAME + "employee " + DBLINK_NAME + " where emppassword='" + epass + "' AND ORGID='" + ORG_ID + "'"; System.out.println(sql1); rs1 = st1.executeQuery(sql1); while (rs1.next()) { userId = rs1.getString(1); userName = rs1.getString(2); authFlag = "Valid User"; authResult = authFlag + "^" + userId; System.out.println(authResult); } if (userId == "" || userId == null) { String st = "please enter the valed userID and password"; JOptionPane.showMessageDialog(null, st); } } catch (Exception e) { authFlag = "Invalid User"; authResult = authFlag; System.out.println("Error in isAuthenticate() : " + e.getMessage() + " :Other :" + e.toString()); } finally { con.close(); } } return authResult; }
If you want to sort your Pojo classes via specific field probably you are facing issues like me. . But first of all lets review possible ways of sorting collections. Most simplier way to do that "Collections.sort(...); " or "Arrays.sort(...); " methods. Methods takes an argument and if the argument class implements Comparable interface then its returns a logical result. Java types suitable for sorting. But what about special POJO classes which you have implemented? Lets say you have list of "Stormtrooper" object for your universe and if you try to sort your objects you will be facing lovely exceptions from compiler. Because java.util.Collections or java.util.Arrays classes has no idea how to sort Stormtroopers and it needs little bit help from you. So lets see how to achieve that problem.