You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Cyrille37 <cy...@gmail.com> on 2006/12/13 14:10:53 UTC

Hivemind and EJB access

Hello,

After had some pratices with Tapestry running on Tomcat with and without 
Spring, I'm looking for running Tapestry under an Application Server 
like Glassfish.
I've read in Hivemind documentation about the EJBProxyFactory that it 
could only delegates to Stateless session bean. Is it true ? Is there 
another fashion for Hivemind to delegate to other kind of EJB 
(Statefull, Message driven) ?

Thanks for your knowledge sharing,
Cyrillle

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Hivemind and EJB access

Posted by James Carman <ja...@carmanconsulting.com>.
You would lookup the Home object using JNDI.


On 12/13/06, Cyrille37 <cy...@gmail.com> wrote:
> James Carman a écrit :
> > Well, I was answering the question of whether HiveMind's
> > EJBProxyFactory supports stateful session beans and it does not (the
> > reason is that the create method requires params).  If you want to use
> > a stateless session bean, then check EJBProxyFactory's documentation
> > on how to set it up in your hivemodule.xml file.  Basically, you use
> > EJBProxyFactory rather than BuilderFactory to construct your
> > implementation object.
> Thanks James, but ...
>
> I understand that I could not use StateFull Bean with Hivemind.
> But how to use StateFull Bean from a Tapestry page ?
> Is something like this possible :
>     ApplicationContext.getBean("TheStateFullOne");
>
> I think the Application Server has to create the SateFullBean, but I've
> no idea on how it can make the link between the AppServer's session and
> Tapestry's session...
>
> I'm a lost a little ....
>
> Cyrille.
>
> >
> >
> > On 12/13/06, Cyrille37 <cy...@gmail.com> wrote:
> >> James Carman a écrit :
> >> > No, because typically with SFSBs, you have to pass in a paramter to
> >> > the create method and there's no way to set up the proxy to do that
> >> > for you automatically.  With SLSBs, there is no parameter to the
> >> > create method.
> >> Hello James,
> >> Thank you for your response, but I'm afraid to do not understand it ;-(
> >>
> >> Perhaps I have to reformulate my question :
> >>
> >> When Tapestry runs in an Application Server (Glassfish,JBoss), how to
> >> access EJB (Stateless and Statefull) from a Tapestry page ??
> >>
> >> Cyrille.
> >>
> >>
> >> >
> >> >
> >> > On 12/13/06, Cyrille37 <cy...@gmail.com> wrote:
> >> >> Hello,
> >> >>
> >> >> After had some pratices with Tapestry running on Tomcat with and
> >> without
> >> >> Spring, I'm looking for running Tapestry under an Application Server
> >> >> like Glassfish.
> >> >> I've read in Hivemind documentation about the EJBProxyFactory that it
> >> >> could only delegates to Stateless session bean. Is it true ? Is there
> >> >> another fashion for Hivemind to delegate to other kind of EJB
> >> >> (Statefull, Message driven) ?
> >> >>
> >> >> Thanks for your knowledge sharing,
> >> >> Cyrillle
> >> >>
> >> >
> >>
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Hivemind and EJB access

Posted by Cyrille37 <cy...@gmail.com>.
James Carman a écrit :
> Well, I was answering the question of whether HiveMind's
> EJBProxyFactory supports stateful session beans and it does not (the
> reason is that the create method requires params).  If you want to use
> a stateless session bean, then check EJBProxyFactory's documentation
> on how to set it up in your hivemodule.xml file.  Basically, you use
> EJBProxyFactory rather than BuilderFactory to construct your
> implementation object.
Thanks James, but ...

I understand that I could not use StateFull Bean with Hivemind.
But how to use StateFull Bean from a Tapestry page ?
Is something like this possible :
    ApplicationContext.getBean("TheStateFullOne");

I think the Application Server has to create the SateFullBean, but I've 
no idea on how it can make the link between the AppServer's session and 
Tapestry's session...

I'm a lost a little ....

Cyrille.

