Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Any unique identity?

Status
Not open for further replies.

newbie14

Technical User
Feb 14, 2009
81
MY
Dear All,
I have a jsp application where I save my session values. Then I have an asp.net application which need to be integrated with my jsp page. Unfortunately there no way I can share the session across my asp.net page from my jsp page. So I was thinking to save an unique identify of my client into database then using asp.net to retreive that unique identity together with the stored session value? Any idea such ? I was looking into mac adress but is also impossible to get it from web page? Any other pls ? Thx.
 
Are you asking what to use for a uniqueID? Look up GUID in the help files.
 
why not the user id?

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Dear Jason,
The user ID will come from the jsp page. So how can I read it in my asp.net page? Thx.
 
I'm making 2 assumptions with this advice.
1. users must authenticate
2. users have the same user name in both systems

if not, then what is the commonality that links the systems together and requires session sharing?

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Dear Jason,
Sorry I got mixed up a bit guess. Actually the asp.net pages will be linked via the jsp menu.So they will be all under one system. So when I login into my jsp page I will also have some of my pages linked which are in asp.net. So what is your recommendation in this scenario? Thx.
 
I would ask why you need a jsp and asp.net solution combined into 1 webpage. This sounds like a maintenance nightmare. I would hope there are very strong business restrictions that mandate this type of coupling.

instead of trying to merge 2 applications into one I would have the applications communicate with one another via restful services (example: domain/server/name/parameter1/parameter2). each application maintains there own data. the data format could be json.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Dear Jason,
Ok let me give you some details the jsp modules is develop by one team and the asp.net module is by another team. So now the asp.net module will come under the whole software under the jsp modules. Therefore we can access the asp.netm modules. Is just that when we login is jsp page so we need to maintain the user id also in the asp.net module. Off course we can convert everything at this moment. So any idea?
 
Off course we can convert everything at this moment.
you mean can't, correct? otherwise don't waist your time with this.

So any idea?
this is a mess to say the least. the only thing the 2 systems can share is the database. (unless there are jsp to asp.net wrappers out there.) i still say use the user id as the identifier in the database. and use this identifier to pass values between the 2 systems.

I would also do some heavy research into disconnected systems and resource/object sharing. I have a feeling the only way to get them to talk is using a service layer like restful web services or a queue like MSMQ.

Jason Meckley
Programmer
Specialty Bakers, Inc.
 
Dear Jason,
Thank you I will look further in you suggestions.
 
I was looking into mac adress but is also impossible to get it from web page?
This is actually not impossible, you just need a way to access their machine.

I agree with Jason that a service layer would be the best option. I don't know much about JSP, but how does the session get stored? Is it just a temporary cookie? if it is really a cookie that just times out after a little while, then why not just look at that cookie in your .NET. Otherwise you need to force some sort of commonality between the two apps, the only way i can see that working is with a service layer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top