com.google.gwt.gears.Gears
Group items matching
in title, tags, annotations or url
1More
Online Java Training - Creating threads - 0 views
-
There are two ways to create threads. 1. Create Threads implementing Runnable interface 2. Create Threads Extending Thread class When to use Runnable interface Use Runnable interface when your class is extending some other class. Since in Java mulitple inheritance is not possible we use Runnable interface to create Threads.
1More
Steps to create a servlet example in tomcat server - 0 views
1More
Spring to Java EE - A Migration Experience | OcpSoft - 0 views
-
Does it all make sense now? Do you know how to solve every problem? Probably not, but when it comes right down to it, using Java EE can be even simpler than using Spring, and take much less time. You just have to find the right guides and the right documentation (which is admittedly a severe sore-spot of Java EE; the documentation is still a work in progress, but is getting much better, save blogs like this one.) You have to turn to a vendor like JBoss, or IBM in order to get the use-case driven documentation you need, and they do have documentation, it's just a matter of finding it. Seam 3 in particular strives to give extensive user-documentation, hopefully making things much simpler to adopt, and easier to extend. The main purpose of this article was not to bash Spring, although I may have taken that tone on occasion just for contrast and a little bit of fun. Both Spring and Java EE are strongly engineered and have strong foundations in practical use, but if you want a clean programming experience right out of the box - use Java EE 6 on JBoss Application Server 6 - JBoss Tools - and Eclipse. I will say, though, that the feeling I've gotten from the Spring forums vs the Java EE forums, is that there are far many more people willing to help you work through Java EE issues, and more available developers of the frameworks themselves to actually help you than there are on the Spring side. The community for Java EE is much larger, and much more supportive (from my personal experience.) In the end, I did get my application migrated successfully, and despite these issues (from which I learned a great deal,) I am still happy with Java EE, and would not go back to Spring! But I do look forward to further enhancements from the JBoss Seam project, which continue to make developing for Java EE simpler and more fun. Don't believe me? Try it out. Find something wrong? Tell me. Want more? Let me know what you want to hear.
125More
Organize Projects - Google Web Toolkit - Google Code - 0 views
-
- ...118 more annotations...
-
when the onModuleLoad() of your first entry point finishes, the next entry point is called immediately.
-
path=
-
class="
-
all included scripts will be loaded when your application starts, in the order in which they are declared.
-
If you wish to create a reusable library that relies upon particular stylesheets or JavaScript files, you can be sure that clients
-
The body.onload() event will only fire once all external resources are fetched, including images and frames.
-
onload='alert("w00t!")
1More
Use of Constructors - Online java tutorial | Learn java - Merit Campus - 0 views
1More
shared by Javin Paul on 21 Jan 12
- No Cached
URL Encoding vs URL Rewriting in JSP and Servlet - 0 views
javarevisited.blogspot.com/...g-url-encoding-in-servlet.html
jsp servlet programming internet development

1More
Maven Archiver Plugin JAR WAR Manifest - Reference - 0 views
1More
JAnnocessor is a new open-source framework for powerful, flexible, yet easy processing ... - 0 views
-
"JAnnocessor is a new open-source framework for powerful, flexible, yet easy processing of annotated Java code. Its main purpose is compile-time, annotation-driven source code generation in a declarative and customizable fashion. JAnnocessor is built on top of Java APT, encapsulating the Java source code model in a rich and convenient high-level domain model that serves as a good target for expressive matching and transformation. Finally, a template engine is used for customizable template-based source code generation. Having simplicity and productivity in mind, JAnnocessor has many useful features that make it enjoyable: smart imports organization, logging delegation, graphical UI for real-time debug, hot swap of processors and templates, as well as out-of-the-box common annotations, processors and templates."
1More
Saga EDA pattern - distributed transaction coordinator manager - SOA patterns - Reserva... - 0 views
-
"Unfortunately, in a distributed world, SOA or otherwise, it is rarely a good idea to use atomic short lived transactions (see the Cross-Service Transactions anti-pattern in chapter 10 for more details). Indeed, the fact that cross service transactions are discourages is one of the main reasons we would to consider using the Saga pattern in the first place. One of the obvious shortcomings of Sagas is that you cannot perform rollbacks. The two conditions mentioned above, locking and isolation do not hold anymore so you cannot provide the needed guarantee. Still, since interactions, and especially long running ones, can fail or be canceled Sagas offer the notion of Compensations. Compensations are cool; we can't have rollbacks so instead we will reverse the interaction's operation and have a pseudo rollback. If we added one hundred (dollars/units/whatnot) during the original activity we'll just subtract the same 100 in the compensation. Easy, right?"
1More
Articles | OcpSoft - JSF2 | SEO | Bookmarking | Java | Best Practices | Agile - 0 views
-
"The PrettyFaces team is currently working on an alternative way to configure URL mappings. PrettyFaces will soon allow to use annotations instead of the classic XML configuration file to declare mappings. We encourage everyone interested in PrettyFaces to take a look at this new way of configuration and share his or her opinion with us."
1More
shared by Hendy Irawan on 03 Oct 10
- Cached
www.qi4j.org - www.qi4j.org - 0 views
www.qi4j.org
architecture complexity composite dev design development di domain opensource programming ddd modeling aop framework java spring osgi sca newton infiniflow for:wongacid for:febru for:ariekusumaatmaja for:tomfreakz qi4j

