Revision 672:163de098320c src/gr/ebs/gss/server/ejb/ExternalAPIBean.java

b/src/gr/ebs/gss/server/ejb/ExternalAPIBean.java
1 1
/*
2
 * Copyright 2007, 2008, 2009 Electronic Business Systems Ltd.
2
 * Copyright 2007, 2008, 2009, 2010 Electronic Business Systems Ltd.
3 3
 *
4 4
 * This file is part of GSS.
5 5
 *
......
64 64
import java.util.Set;
65 65
import java.util.StringTokenizer;
66 66

  
67
import javax.ejb.EJB;
68 67
import javax.ejb.EJBException;
69 68
import javax.ejb.EJBTransactionRolledbackException;
70
import javax.ejb.Stateless;
71 69
import javax.ejb.TransactionAttribute;
72 70
import javax.ejb.TransactionAttributeType;
73 71
import javax.jms.Connection;
......
120 118
 *
121 119
 * @author past
122 120
 */
123
@Stateless
124
public class ExternalAPIBean implements ExternalAPI, ExternalAPIRemote {
121
public class ExternalAPIBean implements ExternalAPI {
125 122
	/**
126 123
	 * The default MIME type for files without an explicit one.
127 124
	 */
......
141 138
	/**
142 139
	 * Injected reference to the GSSDAO data access facade.
143 140
	 */
144
	@EJB
145
	private GSSDAO dao;
141
	private GSSDAO dao = new GSSDAOBean();
146 142

  
147 143

  
148 144
	/**
......
520 516
		return createFile(userId, folderId, name, mimeType, file.length(), file.getAbsolutePath());
521 517
	}
522 518

  
523
	/* (non-Javadoc)
524
	 * @see gr.ebs.gss.server.ejb.ExternalAPIRemote#indexFile(java.lang.Long, boolean)
525
	 */
526 519
	@Override
527 520
	public void indexFile(Long fileId, boolean delete) {
528 521
		Connection qConn = null;

Also available in: Unified diff