Current position:  Home > Default > Protocol Router for Rich Client Front Controller

Protocol Router for Rich Client Front Controller

Time:October 11
Advertisement
Hello,
I would like to support multiple client types in my J2EE application - Web Client and Rich Client (Swing Application).
Java BluePrints (Designing Enterprise Applications
with the J2EETM Platform, Second Edition) suggests using a Protocol Router for centralized control in case of supporting multiple client types with multiple controllers - http://java.sun.com/blueprints/guidelines/designing_enterprise_applications_2e/web-tier/web-tier5.html.
I have several doubts with this approach and will appreciate very much any help with clarifying the following:
1) How does a Rich Client communicate to Protocol Router? Using HTTP? That means then that each request/response has to be wrapped in HTTP Request/Response object. It may impact the performance and make the communication between Rich Client and back-end slower.
2) If rich client communicates with Protocol Router through HTTP, what is the difference between Fron Controller for Web Client and for Rich Client?
3) The J2EE Tutorial on the other hand, shows direct connection from Application (Rich) Client to EJB layer - http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Ebank.html.
It will be greatly appreciated to know how would you address the above doubts.
Best Regards.
Advertisement
1) How does a Rich Client communicate to Protocol
Router? Using HTTP? Yes, HTTP . You are right about performance issues. That protocol router seems to me like like overengineering. Anyway, I think a WEB service could be better choice. It's a standart way how to wrap remote requests in HTTP.
2) If rich client communicates with Protocol Router
through HTTP, what is the difference between Fron
Controller for Web Client and for Rich Client?I think the difference is in types of requests. WEB client would request
WEB pages, SWING client doesnt need WEB pages. It would request contents
of list boxes and things like that.
I would suggest you to use EJB's with session facade pattern. Provide WEB service style access to your app. Many app. servers provide feature to expose SLSB as WEB services. Thus you will support almost any types of clients (.NET, Perl, whatever). You can also use WEB service to connect from you'r SWING client. If later you are not satisfied with performance, you can switch to RMI. If you use BusinessDelegate pattern then you will need to change BusinessDelegate only, just one class.
I have written an example EJB based app. which can be accessed by SWING client using RMI or SOAP, WEB client, .NET client and CORBA.
You can get it from:
http://www.datapro.lv/~mariso/ejb.html
feel free to ask questions, if you have any
Maris Orbidans

Musings: MVC Front Controller/Command and Controller Strategy

-0001-11-30

Hi, I am currently taking my first shot at implementing the Front Controller pattern, the Command and Controller Strategy flavor, in Java. When applying the pattern, my chosen point of focus is achieving as much isolation as possible of Client-specif

Rich Client Patterns Collaboration

-0001-11-30

Recently there was a post on ONJava about creating a Design Pattern Study Group. They suggest going through the "Head First Design Patterns" book. I have the book and I have read it front to back and found it useful and clear. However, the book

WIS 10901 error while refreshing report in rich client

2015-10-11

I'm facing a strange issue while refreshing a report from Rich client. Here are details Environment: BO XI 3.1 SP3, Oracle application DB. Weu2019ve 2 BO servers (S1 and S2) on cluster and load balancer (common URL) in front. While login to S1 with 6

Connection error in Webi Rich Client Bobj 4.1 sp1

2015-10-11

Hello Experts, I am getting an error while connecting Bobj server(4.1 sp2) through Webi rich client (4.1 Sp1). When i am trying to connect to CMC, i am able to connect it. Please help on this. Thanks in Advance BhasinHello Bhasin, I have few question

ADF rich client: How to automate testing

2015-10-11

Hi Experts, We need to do some automate testing against application that is developed with ADF Faces 11g, I've tried with loadrunner 8.1, which provides 2 approaches to record web applications, web(html / http) and web(click / script). According to m

Communication between servlet & rich client - ObjectStream or OutputStream?

2015-10-11

Hi, I need to send a text file from a servlet to a rich client. Is it better to send it over OutpputStream or wrap it up as an Object(eg: StringBuffer) and send it over OutputStream? Will the performance be significantly be affected if I try to wrap

Difference Between Oracle ADF and ADF Rich Client

2015-10-11

Hello Gurus, I want to know the difference between those two: Oracle ADF: http://goo.gl/6Q1i2 and ADF Rich Client: http://goo.gl/L31ra I downloaded Jdeveloper 11g (11.1.2.3.0) I did this tutorial which It adf right? http://goo.gl/8Mf7c and this other

Rich CLient development

-0001-11-30

hi guys, i wanna do rich client which communicate with JSP page and send and receive data without refreshing the page. for this which i know is we have to use SOAP/JSP and javascript any help will be great. thanks in advancesend and receive data with

Rich client access server for data

-0001-11-30

Hi I have a Rich client application and it need to access a web server via http protocol to access large amount of data. Any idea what is the best way to do this? im think of writing some server side code to generate the data object into XML files an

Can I disable the ADF Rich client javascript?

-0001-11-30

I would like to work around the ADF framework and use my own javascript. Is there a way to turn off the rich client libs so they are not downloaded to the client? I want to use jQuery and my own javascript. Thanks for any tips, tricks, links, or exam

JDev 11g:  Task Flows,Rich Client- some questions to the Oracle team

-0001-11-30

Hello, We're currently involved (early stages) in a large project with a Jan-Mar 2008 pilot delivery timeframe - one heavily including end-user customizable workflow elements, to which the aforementioned JDev/ADF 11 features would be a great fit. Our

Swing Rich Client Framework

-0001-11-30

Are there any good swing rich client development and server integration framework?jwenting wrote: You're thinking too much about one thing, the client and user interface. Don't. Think about the entire system. What you're looking for is classic subscr

Front Controller Servlet

-0001-11-30

Hello friends. I need to implement a Front Controller servlet. I will then forward the request to other servlets. So, even I the client explicitly requests the servlet, say /Dummy, I want the request to pass through /FrontController first. If I map F

Front controller calls

-0001-11-30

Hey all At the moment my front controller servlet determines where my JSP calls come from via hidden html fields, sort of like this: <input type="hidden" name="jspSource" value="addToFavorite" />But I've also seen peopl

Servlet code catering to browser and rich clients

-0001-11-30

Hi, I need to build a rich client interface for a web based application(jsp/servlets). The web based application does not belong to us. The servlets contain code for request forwarding - ie, there is no model-controller separation in the design of th

WIJ 20002 xml Parser Problem - Rich Client

2015-10-11

Hi, I have a problem with the rich client on a new installation: Business Objects Enterprise XI 3.1 SP3 on Windows 2008 Standard. If I connect with the rich client "import document"is disabled. if I try to create a new document from the rich cli

No data in webby using IE or firefox but data in webby Rich client

2015-10-11

hi everybody, I got a newbie probleme with BO edge XI r3.1 trial version. If i create a report on webby via infoview usin a webby universe (efashion eg) , no text appear in my report, inluding data and text titles even i type something (structure is

WebI report in Rich Client refreshing - But not in the webbased WebI client

2015-10-11

Dear experts, I am quite new to BO and I am currently facing the following problem regarding our WebI reports: I created a WebI report in the WebI Rich Client. This report accesses an OLAP universe, which in turn gets data from a SAP BW through a BI

Error in Creating a WebI Report on SAP Source using Rich client in BOxi 3.1

2015-10-11

Hi I tried to create a webi report using rich client on sap source. I get a error message " A Database error occured. the Database text is 'unable to connect to SAP BW server name and password is incorrect(repeat logon) (WIS 10901) . SAP Integration