Both systems scale by distributing the load across multiple machines. With PHP, this is done with an HTTP load balancer. It's quite easy.

Exactly what is it that makes you think EJB will be more scalable than a bunch of servers behind an HTTP load balancer running JSP? The additional overhead of EJB typically makes things less efficient, not more.