Sorry to send it again. This is an important issue. Have a look at the attached file. I have stuck here whether to reuse this sample or not. :-\

Lasantha Ranaweera wrote:
Hi All,

Past few days I have been upgrading JBoss to Apache Geronimo samples from v1.0 of the documentation to v1.1. As part of the upgrade procedure, when I was looking at one of the samples I found something that grabbed my attention in  the existing JBoss to Geronimo sample applications. Have a look at "JBoss to Geronimo - Security Migration" in following  url:
http://cwiki.apache.org/confluence/display/GMOxDOC10/JBoss+to+Geronimo+-+Security+Migration

Source code of this sample contains some proprietary license. So we can't do any editing this sample. Isn't it?

I'm quite new to the open source model, and AFAIK it should come with ASF license. Please correct me if I am wrong.


Thanks,
Lasantha Ranaweera




/*****************************************************************
 *   File: BusinessLogicEJB.java
 *   
 *   Date         Version   Author               Changes
 *   Oct.05,2005  1.1       Ivan Dubrov		     Created
 *
 *   Copyright (c) 2005, IBM Corporation
 *   All rights reserved.
 *****************************************************************/

package com.ibm.j2g.security;

import java.rmi.RemoteException;

import javax.ejb.EJBException;
import javax.ejb.SessionBean;
import javax.ejb.SessionContext;

/**
 * Business logic stateless bean.
 * 
 * @ejb.bean name="BusinessLogic" display-name="BusinessLogic bean"
 *           jndi-name="ejb/BusinessLogic" type="Stateless" view-type="remote"
 */
public class BusinessLogicEJB implements SessionBean {

	/** Serial version uid. */
	private static final long serialVersionUID = 4688250533090120601L;

	/**
	 * @ejb.interface-method
	 * @ejb.permission role-name = "uploader"
	 * 
	 * @return result message
	 */
	public String upload() {
		return "File successfully uploaded";
	}

	/**
	 * @see javax.ejb.SessionBean#setSessionContext(javax.ejb.SessionContext)
	 */
	public void setSessionContext(SessionContext ctx) throws EJBException,
			RemoteException {
		// Nothing...
	}

	/**
	 * Create method.
	 * 
	 * @ejb.create-method
	 * @ejb.permission unchecked="true"
	 * 
	 * @throws EJBException
	 * @throws RemoteException
	 */
	public void ejbCreate() throws EJBException, RemoteException {
		// Nothing...
	}

	/**
	 * @see javax.ejb.SessionBean#ejbRemove()
	 */
	public void ejbRemove() throws EJBException, RemoteException {
		// Nothing...
	}

	/**
	 * @see javax.ejb.SessionBean#ejbActivate()
	 */
	public void ejbActivate() throws EJBException, RemoteException {
		// Nothing...

	}

	/**
	 * @see javax.ejb.SessionBean#ejbPassivate()
	 */
	public void ejbPassivate() throws EJBException, RemoteException {
		// Nothing...
	}
}

Reply via email to