I changed to Atmlink as you said but the behaviour is the same.
(I have tried to simplify the code so that is almost the same as
Mandelbroat, and i forgot to change this)
Thanks
Stratis
> -----Original Message-----
> From: danch [SMTP:[EMAIL PROTECTED]]
> Sent: �������, 17 ������� 2000 15:06
> To: jBoss
> Subject: Re: [jBoss-User] Stateless Bean not recognized
>
>
> Your home interface's create method is declared returning
> ATMLinkAccessor: should this be Atmlink?
>
> ARAVIAS EFSTRATIOS wrote:
> >
> > I try to create a stateless bean, but when i deploy it i notice
> > that it is not recognized as a bean :(
> >
> > I was based on Mandelbroat example, and builded my own "Atmlink".
> > Mandelbroat is deployed as bean, mine is not!
> >
> > ====>> Console output of jboss
> > [Auto deployer] Starting
> > [Auto deploy] Auto deploy of
> file:/D:/jboss/jboss/dist/deploy/Atmlink.jar
> > [Container factory]
> Deploying:file:/D:/jboss/jboss/dist/deploy/Atmlink.jar
> > [Container factory] Checking for Beans... (DEBUG)
> > [Container factory] Deployed application:
> > file:/D:/jboss/jboss/dist/deploy/Atmlink.jar
> > [Auto deploy] Auto deploy of
> file:/D:/jboss/jboss/dist/deploy/Mandelbrot.jar
> > [Container factory] org.jboss.zol.mandelbrot.MandelbrotBean verified.
> > [Container factory]
> > Deploying:file:/D:/jboss/jboss/dist/deploy/Mandelbrot.jar
> > [Container factory] Checking for Beans...(DEBUG)
> > [Container factory] Deploying MandelStatelessBean
> > [Container factory] No configuration chosen. Using default configuration
> > [Container factory] Bound MandelStatelessBean to MandelStatelessBean
> > [Container factory] Deployed application:
> > file:/D:/jboss/jboss/dist/deploy/Mandelbrot.jar
> > [Auto deployer] Started
> > [Container factory] Starting
> > [Container factory] Started
> >
> > My bean (Atmlink) is based on Mandelbroat example.
> >
> > ======>> Atmlink.java
> >
> > package com.informer.globus.atmlink;
> > import java.util.*;
> > import javax.ejb.*;
> > import javax.rmi.*;
> > import javax.naming.*;
> > import javax.naming.spi.*;
> > import org.jboss.minerva.pools.*;
> > import org.jboss.util.*;
> >
> > public class AtmlinkBean implements SessionBean
> > {
> > private SessionContext _context = null;
> >
> > public void ejbCreate()
> > {
> > System.out.println("(ejbCreate) on "+this);
> > }
> >
> > public void ejbPassivate()
> > {
> > System.out.println("(ejbPassivate) on "+this);
> > }
> >
> > public void ejbActivate()
> > {
> > System.out.println("(ejbActivate) on "+this);
> > }
> >
> > public void ejbRemove()
> > {
> > System.out.println("(ejbRemote) on "+this);
> > }
> >
> > public void setSessionContext(SessionContext ctx)
> > {
> > _context = ctx;
> > System.out.println("(setSessionContext("+ctx+") on "+this);
> > }
> >
> > public int[] test()
> > {
> > System.out.println("Testing ATMLinkAccessor");
> > int [] rslt = new int[1];
> > rslt[0] = 0;
> > return(rslt);
> >
> > }
> > }
> >
> > =====>> AtmlinkHome.java
> >
> > package com.informer.globus.atmlink;
> > import javax.ejb.*;
> > import java.rmi.*;
> >
> > public interface AtmlinkHome extends EJBHome
> > {
> > public ATMLinkAccessor create() throws java.rmi.RemoteException,
> > javax.ejb.CreateException;
> > }
> >
> > =====>> Atmlink.java
> >
> > package com.informer.globus.atmlink;
> >
> > import java.io.IOException;
> > import javax.ejb.EJBObject;
> > import java.rmi.RemoteException;
> >
> > public interface Atmlink extends EJBObject
> > {
> > public int[] test() throws java.rmi.RemoteException;
> > }
> >
> > ======>> /meta-inf/ejb-jar.xml
> >
> > <?xml version="1.0" encoding="UTF8"?>
> > <ejb-jar ID="">
> > <display-name></display-name>
> > <large-icon></large-icon>
> > <enterprise-beans>
> > <session>
> > <description>ATMLink Stateless Bean</description>
> > <display-name>ATMLinkStatelessBean</display-name>
> > <ejb-name>ATMLinkStatelessBean</ejb-name>
> > <home>com.informer.globus.atmlink.AtmlinkHome</home>
> > <remote>com.informer.globus.atmlink.Atmlink</remote>
> >
> <ejb-class>com.informer.globus.atmlink.AtmlinkBean</ejb-class>
> > <session-type>Stateless</session-type>
> > <transaction-type>Bean</transaction-type>
> > </session>
> > </enterprise-beans>
> > <description></description>
> > <small-icon></small-icon>
> > <ejb-client-jar></ejb-client-jar>
> > <assembly-descriptor/>
> > </ejb-jar>
> >
> > ======>> /meta-inf/Manifest.mf
> >
> > Manifest-Version: 1.0
> >
> > =========<<
> >
> > I have builded a jar file which contains:
> >
> > com\informer\globus\amtlink\Atmlink.class
> > com\informer\globus\amtlink\AtmlinkBean.class
> > com\informer\globus\amtlink\AtmlinkHome.class
> > meta-inf\ejb-jar.xml
> > meta-inf\Manifest.mf
> >
> > (the paths above what i see from WinZip).
> > Compilation and jar are made with jdk1.3,Kawa/NT4.
> >
> > and deployed in jboss under jdk1.3/NT4
> >
> > As you see in the console output of jboss Mandelbroat is deployed as a
> bean
> > but Atmlink is not.
> >
> > What am i doing wrong here ?
> >
> > Thanks
> > Stratis
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]