1More
SLF4J - 0 views
-
The Simple Logging Facade for Java or (SLF4J) serves as a simple facade or abstraction for various logging frameworks, e.g. java.util.logging, log4j and logback, allowing the end user to plug in the desired logging framework at deployment time. Before you start using SLF4J, we highly recommend that you read the two-page SLF4J user manual. In case you wish to migrate your Java source files to SLF4J, consider our migrator tool which can migrate your project into SLF4J in minutes. In case an externally-maintained component you depend on uses a logging API other than SLF4J, such as commons logging, log4j or j.u.l, have a look at SLF4J's binary-support for legacy APIs.
8More
JDBC 4.0 Enhancements in Java SE 6 - 0 views
-
In JDBC 4.0, we no longer need to explicitly load JDBC drivers using Class.forName(). When the method getConnection is called, the DriverManager will attempt to locate a suitable driver from among the JDBC drivers that were loaded at initialization and those loaded explicitly using the same class loader as the current application.
- ...4 more annotations...
-
JDBC 4.0 Enhancements in Java SE 6 Java Platform, Standard Edition (Java SE) version 6 (code name Mustang), is currently in its second beta release and is scheduled to be delivered in October of this year. Java SE 6 includes several enhancements to the Java Database Connectivity (JDBC) API. These enhancements will be released as JDBC version 4.0. The main objectives of the new JDBC features are to provide a simpler design and better developer experience. This article provides an overview of the JDBC 4.0 enhancements and what benefits they offer to enterprise Java developers. We will explore the new JDBC features with the help of a sample loan processing application using Apache Derby as the back-end database.
1More
Java EE 6 and Scala » Source Allies Blog - 0 views
-
Last weekend while pondering the question "Is Scala ready for the enterprise?" I decided to write a simple Java EE 6 app entirely in Scala, without using any Java. I had three main reasons for doing this: one was just to see how easy/difficult it would be to write everything in Scala (it was easy). Another was to document the process for others journeying down the same road (the entire project is on github). Finally, I wanted to identify advantages of using Scala instead of Java that are specific to Java EE apps (I found several). Background The specific app I created was an adaptation of the Books example from Chapter 10 of Beginning Java™ EE 6 Platform with GlassFish™ 3. It's a simple web app that displays a list of books in a database and lets you add new books. Although it's a pretty trivial app, it does touch on several important Java EE 6 technologies: JPA 2.0, EJB 3.1 and JSF 2.0.
1More
shared by Paul Sydney Orozco on 26 Nov 10
- No Cached
http://www.adobocode.com/spring/marshallingunmarshalling-java-objects-into-xml-file-usi... - 0 views
www.adobocode.com/...into-xml-file-using-spring-oxm
marshall marshalling unmarshall unmarshalling java Object XML File OXM framework document serialization deflating storage deserialization inflating structure XMLMarshall Marshaller Unmarshaller Castor O_X mapping JAXB JiBX XMLBeans XStream

-
The release 3.0 of Spring Framework added the Spring Module OXM which supports the marshalling and unmarshalling of Java objects and XML documents.In this post, we will be using Spring OXM to take a Java object, convert it to a XML-format and save it in the hard-disk as an XML file containing information of that Java object. We will also cover how to retrieve back the serialized state of that XML file and reconstruct it back to it's original state as a Java object.
1More
shared by Paul Sydney Orozco on 25 Nov 10
- No Cached
Tutorial On Spring with Hibernate and Java Persistence API - 0 views
www.adobocode.com/...ing-with-hibernate-annotations
spring hibernate annotations hbm.xml Entity Table Id Column mysql tutorial

-
Sample of using Hibernate Annotations by reducing XML configuration files thus making it simpler to define required metadata directly into our Java code. When using annotations, we no longer need the additional mapping file (*.hbm.xml). The metadata for the ORM is specified in the individual classes.
1More
shared by Paul Sydney Orozco on 25 Nov 10
- No Cached
How to Use @Required Annotation in Spring - 0 views
www.adobocode.com/...-required-annotation-in-spring
Required spring framework java BeanInitializationException bean

1More
squill: Home - 2 views
-
Squill is a slick internal DSL for writing SQL queries in pure Java. It uses the database metadata and generics to catch as many errors as possible during compilation and is almost completely typesafe. At the same time it is designed to allow everything SQL allows you to do, exactly the way SQL is meant to do it. This means that you're encouraged to select only the data you need and no hidden queries are generated for you, leaving you in full control of the query performance. Squill also supports database-specific extensions, allowing you to both use advanced features and fully tweak your queries.