Java Doc for MDBMessageEndPointFactory.java in  » J2EE » ow2-easybeans » org » ow2 » easybeans » container » mdb » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » ow2 easybeans » org.ow2.easybeans.container.mdb 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.ow2.easybeans.container.mdb.MDBFactory
   org.ow2.easybeans.container.mdb.MDBMessageEndPointFactory

MDBMessageEndPointFactory
public class MDBMessageEndPointFactory extends MDBFactory implements MessageEndpointFactory(Code)
Defines a class that will manage the message end point factory for the MDB. The super class will manage the pool of message end point.
author:
   Florent Benoit


Field Summary
final public static  StringDEFAULT_ACTIVATION_SPEC_NAME
     Default name of the activation spec (JORAM).

Constructor Summary
public  MDBMessageEndPointFactory(String className, EZBContainer container, ActivationSpec activationSpec, ResourceAdapter resourceAdapter)
     Default constructor (delegate to super class).

Method Summary
public  MessageEndpointcreateEndpoint(XAResource xaResource)
     This is used to create a message endpoint.
public  MDBMessageEndPointcreateInternalEndpoint(XAResource xaResource)
     This is used to create a message endpoint.
public  voidinit()
     Init the factory.
public  booleanisDeliveryTransacted(Method method)
     This is used to find out whether message deliveries to a target method on a message listener interface that is implemented by a message endpoint will be transacted or not.
public  voidnotifyTimeout(Timer timer)
     Notified when the timer service send a Timer object.
protected  voidreleaseEndPoint(MDBMessageEndPoint mdbMessageEndPoint)
     Release an endpoint created by this factory.
public  voidstop()
     Stops the factory.

Field Detail
DEFAULT_ACTIVATION_SPEC_NAME
final public static String DEFAULT_ACTIVATION_SPEC_NAME(Code)
Default name of the activation spec (JORAM).




Constructor Detail
MDBMessageEndPointFactory
public MDBMessageEndPointFactory(String className, EZBContainer container, ActivationSpec activationSpec, ResourceAdapter resourceAdapter) throws FactoryException(Code)
Default constructor (delegate to super class).
Parameters:
  className - name of this factory (name of class that is managed)
Parameters:
  container - the root component of this factory.
Parameters:
  activationSpec - the activation Spec object used foractivating/deactivating.
Parameters:
  resourceAdapter - the resource adapter used to activate/deactivateourself.
throws:
  FactoryException - if super constructor fails




Method Detail
createEndpoint
public MessageEndpoint createEndpoint(XAResource xaResource) throws UnavailableException(Code)
This is used to create a message endpoint. The message endpoint is expected to implement the correct message listener type.
Parameters:
  xaResource - an optional XAResource instance used to get transactionnotifications when the message delivery is transacted. a message endpoint instance.
throws:
  UnavailableException - indicates a transient failure in creating amessage endpoint. Subsequent attempts to create a messageendpoint might succeed.



createInternalEndpoint
public MDBMessageEndPoint createInternalEndpoint(XAResource xaResource) throws UnavailableException(Code)
This is used to create a message endpoint. The message endpoint is expected to implement the correct message listener type.
Parameters:
  xaResource - an optional XAResource instance used to get transactionnotifications when the message delivery is transacted. a message endpoint instance.
throws:
  UnavailableException - indicates a transient failure in creating amessage endpoint. Subsequent attempts to create a messageendpoint might succeed.



init
public void init() throws FactoryException(Code)
Init the factory.
throws:
  FactoryException - if the initialization fails.



isDeliveryTransacted
public boolean isDeliveryTransacted(Method method) throws NoSuchMethodException(Code)
This is used to find out whether message deliveries to a target method on a message listener interface that is implemented by a message endpoint will be transacted or not. The message endpoint may indicate its transacted delivery preferences (at a per method level) through its deployment descriptor. The message delivery preferences must not change during the lifetime of a message endpoint.
Parameters:
  method - description of a target method. This information about theintended target method allows an application server to find outwhether the target method call will be transacted or not. boolean whether the specified method is transacted
throws:
  NoSuchMethodException - exception to throw



notifyTimeout
public void notifyTimeout(Timer timer)(Code)
Notified when the timer service send a Timer object. It has to call the Timed method.
Parameters:
  timer - the given timer object that will be given to the timer method.



releaseEndPoint
protected void releaseEndPoint(MDBMessageEndPoint mdbMessageEndPoint)(Code)
Release an endpoint created by this factory.
Parameters:
  mdbMessageEndPoint - the endpoint to release.



stop
public void stop()(Code)
Stops the factory.



Methods inherited from org.ow2.easybeans.container.mdb.MDBFactory
public EasyBeansMDB create(Long clue) throws PoolException(Code)(Java Doc)
public IBeanInfo getBeanInfo()(Code)(Java Doc)
public MessageDrivenInfo getMessageDrivenInfo()(Code)(Java Doc)
public boolean isMatching(EasyBeansMDB object, Long clue)(Code)(Java Doc)
public EJBResponse localCall(long hash, Object[] methodArgs, Long beanId)(Code)(Java Doc)
public EJBResponse rpcInvoke(EJBRequest request)(Code)(Java Doc)
public void setMessageDrivenInfo(MessageDrivenInfo messageDrivenInfo)(Code)(Java Doc)
public void stop()(Code)(Java Doc)
public boolean validate(EasyBeansMDB object, PoolEntryStatistics stats)(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.