Bookmark Topic Watch Topic
  • New Topic

how to read context from outside file.

 
nitin namdev
Greenhorn
Posts: 5
Open BSD
  • Mark post as helpful
  • send pies
  • Report post to moderator
g
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Likes 2
  • Mark post as helpful
  • send pies
  • Report post to moderator
This sounds like bad design. Why should web app 2 depend on web app 1's init parameters instead of using its own?

If web app 1 has something that web app 2 needs, then it could provide an HTTP interface (think REST), properly authenticated of course.
 
nitin namdev
Greenhorn
Posts: 5
Open BSD
  • Mark post as helpful
  • send pies
  • Report post to moderator
l';
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
That can't be a requirement, because it is an implementation detail. It would help if you told us what the functional need is that prompted this question.

There are any number of ways to share data between applications; reading each other's init files, and changing those (as you now suggest) is one of the worst.
 
nitin namdev
Greenhorn
Posts: 5
Open BSD
  • Mark post as helpful
  • send pies
  • Report post to moderator
g

Thanks.
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
First off, web.xml is application-specific, not user-specific. So it really has no role in any of this.

It sounds as if the SSO component -whichever that is- should be able to propagate the login and user information across all web apps. After all, if it can't do that, what is its use?
 
nitin namdev
Greenhorn
Posts: 5
Open BSD
  • Mark post as helpful
  • send pies
  • Report post to moderator
Thanks Ulf Dittmer
 
Ulf Dittmer
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Report post to moderator
but another way instead of set email address comes from SSO login page at webapp3 in CATALINA_HOME/conf/web.xml. it may be good idea as all application has access of it,

With all due respect, it is a terrible idea, for multiple reasons; let's just forget about it.

If you can suggest different approach please suggest..

I already suggested a REST service for communicating between web apps. Another approach might be a shared database. But it still sounds as if the SSO subsystem should be able to handle any number of web apps. Or are you saying that the web app that needs this data is NOT governed by the SSO solution? Or that the user will not actually log into the web app that needs this data?
 
nitin namdev
Greenhorn
Posts: 5
Open BSD
  • Mark post as helpful
  • send pies
  • Report post to moderator
" reading each other's init files"

is a way you just suggested to me .


how is possible ? can you suggest me a proper link which is describing this ?


Thanks.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65129
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
As you have gone an edited your previous posts to be nonsense, it's impossible to offer any further aid. I'm closing this topic. Please open a new topic with the information needed to answer your question, and please do not remove that information at a later time.
 
    Bookmark Topic Watch Topic
  • New Topic