Owner: Development Blog URL:http://www.jeveloper.com/blog Join Date: Thu, 08 Mar 2007 14:20:40 -0600 Rating:0 Site Description: From developer to developer, this blog reviews different interesting and emerging technologies.
You will find various articles on topics that are interesting for Java or .NET or even PHP developers. Site statistics:Click here
Datetime, calendar manipulation using c# 2007-03-08 19:00:00 Most developers face a time when they need to subtract or add a number of days, months or years to a given date.
You obviously don't do these operations very often so one tends to forget how to do it at all.
Well this is how:
Read onRead more...
Properly closing Database Connection C# way 2007-03-07 19:28:00 Most of us , developers, are quite a lazy bunch, well aren't we all?
How do you close and dispose your database connection objects?
I have a seen a lot of developers do this:
try{
this.cmd.Connection.Close();
this.cmd.Connection.dispose();
}catch{
}
Not only can this throw an exception which obviously will be caught but it simply tells CLR to do more job than a simple check if object is null or not and if not wheather it is Open or not.
Read on for a nicer way that anyone should pratice.Read more... Read more:closing
, Database
Distributed way to integrate php and J2EE 2007-03-05 23:47:00 Php being the most adopted scripting language mainly running on Apache web servers.
What could be in common with Java?
Well , nothing except that the latest php 5.0 has borrowed the same syntax.
Integration between the two languages is not something new, there are bridge libraries that allow php to use and invoke Java classes via special methods, although it has its own problems and limitation.
Let's get to the bottom of it. The most distributed way in J2EE world is the implementation of EJBs , allowing millions of transaction at the same time where scalability is the key.
A lot of companies might also have .NET modules and J2EE modules , possibly integrated via SOA (web services) and in some cases such as banks , JMS.
JMS - java message service
Let us assume that a web application written entirely in PHP which is quick enough, needs to use an existing Service written in Java.
Exposing certain methods as web services is not always an option.
www.caucho.com/resin-3.0/jms/tutori Read more:Distributed
Are you looking for Java jobs? 2007-03-02 01:31:00 I've recently visited a Philadelphia Java User Group site that was relaunched and noticed who sponsored the site and where it was hosted.
JSync
www.jsync.com/hot-jobs/Read more...
The Father of Java receives Order of Canada 2007-02-22 21:59:00 An engineer who has been involved with design and architecture of Java over 10 years ago has been named an officer of the Order
of Canada
.
Read more on CBC
www.cbc.ca/technology/story/2007/02/21/tech-20070221.html
"The Order of Canada recognizes outstanding lifetime achievement and contributions to society and the country by Canadians from all walks of life."Read more... Read more:Father
Java 6 Final release 2007-02-22 05:43:00 Numerous improvements and additions indeed.
Read more on
java.sun.com/javase/downloads/index.jspRead more... Read more:Final
JSR 221 JDBC 4.0 API specification final release 2007-02-21 05:51:00 This specification seeks to improve Java application access to SQL data stores through improvements at both the utility and API level.Read more...
Limiting JVM on Virtual Private Servers (VPS hosting) 2007-02-16 16:23:00 If you are planning or already own a VPS and would like to setup a J2EE server on it but you're having problems with limiting ram allowed for JVM this tutorial is right for you.
VPS is definitely a affordable choice of running a J2EE server.
Unlike the Private
Server where you are the master of domain and all the CPU power as well as all of the RAM available belongs to you, VPS shares the CPU, RAM, space with other users ( not that many as on Shared Hosting).
If your simple command:
[blah@blah]# java -version
Throws you ugly:
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
You're in for a treat, read ON.Read more... Read more:Limiting
, Virtual Private
Building high performance Network Application 2007-02-16 15:41:00 Finding helpful libraries when deciding to build a network application may not be so easy.
Here is what i would recommend if you want to build some application that might utilize multiple machines (nodes in cluster). Read more... Read more:Building
, Application
Free app to keep your timesheet 2007-02-16 00:14:00 StopWatch
"Stopwatch is a platform independent timesheet recording application that may be used to track the time you spend on clients, projects and tasks. You can also generate reports from your timesheets by using one of the predefined templates, or from one you create yourself."
stopwatch.dev.java.net/Read more...
Using Java to work with Excel files 2007-02-15 22:56:00 Here is nice set of API(s) to work with multiple types of data formats.
One of the most common is Excel
(xls)
Read more on specific MS Excel here : http://jakarta.apache.org/poi/hssf/quick-guide.html
jakarta.apache.org/poi/hssf/quick-guide.html
For different other types of data formats , see:
http://jakarta.apache.org/poi/Read more... Read more:files
, Using Java
What to expect from NetBeans Enterprise Pack 5.5.1 2007-02-13 21:41:00 I'd like to share what is coming up in a few months from Sun's NetBeans
team.
If you or your company requires ESB (enterprise service bus) , you might want to check out Open ESB project and utilize NetBeans Enterprise Pack for development.
The following is the list of new features in NetBeans Enterprise Pack 5.5.1:
Composite Application Service Assembly Editor. Connect endpoints of Service Units, add and remove connections between Service Units.
Graphical WSDL Editor. Create WSDL documents easily.
XSLT Editor. Visually edit transformations.
Binding Components. File, FTP, HTTP, JDBC, JMS, WebSphere MQ, and SMTP binding components.
Intelligent Event Processor. Collect and process business events in real time.
Web Services Interoperability Technologies (WSIT). Enable interoperability with .NET services.
Read more...
Introduction to SQLJ 2007-02-13 03:34:00 I've written this a while back.
Some developers might find it to be a nice and quick (quick and dirty) way to create applications.
Embedding SQL solves lots of hassle when dealing with SQL statements inside Java code.
Enjoy:
http://www.developer.com/db/article.php/3556006Read more... Read more:Introduction
Oracle on Glassfish 2007-02-13 03:31:00 I've written a small tutorial with some nice visual effects on how to Setup DataSource and Connection Pooling to Oracle
Database on Glassfish App Server (Sun Application Server)
Just go to this url:
jeveloper.com/docs/glassfish_oracle.html
Please leave a comment, i can help you or comment.Read more...
Sun Studio 12 2007-03-13 02:23:00 I've recently been invited to join an Early Access program by Sun Microsystems to give it a try and hopefully find bugs or suggest changes.
It's always a great opportunity to try a new product for anyone developing high performance applications usually developed in C++ although it Java and Fortran.
I once went to a Solaris Day and found out a lot of interesting things about Solaris and Sun Studio
11.
I am certain that any serious and i mean Serious engineer would want to use this free and lovely developer tool.
Here are some of the features i am happy to announce will appear in the new 12th version:
Parallelizing C, C++, and Fortran compilers
Code-level debugger
Memory debugger
Performance profiling
OpenMP support
new IDE look and feel
Optimized libraries
Thread analysis
Next-generation IDE based on NetBeans 5.5.1 software
Improved binary application performance for all platforms—SPARC and x86/x64
Easy and free migration workbench from MS Access,MySQL, SQL Server to Oracle 2007-03-06 21:47:00 Oracle went head to head with Sun to give away their products freely.
One of the nicest product is Oracle JDeveloper (NOT jeveloper) for JSF, JSP, Swing, EJB, etc component building. It used be a pretty expensive tool but now its free.
Any developer working closely with a database needs a visual tool to deal with queries, oracle somewhat recently has open sourced Oracle SQL
Developer (former name Raptor) to do just that.
Besides that , today I've received an upgrade from Oracle SQL Developer allowing me to install a Migration Workbench , pleasantly surprised i can now migrate almost from any database to Oracle. Not only does it migrate tables and data, its capable of migrating Users and convert T-SQL to PL/SQL, how great is that?
Read on oracle's site
www.oracle.com/technology/tech/migration/workbench
/index.htmlRead more... Read more:Access
, MySQL
, Oracle
, SQL Server
Win Ipod nano 2007-03-17 19:47:00 Sun is promoting its new Sun App Server 9.1 (one of the Glassfish builds) and wants everyone to try it, to make it worthwhile you could win Ipod Nano once you install it and run its admin console which is 3-4 minute job.
Simply follow the link below :
communications1.sun.com/r/c/rRead more...
Steal our code by Sun Microsystems 2007-03-25 05:59:00 Sun at least in the recent few years has been an active contributor to Open Source community so it doesn't really sound strange. A bit over a year ago Sun open sourced its famous Solaris Operating System , based on 10th version hence the Open Solaris was born.Read more... Read more:Steal
, Microsystems
, Sun Microsystems
How do you manage various containers? 2007-03-24 04:18:00 I usually develop on Sun Application Server which comes with SDK and Netbeans in a bundle, but unfortunately i don't have the luxury of running a Sun App Server on my host so i have to redeploy on Jboss to see how it goes.
Most web developers might even use tomcat or jetty or geronimo, in reality the choice is yours.
But do you manage deployment, undeploy and other operations, since each one is totally different from each other.
I found an interesting project:
Cargo
cargo.codehaus.org/HomeRead more...
Want to stay on Cote De Azure for 30Euro/night for 3 people? 2007-03-25 19:00:00 I know i have and have stayed within nice budget.
Everyone perceives Europe as something unreachable and super expensive, it is in some parts but if you are a smart traveler then you will not run out of money on the first day upon arrival.
Read more, you won't regret and will save.Read more... Read more:people
Saving a database an extra round trip, update when needed 2007-03-26 20:20:00 Before even begin, if your project deals with a database directly without any Hibernate or ORM like software this is for you.
Also it is important to note that ViewState must be enabled on the page we're about to change.
ViewState in short terms a hidden encrypted input field on your page essentially.
What's it useful for? If you are making some sort of changes to e.g. Drop Down List or a Calendar, you might want to know if a certain field has been changed by a user.
E.g. A user selected a different value in the Drop Down List, hence upon hitting a button "Update" your code would know that drop down list has changed its Index.
How?
1. To store an initial value of component (e.g. Drop down list) , you should do like this:
if (!IsPostBack)
{
ViewState["ddlindex"] = this.ddlSomething.SelectedIndex;
}
2. Upon updating simply check the ViewState for that id, if the information in the ViewState is different then the current one, you should update, otherwis Read more:Saving
, round
Sun's Project Black box - virtualized data center , on wheels? 2007-03-29 17:17:00
It may look like a container with a nice design, not just a coloured box but from the looks of it, it is a sticker with a huge Sun logo on it. Well after all it is still a Shipping container, but what of it?
It seems and feels that this would be how data centers will be in the next decade.
An efficient monster that will support all of the IT needs for a given sector.
It is stuffed with the latest servers that not only super fast but also energy efficient which became a new race among IBM, HP, SUN hardware creators. But SUN surprised them all, now you could take your Data Center on wheels and move it to your garage :))
Well , no, you won't unless you have a backbone running towards your house and a nice little power generator. But companies might benefit from this project.
Let's have a look at what this "container" has in stock for us?
Read On, you will be shocked.
Read more... Read more:Project
, Black
Free Broadband service from Google? 2007-04-02 02:26:00 I was a little surprised to see this on google.com
http://www.google.com/tisp/install.html
Enjoy
:)))
heheRead more... Read more:Google
Sorting non-English alphabets 2007-04-01 17:49:00 One might need to sort an alphabet that in some internationalized application according to the current Locale.
A good tutorial i found on this matter by Sun: Customizing Collation Rules
That will allow you to sort properly words and letters that are not English
.
Here is the link:
http://java.sun.com/docs/books/tutorial/i18n/text/rule.html
java.sun.com/docs/books/tutorial/i18n/text/rule.htmlRead more... Read more:Sorting
Own your own google 2007-04-04 01:00:00 We have no doubt that google is the best search engine for most of our needs.
Now any company (of any size) can use its engine to search it's documents with the appliance and software from Google itself.
See the link:
www.google.com/enterprise/mini/Read more...
Buggy MSN Live 2007-04-07 00:11:00 Anyone would simply die laughing when seeing this.
If you are a MSN user , you probably have been bombarded every time with a message that a new version of MSN came out, and at some point you will give in and install that version.
What i really hated about MSN Live:
- The MSN team definitely did not do it's homework in migration
My groups were disordered and old ones appeared once again that i deleted years ago.
I have no idea where it came from, even old contact that i banned or deleted.
It was a MESS i tell you.
- These pesky message regarding approval of someone seeing my profile updated? The whole notion is strange, i could care less of it.
And the best part, when i clicked on Pending Requests , i got this popup window that contained a few profiles that somehow ( for them) requested my approval on updates.
I decided to see who the person is and clicked on the View Profile that was supposed to show me some icon and quick info
and this is what i got:
Read more... Read more:Buggy
A JDBC 4.0 Tutorial 2007-04-10 22:55:00
Finally a nice tutorial
today.java.net/pub/a/today/2007/04/10/whats-new-in-jdbc-40.html
Mainly exploring the new features and discussing whats new.
EnjoyRead more... Read more:Tutorial
Ever visited Kremlin? 2007-04-10 03:22:00
It's quite interesting to see around the Kremlin
and you can easily do so here:
www.openkremlin.ru/open.html
Although it is a Russian site, i am certain anyone will figure out what to do, some notes for non-Russian speakers:
- The play button is actually to hear a story behind what you are watching, not a movie
The site works well in IE
Another rather interesting project :
www.kreml.ru/main_en.asp
All the history and many displays that you can see and educate yourself a little :).
Enjoy the virtual visit.
Read more...
Sun's new UltraSPARC T2 CPU 2007-04-20 19:41:00 " Meet the forthcoming 64-thread UltraSPARC T2 CPU. With twice as many threads as the chip in Sun Fire CoolThreads servers, it raises the bar for energy efficiency and massive throughput. Get a preview of Sun's next processor, and insights into which of Sun's three server lineups is right for your application areas"
Read more...
New upcoming Solaris 10 upgrade 4 2007-04-19 22:03:00 I've been invited to join a new beta program since i used to be a beta tester of first betas of Solaris
10 and now Sun is looking for beta testers again to test the new releases.
One of the things that i really enjoy about Solaris 10 (latest one) is the free Sun Star Office 8 which is of equal quality to Microsoft Office and has a neat button to generate PDF document, reads MS Doc files.
Not only that , Solaris simply works faster then windows or linux.
The new or enhanced features in S10 7/07 Beta Release to be tested include but are not limited to:
Improved integration of Resource Management into Solaris Containers
Solaris Containers for Linux Applications
Firefox 2.0 Browser
Thunderbird 2.0 Beta 2 E-mail client
PostgreSQL 8.2 for Solaris
Quagga routing suite
Multi-MAC address support
IP Instances - LAN and VLAN separation for Zones
Improved Networking Performance
Advanced Netw Read more:upgrade