Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to create/compile a Stateless Session Bean in Eclipse?

868795Jun 20 2011 — edited Jun 22 2011
Hi,

I am trying to create an EJB in eclipse, which is to be deployed on Weblogic Server for Weblogic Tuxedo Connectivity. I have a service by name of CashSrv on the Tuxedo Server and I need to call a method of this service remotely via my EJB. My Code for the it looks like this:

===================================================================================
import javax.naming.Context;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.ejb.CreateException;
import weblogic.ejb.GenericSessionBean;
import weblogic.wtc.gwt.*;
import weblogic.wtc.gwt.TuxedoCorbaConnection;
import weblogic.wtc.gwt.TuxedoCorbaConnectionFactory;
import weblogic.wtc.jatmi.RMIReplyRequest;
import weblogic.wtc.jatmi.*;
//import weblogic.wtc.jatmi.TPReplyException;
import weblogic.wtc.jatmi.Utilities;
//
//import weblogic.ejbgen.*;

@FileGeneration(remoteClass = Constants.Bool.TRUE,
localHome = Constants.Bool.FALSE,
remoteHome = Constants.Bool.TRUE,
remoteClassName = "CashSrv",
remoteHomeName = "CashSrvHome",
localClass = Constants.Bool.FALSE)
@JarSettings(ejbClientJar = "wtc_cashsrv_client.jar")
@JndiName(remote = "tuxedo.services.CashSrvHome")
@Session(idleTimeoutSeconds = "600",
maxBeansInCache = "100",
transTimeoutSeconds = "0",
type = Session.SessionType.STATEFUL,
defaultTransaction = Constants.TransactionAttribute.SUPPORTS,
ejbName = "CashSrv")

public class CashSrvBean extends GenericSessionBean {

*********************************
class implementation here
*********************************

===================================================================================
I get an error "<Type cannot be resolved>" for
@FileGeneration
@JarSettings
@JndiName
@Session

I will really appreciate any help to quickly fix these errors .

Thanks & Regards,
Awais
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 20 2011
Added on Jun 20 2011
1 comment
199 views