Tech

warning: Creating default object from empty value in /home/websites/www/jlowrey.com/wwwroot/modules/taxonomy/taxonomy.pages.inc on line 34.
jimlowrey's picture

Conversations with Beans

There are a few things I've been trying to get straight about Beans and Conversations with JBoss Seam. To that end I worked out these examples.

1)Stateless bean with number counter

package org.jlowrey.examples.sessionbeans;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.ScopeType;
@Name("Stateless")//this put's this object in "el" scope in the xhtml page.
@Scope(ScopeType.STATELESS)
public class Stateless {
    private int count = 0;
    public int getCount()
    {
	    count++;
	    return count;

jimlowrey's picture

MS Web Application vs. Web Site

Microsoft Visual Studio 2005 has two ways/conventions to structure the files in a web site. Web Application and Web Site. Web Site makes use of common idioms such as App_Code and App_Date folder so that the programmer doesn't have to specifically specify what is App Code and what is App Data. A Web Application on the other hand has to keep all that information in a build file.

Syndicate content