Communication between two websites

I would like to know about how to send data across two wesites.

the scenario goes like this i have 2 websites A & B.

A does registration and B does enrollment.

Once A finishes registration of a user i have to pass the registered user details to B which will make enrollment for the same registered user. Once the enrollment is done B has to acknowledge A about the completation.

lot of security concerns are there, but the aboe basic fact of communicating is my doubt.

Can i do this using JMS, one more problem is B is an external site and i am not sure whether B uses JMS or not

Help any will be appreciated....

[661 byte] By [Funnya] at [2007-10-2 14:25:44]
# 1

Hi,

Not sure how A does registration.. through a GUI and whether it uses servlets. If A & B are both using servlets then you may pass registration details from A to B using HttpUrlConnection class in java.net package.

Further as you said B must send acknowledgement to A about completion of enrolment. Then it is will be better idea to use a synchronous callback. i.e. A waits untill B completes enrollment.

HTH

VJ

jain_vishal_aa at 2007-7-13 12:45:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
A is using Servlets but not sure about B and A has to wait till B acknowledges
Funnya at 2007-7-13 12:45:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

Hi,

Is it not possible to find out. I mean as you want these two websites talk to each other then you must know.

However if you must wait untill B confirms enrollment then I feel using

JMS may not be a good option. From website B you can expose a webservice, which will accept registration data from A and then confirm the enrollment.

HTH

VJ

jain_vishal_aa at 2007-7-13 12:45:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4

i can find out about B but, i can only implement on A side B is like a third party i can just know about them but can't implement anythin on B.

thanks for the suggestion but i have no idea about web services, even i started with JMS recently, can u suggest me some good resources for web-services and suggestions any are welcome

Funnya at 2007-7-13 12:45:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5

Hi,

I think your approach does not seem to be practical for following reasons.

1. From 'A' you need to pass registration data to 'B'. So you must be aware of how B expects this data if not then B must let you know this.

2. A must wait untill B confirms enrollment. Then you must know how B is going to reply back to A.

3. This, if has been thought about during construction of B then, there must be some kind of interface/service that is available on B.

4. If there is no service available on B then it must be created.

5. The role of A essentially is that of a client who is going to use the service provided by B.

6. So find out if there is any existing interface/service available in B, if not then expose a new one.

You can find some good articles on web services using Google or then

java.sun.com has some webservice tutorials.

Please let me know if you need any further help.

VJ

jain_vishal_aa at 2007-7-13 12:45:23 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...