Hi!

Patrik Beno wrote:
> jboss+EmbeddedTomcat with Integrated Stack (fast) is great idea.
> 
> But network access is not the only thing making EJB relatively slow...
> It's primarily RMI. 

To be picky, RMI cannot be slow, since it's only an interface
specification. An RMI implementation can be slow, but that's another
thing completely.

> My question is:
> 
> Isn't it possible to write jboss so that RMI is not used when calls
> are made inside one JVM? If possible, it would be the greatest speed
> improvement. RMI should be used when neccessary; but when
> servlet container and EJB server share the same JVM and the same
> address space...
> 
> What do you say ?

This is precisely what the JBoss+EmbeddedTomcat integration provides. To
be precise, the integration allows two things:
* no network usage
* no parameter copying

We still use the RMI interfaces (e.g. RemoteExceptions), but the two
above things are optimized. The second is of course optional since it
breaks RMI semantics.

/Rickard

-- 
Rickard Öberg

Email: [EMAIL PROTECTED]

Reply via email to