Vaughn,

I'm using yesterday's source (about 4 p.m. EST).
Are you using the ejx.jar to generate the ejb-jar.xml and the jboss.xml
deploy info ???

-----Original Message-----
From: Vaughn Vernon [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 20, 2000 3:59 PM
To: jBoss
Subject: Re: [jBoss-User] Stateful SessionBean Not Bound


Serrano, Miguel wrote:
> I'm also having a problem with the Stateful Session Bean.
>
> If I add a reference inside the create as:
>
> public MyEJB create (String id) throws RemoteException, CreateException
> {
> SimpleBean sb = new SimpleBean();
> sb.setID(id);
> }
>
> I get an InvocationTargetException when the create method is called.
>
> Please note that this works for Stateless Session Beans using the no args
> create.
>
> public MyEJB create () throws RemoteException, CreateException
> {
> SimpleBean sb = new SimpleBean();
> sb.setProductID("MyID");
> }
>
>
> What gives???

Well, you're getting further than me. I can't even bind my bean at deploy
time, nor can my stateless session bean reach the stateful bean via jndi.
Are you using the binary version or have you downloaded source?

Regards,
Vaughn

> -----Original Message-----
> From: Vaughn Vernon [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 20, 2000 12:51 PM
> To: jBoss
> Subject: Re: [jBoss-User] Stateful SessionBean Not Bound
>
>
> Hi,
>
> Can someone please give an official status on stateful session beans? Are
> they working in the latest source build? Are you planning on supporting
them
> in the binary release soon?
>
> Cheers,
> Vaughn
>
>
> ----- Original Message -----
> From: "Vaughn Vernon" <[EMAIL PROTECTED]>
> To: "jBoss" <[EMAIL PROTECTED]>
> Sent: Wednesday, July 19, 2000 3:36 PM
> Subject: Re: [jBoss-User] Stateful SessionBean Not Bound
>
>
> > Hi,
> >
> > Just to follow up: I CAN deploy the same bean as stateLESS if I change
the
> > home interface to have a no-argument create() method, change the
> > implementation to match it with ejbCreate(), and change the xml to
define
> it
> > stateless.
> >
> > I have also tried removing all references to it by other session beans,
> but
> > still cannot deploy it if it is stateful.
> >
> > From this I assume that stateful session beans are not supported in the
> > version I downloaded on July 13.
> >
> > Correct?
> >
> > Vaughn
> >
> > ----- Original Message -----
> > From: "Vaughn Vernon" <[EMAIL PROTECTED]>
> > To: "jBoss" <[EMAIL PROTECTED]>
> > Sent: Wednesday, July 19, 2000 1:09 PM
> > Subject: [jBoss-User] Stateful SessionBean Not Bound
> >
> >
> > > Hi,
> > >
> > > I am not able to register my stateful session bean. I downloaded the
> > binary
> > > on July 13, 2000. I can register my stateless bean and two BMP entity
> > beans.
> > > Here's what I see during deployment:
> > >
> > > [Container factory] Deploying BMPEntityBean1
> > > [Container factory] Deploying BMPEntityBean2
> > > [Container factory] Deploying StatelessSessionBean
> > > [Container factory] Deploying StateFULSessionBean
> > > [Container factory] Using default DataSource:Databasename
> > > [Container factory] Started: BMPEntityBean1
> > > [Container factory] Using default DataSource:Databasename
> > > [Container factory] Started: BMPEntityBean2
> > > [Container factory] Bind ejb/StateFULSessionBean to
> > > [Container factory] Using default DataSource:Databasename
> > > [Container factory] Started: StatelessSessionBean
> > > [Container factory] Bound BMPEntityBean1 to app/Name1
> > > [Container factory] Bound BMPEntityBean2 to app/Name2
> > > [Container factory] Bound StatelessSessionBean to app/StatelessName
> > >
> > > The key to solving is in the line "[Container factory] Bind
> > > ejb/StateFULSessionBean to". When I view the source Container.java the
> > > Logger.debug() message prints when ref.getJndiName().equals("") ==
true.
> I
> > > think the XML is correct, as far as I can tell:
> > >
> > > ===ejb-jar.xml:===
> > >
> > > <session>
> > >  <ejb-name>StateFULSessionBean</ejb-name>
> > >  ...
> > >  <session-type>Stateful</session-type>
> > >  <transaction-type>Bean</transaction-type>
> > >  ... ejb-refs and resource-ref
> > > </session>
> > >
> > > ===jboss.xml===
> > >
> > > <session>
> > >  <ejb-name>StateFULSessionBean</ejb-name>
> > >  <jndi-name>app/StatefulName</jndi-name>
> > >  <configuration-name>Default Stateful SessionBean</configuration-name>
> > >  ... ejb-refs and resource-ref
> > > </session>
> > >
> > > Any ideas?
> > >
> > > Vaughn
> > >
> > >
> > >
> > >
> > > --
> > > --------------------------------------------------------------
> > > 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]
>
>
> --
> --------------------------------------------------------------
> 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]

Reply via email to