>
>
> On 12/13/06, Cyrille37 <cy...@gmail.com> wrote:
>> James Carman a écrit :
>> > No, because typically with SFSBs, you have to pass in a paramter to
>> > the create method and there's no way to set up the proxy to do that
>> > for you automatically.  With SLSBs, there is no parameter to the
>> > create method.
>> Hello James,
>> Thank you for your response, but I'm afraid to do not understand it ;-(
>>
>> Perhaps I have to reformulate my question :
>>
>> When Tapestry runs in an Application Server (Glassfish,JBoss), how to
>> access EJB (Stateless and Statefull) from a Tapestry page ??
>>
>> Cyrille.
>>
>>
>> >
>> >
>> > On 12/13/06, Cyrille37 <cy...@gmail.com> wrote:
>> >> Hello,
>> >>
>> >> After had some pratices with Tapestry running on Tomcat with and 
>> without
>> >> Spring, I'm looking for running Tapestry under an Application Server
>> >> like Glassfish.
>> >> I've read in Hivemind documentation about the EJBProxyFactory that it
>> >> could only delegates to Stateless session bean. Is it true ? Is there
>> >> another fashion for Hivemind to delegate to other kind of EJB
>> >> (Statefull, Message driven) ?
>> >>
>> >> Thanks for your knowledge sharing,
>> >> Cyrillle
>> >>
>> >
>>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Hivemind and EJB access

Posted by James Carman <ja...@carmanconsulting.com>.
Well, I was answering the question of whether HiveMind's
EJBProxyFactory supports stateful session beans and it does not (the
reason is that the create method requires params).  If you want to use
a stateless session bean, then check EJBProxyFactory's documentation
on how to set it up in your hivemodule.xml file.  Basically, you use
EJBProxyFactory rather than BuilderFactory to construct your
implementation object.


On 12/13/06, Cyrille37 <cy...@gmail.com> wrote:
> James Carman a écrit :
> > No, because typically with SFSBs, you have to pass in a paramter to
> > the create method and there's no way to set up the proxy to do that
> > for you automatically.  With SLSBs, there is no parameter to the
> > create method.
> Hello James,
> Thank you for your response, but I'm afraid to do not understand it ;-(
>
> Perhaps I have to reformulate my question :
>
> When Tapestry runs in an Application Server (Glassfish,JBoss), how to
> access EJB (Stateless and Statefull) from a Tapestry page ??
>
> Cyrille.
>
>
> >
> >
> > On 12/13/06, Cyrille37 <cy...@gmail.com> wrote:
> >> Hello,
> >>
> >> After had some pratices with Tapestry running on Tomcat with and without
> >> Spring, I'm looking for running Tapestry under an Application Server
> >> like Glassfish.
> >> I've read in Hivemind documentation about the EJBProxyFactory that it
> >> could only delegates to Stateless session bean. Is it true ? Is there
> >> another fashion for Hivemind to delegate to other kind of EJB
> >> (Statefull, Message driven) ?
> >>
> >> Thanks for your knowledge sharing,
> >> Cyrillle
> >>
> >
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Hivemind and EJB access

Posted by Cyrille37 <cy...@gmail.com>.
James Carman a écrit :
> No, because typically with SFSBs, you have to pass in a paramter to
> the create method and there's no way to set up the proxy to do that
> for you automatically.  With SLSBs, there is no parameter to the
> create method.
Hello James,
Thank you for your response, but I'm afraid to do not understand it ;-(

Perhaps I have to reformulate my question :

When Tapestry runs in an Application Server (Glassfish,JBoss), how to 
access EJB (Stateless and Statefull) from a Tapestry page ??

Cyrille.


>
>
> On 12/13/06, Cyrille37 <cy...@gmail.com> wrote:
>> Hello,
>>
>> After had some pratices with Tapestry running on Tomcat with and without
>> Spring, I'm looking for running Tapestry under an Application Server
>> like Glassfish.
>> I've read in Hivemind documentation about the EJBProxyFactory that it
>> could only delegates to Stateless session bean. Is it true ? Is there
>> another fashion for Hivemind to delegate to other kind of EJB
>> (Statefull, Message driven) ?
>>
>> Thanks for your knowledge sharing,
>> Cyrillle
>>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Hivemind and EJB access

Posted by James Carman <ja...@carmanconsulting.com>.
No, because typically with SFSBs, you have to pass in a paramter to
the create method and there's no way to set up the proxy to do that
for you automatically.  With SLSBs, there is no parameter to the
create method.


On 12/13/06, Cyrille37 <cy...@gmail.com> wrote:
> Hello,
>
> After had some pratices with Tapestry running on Tomcat with and without
> Spring, I'm looking for running Tapestry under an Application Server
> like Glassfish.
> I've read in Hivemind documentation about the EJBProxyFactory that it
> could only delegates to Stateless session bean. Is it true ? Is there
> another fashion for Hivemind to delegate to other kind of EJB
> (Statefull, Message driven) ?
>
> Thanks for your knowledge sharing,
> Cyrillle
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org