I think your problem is your putting NotSupported in the wrong place. If
I'm correct, what you have is
<ejb-jar>
<enterprise-beans>
<session>
blah blah
<transaction-type>NotSupported</ransaction-type>
blah blah
</session>
other stuff
In that tag ( transaction-type within session ) you can put Container or
Bean indicating who is responsible for managing the transaction. To get
what you want ( the bean does not support transactions ) you want to include
a container-transaction tag in the assembly descriptor...
<ejb-jar>
<enterprise-beans>
<session>
blah blah
<transaction-type>Container</transaction-type>
blah blah
</session>
other beans
</enterprise-beans>
<assembly-descriptor>
<container-transaction>
<method>
<ejb-name>appropriate name</ejb-name>
<method-name>*</method-name>
</method>
<trans-attribute>NotSupported</trans-attribute>
</container-transaction>
</assembly-descriptor>
</ejb-jar>
Cheers
Chris
-----Original Message-----
From: H Tchepannou [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 22, 2000 5:47 PM
To: jBoss
Subject: RE: [jBoss-User] Exception: result of finder method
isnotavalidreturn type
The msg is fine for me.
I was just wondering if jboss doesnt support 'NotSupported' etc.
1. If this is the case, is jboss smart enough to create transaction only
when
desired? (Ex: if Im doing just retrieving data, I dont want to any
transaction
to be started)
2. I've just found an interesting tool: EJBMaker from AlphaWorks. but it
seems
to be tailored to WebSphere. I haven't found any tool like that for jboss
and
I was considering building one.
PS: the product look great! Im really impressed! good work guys!
On Fri, 22 Sep 2000, you wrote:
> > > But when I deploy my component, I receive this message:
> > > transaction type should be 'Bean' or 'Container'
>
> I agree that the message is not really clear...
> what message would be clear in your mind herve?
> marc
>
> > >
> > > 1. Doest this mean jboss doen't support the transaction type of the
EJB
> > > specification: NotSupported, Supports, Required, RequiresNew,
Mandatory,
> > > Support?
> > >
> > > 2. What are those 2 transactions type mean ('Bean' and
> > > 'Container')? I cant find
> > > it in any of my EJB books
> > >
> > > thanx
> > >
> > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > > Herve Tchepannou
> > > mailto:[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]
--
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Herve Tchepannou
mailto:[EMAIL PROTECTED]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]