Use Stack Variables Whenever Possible

2010-05-26T17:15:53+00:00 July 24th, 2003|Java|

When frequently accessing variables, you need to consider from where they are accessed. Is the variable static , on the stack, or an instance variable of a class? Where you store a variable has a significant impact on the performance of code that accesses it.

Understanding Sockets in Unix, NT, and Java

2010-05-26T17:16:11+00:00 May 26th, 2003|Java|

In software development these days, networks are all-important. For example, Sun Microsystems uses the slogan, "the network is the computer." IBM promotes a network-based business model called "e-business." It's taken for granted that programs talk to each other across the network. But just how do they do it? Surprisingly, a technology that is more than 15 years old still provides the foundation for most of today's connectivity at the application level. This technology is based on an idea called sockets.

The Evolution of Java Security

2010-05-26T17:16:24+00:00 May 24th, 2003|Java|

This paper provides a high-level overview of the development and evolution of Java security. Java is a maturing technology that has evolved from its commercial origins as a browser-based scripting tool. We review the various deployment environments in which Java is being targeted, some of its run-time characteristics, the security features in the current releases of the base technology, the new Java Development Kit (JDK) 1.2 policy-based security model, limitations of stack-based authorization security models, general security requirements, and future directions that Java security might take.

The Java International API: Beyond JDK 1.1

2010-05-26T17:16:33+00:00 May 24th, 2003|Java|

The designers of Java made the important design decision that all text would be stored in Unicode. This solves the problem inherent in most other text-handling schemes, of always having to juggle multiple, limited character encodings. It puts all languages on an equal footing, and makes the whole process of designing for worldwide products far easier. But proper support of international text requires far more than just storing characters in Unicode.

Using JDBC to Create Database Objects

2010-05-26T17:17:43+00:00 May 24th, 2003|Java|

This paper analyzes Java DataBase Connectivity (JDBC), an object-oriented approach to connecting to databases in Java. JDBC is an object-oriented wrapping and redesign of ODBC API that is easier to learn and to use and that allows one to write vendor-independent code for querying and manipulating databases. JDBC provides some fairly low-level methods for accessing databases, as well as more powerful objects for handling databases at a higher level of abstraction.

Wrapping DBMS Stored Procedures as Methods in Session EJB Components

2010-05-26T17:17:28+00:00 March 15th, 2003|Java|

Integrating Web application server and database management (DBMS) technologies is a common requirement for many new business applications. In this article, we'll explore one facet of that integration effort: how to design and develop methods in session Enterprise JavaBeans (EJB) components that wrap or invoke existing DBMS stored procedures. You should be familiar with the fundamentals of EJB technology, the Structured Query Language (SQL), and Java Database Connectivity (JDBC) to get the most from this article.

Use Synchronized or Volatile when Accessing Shared Variables

2010-05-26T17:17:35+00:00 March 9th, 2003|Java|

When variables are shared between threads, they must always be accessed properly in order to ensure that correct and valid values are manipulated. The JVM is guaranteed to treat reads and writes of data of 32 bits or less as atomic. This might lead some programmers to believe that access to shared variables does not need to be synchronized or the variables declared volatile.