Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
JSP - A mailing list about Java Server Pages specification and reference
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Subject: Servlet : Session invalidate
Oracle Connection Pooling in 3 2 2
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Subject: Running a Simple JMS Example
Tomcat and webapplication specific java library path
Mapping in workers2 properties
org apache jasper JasperException
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action
   MESSAGE
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
Value attribute of <html:checkbox
url string for connecting jboss to oracle
javax servlet ServletException: BeanUtils populate
5 0 18: Windows XP Pro vs Windows 2000
HTTP Status 404 The requested resource is not available
 
Design Question RMI or WebService

Design Question RMI or WebService

2005-02-24       - By Jaise George

 Back
Reply:     1     2     3  

Hi Kurien,



I am not able to find any design consideration in this case that
specifically favor either RMI or WS. From that point of view, I think
either of them would be alright.



In my opinion, WS would be a better choice because it reduces the
coupling between the modules and provides higher extensibility. AFAIK,
SOAP does not have any scalability issues. I have used WS to pass large
amount of data (not more than 100K), but did not observe any big issues.
Moreover since it uses HTTP, you do not have to setup an additional
tunnel. Therefore from a security point of view also you might not end
up with any concerns if you use WS. But here, if the server needs to
push some data without the client requesting for it, WS cannot work for
you.



Hope this enhances your decision process



Jaise



 __ __  

From: A mailing list for Java(tm) 2 Platform, Enterprise Edition
[mailto:J2EE-INTEREST@(protected)] On Behalf Of Kurien Joseph
Sent: Thursday, February 24, 2005 9:43 AM
To: J2EE-INTEREST@(protected)
Subject: Design Question RMI or WebService



Hi Folks,



           I have a design question where I would like some feedback. I
want an applet to communicate an J2EE server behind a firewall. The
scheme of communication between these two entities will be push and pull
(where applet can push and pull data from the J2EE server).



At one time I had implemented RMI mechanism but it was a situation
without firewalls. I know that through RMI you can tunnel across
firewall.



Which of these two schemes is the best?

*       .Use RMI to have applets call EJBs ?
*       Use Webservices to implement SOAP between applet and EJB?



Another requirement is that the data passed between the applet and J2EE
server is considerably high. I have heard arguments that using SOAP will
not scale well.



Is there any alternate option than the above?



Thanks

Kurien



           

========================================================================
=== To unsubscribe, send email to listserv@(protected) and include in
the body of the message "signoff J2EE-INTEREST". For general help, send
email to listserv@(protected) and include in the body of the message
"help".


===========================================================================
To unsubscribe, send email to listserv@(protected) and include in the body
of the message "signoff J2EE-INTEREST".  For general help, send email to
listserv@(protected) and include in the body of the message "help".


<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft
-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http:
//www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
/* Font Definitions */
@(protected)
       {font-family:Tahoma;
       panose-1 (See http://ose-1.ora-code.com):2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
       {margin:0in;
       margin-bottom:.0001pt;
       font-size:12.0pt;
       font-family:"Times New Roman";}
a:link, span.MsoHyperlink
       {color:blue;
       text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
       {color:purple;
       text-decoration:underline;}
p
       {mso-margin-top-alt:auto;
       margin-right:0in;
       mso-margin-bottom-alt:auto;
       margin-left:0in;
       font-size:12.0pt;
       font-family:"Times New Roman";}
span.EmailStyle18
       {mso-style-type:personal;
       font-family:Arial;
       color:windowtext;}
span.EmailStyle19
       {mso-style-type:personal-reply;
       font-family:Arial;
       color:navy;}
@(protected) Section1
       {size:8.5in 11.0in;
       margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
       {page:Section1;}
/* List Definitions */
@(protected) l0
       {mso-list-id:960066477;
       mso-list-template-ids:-362511784;}
@(protected) l0:level1
       {mso-level-number-format:bullet;
       mso-level-text:\F0B7;
       mso-level-tab-stop:.5in;
       mso-level-number-position:left;
       text-indent:-.25in;
       mso-ansi-font-size:10.0pt;
       font-family:Symbol;}
@(protected) l1
       {mso-list-id:1262176666;
       mso-list-type:hybrid;
       mso-list-template-ids:-1685811758 1693110448 67698691 67698693 67698689
67698691 67698693 67698689 67698691 67698693;}
@(protected) l1:level1
       {mso-level-start-at:4330;
       mso-level-number-format:bullet;
       mso-level-text:\F0B7;
       mso-level-tab-stop:.5in;
       mso-level-number-position:left;
       text-indent:-.25in;
       font-family:Symbol;
       mso-fareast-font-family:"Times New Roman";
       mso-bidi-font-family:Arial;}
@(protected) l1:level2
       {mso-level-tab-stop:1.0in;
       mso-level-number-position:left;
       text-indent:-.25in;}
@(protected) l1:level3
       {mso-level-tab-stop:1.5in;
       mso-level-number-position:left;
       text-indent:-.25in;}
@(protected) l1:level4
       {mso-level-tab-stop:2.0in;
       mso-level-number-position:left;
       text-indent:-.25in;}
@(protected) l1:level5
       {mso-level-tab-stop:2.5in;
       mso-level-number-position:left;
       text-indent:-.25in;}
@(protected) l1:level6
       {mso-level-tab-stop:3.0in;
       mso-level-number-position:left;
       text-indent:-.25in;}
@(protected) l1:level7
       {mso-level-tab-stop:3.5in;
       mso-level-number-position:left;
       text-indent:-.25in;}
@(protected) l1:level8
       {mso-level-tab-stop:4.0in;
       mso-level-number-position:left;
       text-indent:-.25in;}
@(protected) l1:level9
       {mso-level-tab-stop:4.5in;
       mso-level-number-position:left;
       text-indent:-.25in;}
ol
       {margin-bottom:0in;}
ul
       {margin-bottom:0in;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Kurien,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>I am not able to find any design
consideration in this case that specifically favor either RMI or WS.

©2008 junlu.com - Jax Systems, LLC, U.S.A.