Miles Sabin wrote:
>
> Eric Williams wrote,
> > [snip: thread and IO restrictions]
> > But I am guessing that whatever EJB server you are using, you
> > can bend the rules to a degree. There is usually a way to get
> > around the restrictions, as long as you can live with the
> > "less than portable" nature of your code.
>
> Is that really necessary?
>
> Hmm ... I haven't been paying that much attention, because
> EJB isn't really my department, but, on the face of it, it
> looks like the restrictions are pretty easy to work around,
> so long as it's possible for a bean to communicate with an
> entity which isn't hosted in the container (tho' it might be
> hosted by the same JVM). To use a threaded entity from a bean
> you could use a passive object which communicates with it via
> a queue; to use an IO entity you use a non-IO object that can
> forward to it out of the container.
>
> Am I missing something?

Maybe. If your non-container-managed threads themselves try to make calls to
EJBs, those calls may fail if the server assumes that intercomponent calls
are always made on container-managed threads.

Also, given the statements in the spec, it is entirely possible that there
may be some JVM implementations (e.g. JVMs inside RDBMS servers) that don't
even implement the java thread APIs. Those JVM implementations would be valid
for hosting EJB containers.

In virtually every case where we have had customer requests for a thread API
that is compatible with our server, we have determined that a messaging
solution (such as JMS) would meet the stated customer requirements. However
occasionally that is not true. We just implemented a proprietary threading
API for the occasions where the customer requirements cannot me met with
messaging options.

My recommendation for EJBs is: use a proprietary offering for thread creation
if you cannot wait for JMS server support. This may mean that you restrict
your application to a subset of the available EJB products.
________________________________________________________________________________

Evan Ireland              Sybase EA Server Engineering       [EMAIL PROTECTED]
                            Wellington - New Zealand              +64 4 934-5856

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to