Schlagwörter » Java EE

Displaying an HTML Page inside a Vaadin 6 Application

In a recent use case I was working, I had to call a webservice that returned an html page and show it using Vaadin 6. noch 717 Wörter

Java Ee

Create and Use Datasources in Apache Tomee 1.7.2 with H2 Database

I am creating a project using Apache Tomee as my development application server, because it is so fast to init and to deploy applications.

But I found that it is more strict than WebLogic, specially for defining and using resources like Queues and Datasources. noch 577 Wörter

Java Ee

Java EE Batch Framework - Step 10 Processing Multiple URLs

Processing Multiple URLs

Up to now, we have just been processing a single URL and not really taking advantage of the batch partition.  In the last step, we update the code to take advantage of the partition. noch 163 Wörter

MongoDB

Java EE Batch Framework - Step 9 Writing to MongoDB

Writing to MongoDB

1)      Add the MongoDBJava driver as a library to your project.

2)      Create a property file to place connection information.

3)      Create properties within the property file that define the server host name, ports, and authentication information to connect to the database. noch 91 Wörter

MongoDB

Java EE Batch Framework - Step 8 The Parser

The Parser

A parser is needed to take the HTML (doc) and turn it into the product object.  Creating an interface since we could have different parsers and not just one for the site.  noch 166 Wörter

MongoDB

Java EE Batch Framework - Step 7 Create the Entities

Create the Entities

Because we are crawling a site to get product data, it makes sense to create a product entity. Multiple products exist on one HTML page (doc) so a product container (products) will also be helpful. noch 76 Wörter

MongoDB