What are the sequence of steps to write pub or sub model
kind of application?



What are the sequence of steps to write pub or sub model kind of application?..

Answer / Sunil Kumar Jayasawal

To write a publish-subscribe (pub/sub) model application, follow these steps: 1. Define IDL interfaces for the topics and services provided and required by the communicating objects. 2. Compile the IDL files to generate corresponding stubs and skeletons. 3. Implement the topic publishers and subscribers using the generated stubs and skeletons. 4. Create an ORB instance and initialize it with necessary properties. 5. Register the topic publishers with the ORB. 6. The clients can then subscribe to one or more topics, and the publishers will automatically notify the subscribed clients when a new message is published.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Advanced Java Interview Questions

Explain the advantages and disadvantages of detached objects.

1 Answers  


What is the difference between the session.update() method and the session.lock() method?

1 Answers  


In howmany ways a thread can be created?

3 Answers   HCL,


difference between apllet and interface class

1 Answers   Infotech,


In a multitiered application which tier is the browser in?

3 Answers   Adobe,


what is Static binding?

2 Answers   Wipro,


Why is main purpose of XML?

5 Answers  


Will it be called overriding if I do not change the parameters or return type, instead throw a different exception in the method signature.

4 Answers   HeadStrong,


Can we sent objects using Sockets?

1 Answers  


Why are some of the class and element names counter-intuitive?

1 Answers  


what are memory considerations of jsp compares to other web components?

1 Answers   TCS,


Difference between JRE and JVM?

3 Answers   HeadStrong, Infotech,


Categories