• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Interactivity between two ejb application

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 2713
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
kirangkp, you should also change your name to meet the JavaRanch Naming Policy.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Something about .... going for a swim. With this tiny ad ...
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic