vendredi 27 février 2015

how to troubleshoot the mechanics of a Message Driven Bean lookup (port, router, firewall...)


Vote count:

0




How is a message driven bean (MDB) accessed by a JVM on another machine within the same network? I see how it's not done:



32.4 Accessing Enterprise Beans


Note: The material in this section applies only to session beans and not to message-driven beans. Because they have a different programming model, message-driven beans do not have interfaces or no-interface views that define client access.


Clients access enterprise beans either through a no-interface view or through a business interface. A no-interface view of an enterprise bean exposes the public methods of the enterprise bean implementation class to clients. Clients using the no-interface view of an enterprise bean may invoke any public methods in the enterprise bean implementation class or any superclasses of the implementation class. A business interface is a standard Java programming language interface that contains the business methods of the enterprise bean.



http://ift.tt/187kPRR


The fine manual goes on to state:



46.6 Receiving Messages Asynchronously Using a Message-Driven Bean


If you are writing an application to run in the Java EE application client container or on the Java SE platform, and you want to receive messages asynchronously, you need to define a class that implements the MessageListener interface, create a JMSConsumer, and call the method setMessageListener.


If you're writing an application to run in the Java EE web or EJB container and want it to receive messages asynchronously, you also need to need to define a class that implements the MessageListener interface. However, instead of creating a JMSConsumer and calling the method setMessageListener, you must configure your message listener class to be a message-driven bean. The application server will then take care of the rest.


Message-driven beans can implement any messaging type. Most commonly, however, they implement the Java Message Service (JMS) technology.


This section describes a simple message-driven bean example. Before proceeding, you should read the basic conceptual information in the section What Is a Message-Driven Bean? as well as Using Message-Driven Beans to Receive Messages Asynchronously.



http://ift.tt/1N0B3gl


The reason I ask is that I'm having some trouble with CORBA lookup, and thought that MDB's might work better. Certainly they're more interesting!


When a MDB message fails, how do you troubleshoot it?


I'm using Glassfish.



asked 30 secs ago

Thufir

1,544






how to troubleshoot the mechanics of a Message Driven Bean lookup (port, router, firewall...)

Aucun commentaire:

Enregistrer un commentaire