Originally posted by kumar as:
Hi all,
I am on the way of doing my SCEA part 2.Can any one give suggestion on my design choice I have done for FBN.There are 2 clients going to access FBN system.One is web client that is straight forward , we can use JSP or servlet for presentation , other I have chosen is Swing application .This is acheived by using URLConnection to same servlet which act as frontconroller for both web as well as for Swing and getting response as XML to swing (can I go for XML or go for TO object ).My big problem is connecting to CGI prl sstem.How this can be done or is there is any patterns around this or any other resources around this.Please can an one give me the idea around this.
thanks in advance
kumar
Kumar,
I do not think a good idea your swing client application access the enterprise system by some servlet acting as front controllers.
One of the most benefits of enterprise java beans, is that they are built on rmi-iiop protocol, as such, you access it by any kind of client application, even non java applications as Delphi or C++.
In my opnion,
you should create business delegates components at your swing application, to access EJB components throw JNDI tree and calling ejb method by rmi-iiop.
So, in your client application, the design should be something like this:
BusinessDelegate --> ServiceLocator --> EJB Fa�ade
And of course, is much more easy rather that create URLConnections to Servlets, you can design only by interfaces and objects, instead of OutputStream
Regards,