concept point in category java

appears as: point, point, The point, points, points
Spring Integration in Action

This is an excerpt from Manning's book Spring Integration in Action.

The message channel is the connection between multiple endpoints. The channel implementation manages the details of how and where a message is delivered but shouldn’t need to interact with the payload of a message. Whereas the most important characteristic of any channel is that it logically decouples producers from consumers, there are a number of practical implementation options. For example, a particular channel implementation might dispatch messages directly to passive consumers within the same thread of control. On the other hand, a different channel implementation might buffer messages in a queue whose reference is shared by the producer and an active consumer such that the send and receive operations each occur within different threads of control. Additionally, channels may be classified according to whether messages are delivered to a single endpoint (point-to-point) or to any endpoint that is listening to the channel (publish-subscribe). As mentioned earlier, regardless of the implementation details, the main goal of any message channel is to decouple the message endpoints on both sides from each other and from any concerns of the underlying transport.

In the next few sections, we show some examples of how bundles can be wired together using Spring Integration and OSGi. We discuss publish-subscribe communication, point-to-point messaging, and load balancing, and we look into exposing gateways as a way to avoid unneeded Spring Integration dependencies.

17.3.3. Point-to-point messaging and sharing the load

Point-to-point messaging is used when one endpoint specifically wants to tell another endpoint something. Because you have one receiver and one sender, the expectations between the two are stronger. Usually, the sender changes state and, in many cases, even expects the receiver to trigger another state change. For example, when you order a taxi, you start expecting a taxi to come pick you up. If it doesn’t come, you’re a bit disappointed.

When we talk about examples of point-to-point messaging, it’s usually the sender using a service of the receiver. This is the exact opposite of publish-subscribe messaging in which you can subscribe to the feed of published messages. If two OSGi bundles are connected through point-to-point messaging, the startup is a bit tricky. You can connect bundles in two ways, depending on your purpose.

Spring Roo in Action

This is an excerpt from Manning's book Spring Roo in Action.

Contrast this with your friends programming in dynamic language platforms, such as Ruby on Rails or Grails, who take about 15 minutes to get a basic application shell up and running. That shell usually includes a web application, database data and validation, and some basic business and navigation logic. Unlike a lot of Java application prototypes, theirs is usually the beginning of the final project, whereas Java developers have to try and throw away a fair number of APIs and platforms manually until they get to a point where they’re comfortable assigning a team to the project. The bottom line is that it just takes a long time to write a Java-based application.

By the end of this chapter, you’ll understand how to implement enterprise application services like email and JMS messaging. You’ll also be well versed on two design patterns: publish-subscribe (pub/sub) and point-to-point (PTP). With Roo’s built-in support for email and JMS services, you’ll also see why it’s easier to implement these requirements within your application if you use Roo.

The following sections briefly discuss the two messaging domains called publish-subscribe and point-to-point. The book Java Message Service by Mark Richards offers extensive coverage of the JMS topic. Another good resource is ActiveMQ in Action (http://www.manning.com/snyder/), which details messaging-oriented middleware application development using Apache’s ActiveMQ container.

AspectJ in Action, Second Edition

This is an excerpt from Manning's book AspectJ in Action, Second Edition.

  • Identifiable points in the execution of the system— The system exposes points during the execution of the system. These may include execution of methods, creation of objects, or throwing of exceptions. Such identifiable points in the system are called join points. Note that join points are present in all systems—even those that don’t use AOP—because they’re points during execution of a system. AOP merely identifies and categorizes these points.
  • In the sequence diagram, you see several join points that are encountered when an object invokes a debit() method on an AccountService object. The first join point is the call to the debit() method itself, followed by its execution. Its execution encounters join points for the call and execution of the find() method on AccountDao and the debit() method on Account.

    Similar to the method-execution join point, the execution join point for the Account(int) constructor encompasses the entire constructor body.