I hope to enjoy it. It's really funny.
Website created to display information about Java World and Open Tech Notes
Thursday, July 26, 2007
Harry Potter Parody
I hope to enjoy it. It's really funny.
Monday, July 23, 2007
How you can improve your English Skills
About Speaking skill, you can use Skype Software to contact foreign people interested on improve their English Skills.
I hope to enjoy it. Have fun!!!
Wednesday, July 18, 2007
JavaDocs Generator Tools
Thursday, July 12, 2007
How to Enable SSL for OC4J on local server
- The first that you need to know is the path of the configuration directory of your OC4J instance. You can check that when your OC4J instance starts. See the following image.
- Open a prompt command and go to OC4J config directory. Here you will use SUN’s keytool to create the certificate. Type the following command line as it’s shown on the following screen shot.
- When you execute the command line, a couple of question will be prompted by keytool. Answer these questions as you please. A new file is created in the current directory (its name is sslfile) See the following screen shot
- If you don’t already have a secure-web-site.xml file in your OC4J config directory, create one by copying the existing http-web-site.xml and renaming the copy to secure-web-site.xml
- Edit secure-web-site.xml and add the following:
- Add secure=”true” to the website element.
- Use an available port. The default for SSL is normally 443, but you have to be a super user to use it, I therefore used (4443)
- Add the following lines inside the web-site element use the keystore name and password you used when creating the certificate.
The files should look like this:
- Edit the server.xml file and uncomment or add the following line:
- Save the changes. The server.xml file should look like this:
- Restart OC4J. Now OC4J will listen for both SSL request (port 4443) and non-SSL requests (port 8990). In my case the urls would be:
RSS Technical notes
The initials "RSS" are used to refer to the following formats:
- Really Simple Syndication (RSS 2.0)
- RDF Site Summary (RSS 1.0 and RSS 0.90)
- Rich Site Summary (RSS 0.91)
RSS formats are specified using XML, a generic specification for the creation of data formats.
RSS Elements
An RSS document consists of the following elements (On this document were named the most important).
- RSS: The rss element is the top-level element of an RSS feed. A feed that conforms to the RSS specification must contain a version attribute with the value "2.0". This element is required and must contain a channel element. The rss element must not contain more than one channel.
1.1 Channel: The channel element describes the RSS feed, providing such information as its title and description, and contains items that represent discrete updates to the web content represented by the feed. This element is required and must contain three child elements: description, link and title.
1.1.1 Description: The description element holds character data that provides a human-readable characterization or summary of the feed (required).
2.1.1 Link: The link element identifies the URL of the web site associated with the feed (required).
3.1.1 Title: The title element holds character data that provides the name of the feed (required).
4.1.1 Item: An item element represents distinct content published in the feed such as a news article, weblog entry or some other form of discrete update. A channel may contain any number of items (or no items at all). An item may contain the following child elements: author, category, comments, description, enclosure, guid, link, pubDate, source and title. All of these elements are optional but an item must contain either a title or description.
4.1.1.1 Author: An item's author element provides the e-mail address of the person who wrote the item (optional).
4.1.1.2 Category: An item's category element identifies a category or tag to which the item belongs (optional).
4.1.1.3 Title: An item's title element holds character data that provides the item's headline. This element is optional if the item contains a description element.
4.1.1.4 Comments: An item's comments element identifies the URL of a web page that contains comments received in response to the item (optional).
4.1.1.5 Description: An item's description element holds character data that contains the item's full content or a summary of its contents, a decision entirely at the discretion of the publisher. This element is optional if the item contains a title element.
4.1.1.6 Link: An item's link element identifies the URL of a web page associated with the item (optional).
Java API to make RSS
A Java API was found to construct the RSS in whatever of its versions. The name of the Project is Informa. This API is an Open Source Code.
Informa we enable you with a harmonized view on a news channel object model. Both channels and news items do have metadata assigned, it does not make any difference from which channel format they were originally retrieved (RSS 0.9x, RSS 1.0 / RDF, RSS 2.0, Atom 0.3 and Atom 1.0). Informa is in beta state, but it is quite stable and fully usable.
For more information