Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ways for swing client to connect to weblogic server behind firewall

 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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!
 
Mr. C Lamont Gilbert
Ranch Hand
Posts: 1170
Eclipse IDE Hibernate Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What about servlets?
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Yi Meng
Ranch Hand
Posts: 270
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.....
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic