File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Distributed Java and the fly likes ways for swing client to connect to weblogic server behind firewall Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "ways for swing client to connect to weblogic server behind firewall" Watch "ways for swing client to connect to weblogic server behind firewall" New topic
Author

ways for swing client to connect to weblogic server behind firewall

Yi Meng
Ranch Hand

Joined: May 07, 2003
Posts: 270
Hi,

Good day!

I have a 3-tier enterprise j2ee application running on weblogic. Now i have a requirement to develop a thin swing client that shall desirably connect to the business layer (EJBs) directly.

As per standard, my weblogic servers are behind firewall and only http/s on port 80/443 is allowed.

So what are the options for the connection between thin client and EJB?

1. WebLogic T3 HTTP tunneling. However, as we are not enforcing role based authentication and authorization (A&A) in EJBs currently, by HTTP tunneling, all EJBs are exposed to public.....

2. Web Services, overhead is tremendous. Host based PKI A&A can be expensive.

3.....???

Thanks in advance!


Meng Yi
Mr. C Lamont Gilbert
Ranch Hand

Joined: Oct 05, 2001
Posts: 1170

What about servlets?
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

Why not make a session bean that enforces A&A, and have it delegate to the rest of your EJBs. Only make this one session bean public, and enforce that all interaction with the server from your application go through this session bean - basically a Session Facade pattern that also enforces A&A.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Yi Meng
Ranch Hand

Joined: May 07, 2003
Posts: 270
seems not much choice...similar as you suggested....

1. urlconnection to login url and save jsession id upon successful login
2. urlconnection with jsessionid to my own ejb proxy url, which forward to the relevant ejb and do the job

the constraint is mainly the A&A part, it's a component and we have to POST to the url.....
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ways for swing client to connect to weblogic server behind firewall