devxlogo

Tip Bank

Look Up a Bean Interface in EJB 3.0

In principle, in EJB 3.0, you can access a bean from another bean by looking it up in the interface (local or remote). Here are two solutions for doing that:

The #flastmod and #fsize Server-side Includes

The #flastmod and #fsize server-side includes provide important information on web pages hosted by classic ASP web sites. The #flastmod include prints the date when the file was last modified.

Using ANYDATA in Oracle 9i

First introduced in Oracle 9i, ANYDATA is a “self-describing data instance type” which means it not only holds the value, but it also holds its own data type within each

In-memory JDBC Driver Details

When you’re working with JDBC, you can load more than one JDBC driver in memory. To find out how many drivers are in memory, along with other useful driver information,

Determine Whether a URL Is Valid

Use this Boolean function to determine whether a URL is valid: public static bool checkUrl(string url) { bool rt = false; if (url.StartsWith(“www.”)) { url = “http://” + url; }

When to use ORDER in Sequences in PL/SQL

You may need to use ORDER to force sequence numbers to be output in the order of request when you’re using them for timestamping. Most of the time, your sequence

Does Your RDBMS Support Savepoints?

Before using savepoints in your application, you need to be sure that your RDBMS supports this facility. To do this, call the DatabaseMetaData.supportsSavepoints method, like this: Connection conn=null;DatabaseMetaData dmd=null;…try{ dmd=conn.getMetaData();