Hi, > Subject: Web services Vs. EJB benchmarking > Message-ID: > <[EMAIL PROTECTED]> > > Hi All, > I ran a benchmark test on EJB and web services in JRun 4 > application server. > I found that web services take 10 times more than taken by the same EJB > business logic.
Without seeing the exact examples it is difficult to say why your results are such. IMHO (ie a disclaimer for any inaccurate info - pls correct me! I'd like to know more about this.) ... However, in general, the Web Services model is going to be slower that EJB's. The are many reasons for this : Discovery, Network issues and Data marshalling are some. EJB calls can be made with native data types where as calls to Services need to be Marshelled into XML and back again. In addition Web Service will use HTTP which will be slower as opposed to a connection over the Home Interface. How are you calling you EJB's v's the Web Services? Justin ______________________________________________________________________ Get the JRun Web Application Construction Kit - the only book written specifically for JRun developers. http://www.amazon.com/exec/obidos/ASIN/0789726009/houseoffusion Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
