• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Interactivity between two ejb application

 
kiran krishna
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a requirement where two Ejb Applications need to interact. We have a Role access control application that handles user related stuffs like login, user roles in applicatiosn ect.
Another application does not have any tables in the database that correspond to Users. This application need to intereact with the Access control application for user authentication and roles access.
The Access control application is a full Web application with Ejb and web modules.
Can any one suggest me an approach where i can integrate both the applications easily.
Thanks in advance
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ejbs are remote objects (I should said can be remote objects), just make remote calls.
 
kiran krishna
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Chris
We have a login page in the acess control application. Its a jsp. It inturn has its own business logic classes.
This logic i generic with respectiveto the application that will access.
Hence we require to use this business logic in our application.
In short i need to use both Web application and Ejb application in our application.
Again thanks in advance
kiran
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good design dicates that we remove business logic from our presentation layer. Your first task is to push the authentication business logic into your ejb layer and modify your presentation layer to use this. Then it is an easy step to allow other external applications to access these ejbs.
 
Chris Mathews
Ranch Hand
Posts: 2712
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
kirangkp, you should also change your name to meet the JavaRanch Naming Policy.
 
Ismail
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I hope you may use, URLConnection especially, for authentication purposes. See, Core Java, Vol 2 book, for how to implement this.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic