Java Doc for JMSControlImpl.java in » Library » Apache-beehive-1.0.2-src » org » apache » beehive » controls » system » jms » impl » 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
»
Library
»
Apache beehive 1.0.2 src
»
org.apache.beehive.controls.system.jms.impl
Source Cross Reference
Class Diagram
Java Document (Java Doc)
java.lang
.Object
org.apache.beehive.controls.system.jms.impl
.JMSControlImpl
JMSControlImpl
public
class JMSControlImpl implements
JMSControl
,
Extensible
,
java.io.Serializable
(Code)
Implementation of the
JMSControl
.
Method Summary
protected
void
checkBody
(
Object
value,
Class
cls)
Check the given value to see if is appropriate for the given message value class.
protected
void
close
()
Release any JMS related resources.
protected
void
createQueueSession
()
Creates a queue session.
protected
void
createTopicSession
()
Creates a topic session.
protected
int
deliveryModeToJmsMode
(
Object
value)
Convert the object to the JMS delivery mode.
Parameters:
value - a integer valued string, integer or DeliveryMode.
protected
void
determineDestination
()
Deterimine whether we are working with a queue or a topic.
public
javax.jms.Connection
getConnection
()
Get the JMS javax.jms.Connection .
public
javax.jms.Destination
getDestination
()
Get the JMS javax.jms.Destination .
protected
Destination
getDestinationProperties
()
Get the destination annotation info for the message.
protected
DestinationType
getDestinationType
()
Get the destination type as specified via the org.apache.beehive.controls.system.jms.JMSControl.Destination.sendType annotation.
protected
Object
getHeader
(HeaderType name)
Get the header type value.
Parameters:
name - the header type.
protected
Integer
getHeaderAsInteger
(HeaderType name)
Get the header type value as a int.
Parameters:
name - the header type.
protected
Long
getHeaderAsLong
(HeaderType name)
Get the header type value as a long.
Parameters:
name - the header type.
protected
String
getHeaderAsString
(HeaderType name)
Get the header type value as a string.
Parameters:
name - the header type.
protected
JndiControlBean
getJndiControl
()
Get the JNDI control instance.
protected
MessageProducer
getProducer
()
Get the queue/topic producer.
public
Session
getSession
()
Implementation of the
org.apache.beehive.controls.system.jms.JMSControl.getSession
method.
public
Object
invoke
(
Method
method,
Object
[] args)
Implementation of the
Extensible.invoke(java.lang.reflect.MethodObject[])
method.
protected
int
modeToJmsMode
(AcknowledgeMode mode)
Convert the enum to the JMS ack mode.
Parameters:
mode - the enum mode.
protected
String
nullIfEmpty
(
String
str)
Return null if the given string is null or an empty string.
Parameters:
str - a string.
public
void
onAcquire
()
public
void
onRelease
()
public
void
setHeader
(
JMSControl.HeaderType
type,
Object
value)
public
void
setHeaders
(
Map
headers)
protected
void
setMessageHeader
(javax.jms.Message msg, HeaderType type,
Object
value)
Set the header value of the given message.
protected
void
setMessageHeaders
(javax.jms.Message msg)
Set the headers.
protected
void
setMessageProperties
(javax.jms.Message msg)
Set the properties of the given message.
public
void
setProperties
(
Map
properties)
public
void
setProperty
(
String
name,
Object
value)
protected
Integer
valueAsInteger
(
Object
obj)
Return the given value as an integer.
Parameters:
obj - a string or number object.
protected
Long
valueAsLong
(
Object
obj)
Return the given value as a long.
Parameters:
obj - a string or number object.
Method Detail
checkBody
protected
void checkBody(
Object
value,
Class
cls) throws
ControlException
(Code)
Check the given value to see if is appropriate for the given message value class.
Parameters:
value - the body.
Parameters:
cls - the expected class.
close
protected
void close()
(Code)
Release any JMS related resources.
createQueueSession
protected
void createQueueSession() throws JMSException
(Code)
Creates a queue session.
createTopicSession
protected
void createTopicSession() throws JMSException
(Code)
Creates a topic session.
deliveryModeToJmsMode
protected
int deliveryModeToJmsMode(
Object
value)
(Code)
Convert the object to the JMS delivery mode.
Parameters:
value - a integer valued string, integer or DeliveryMode. the JMS delivery mode.
determineDestination
protected
void determineDestination()
(Code)
Deterimine whether we are working with a queue or a topic.
getConnection
public
javax.jms.Connection getConnection() throws
ControlException
(Code)
Get the JMS javax.jms.Connection . Implementation of the
JMSControl.getConnection
.
getDestination
public
javax.jms.Destination getDestination() throws
ControlException
(Code)
Get the JMS javax.jms.Destination . Implementation of the
org.apache.beehive.controls.system.jms.JMSControl.getDestination
method.
getDestinationProperties
protected
Destination getDestinationProperties()
(Code)
Get the destination annotation info for the message. the destination method annotation.
getDestinationType
protected
DestinationType getDestinationType() throws
ControlException
(Code)
Get the destination type as specified via the org.apache.beehive.controls.system.jms.JMSControl.Destination.sendType annotation.
getHeader
protected
Object
getHeader(HeaderType name)
(Code)
Get the header type value.
Parameters:
name - the header type. the value or null.
getHeaderAsInteger
protected
Integer
getHeaderAsInteger(HeaderType name)
(Code)
Get the header type value as a int.
Parameters:
name - the header type. the int value or null.
getHeaderAsLong
protected
Long
getHeaderAsLong(HeaderType name)
(Code)
Get the header type value as a long.
Parameters:
name - the header type. the long value or null.
getHeaderAsString
protected
String
getHeaderAsString(HeaderType name)
(Code)
Get the header type value as a string.
Parameters:
name - the header type. the string value or null.
getJndiControl
protected
JndiControlBean getJndiControl()
(Code)
Get the JNDI control instance. the jndi-control.
getProducer
protected
MessageProducer getProducer()
(Code)
Get the queue/topic producer. the JMS producer.
getSession
public
Session getSession() throws
ControlException
(Code)
Implementation of the
org.apache.beehive.controls.system.jms.JMSControl.getSession
method. the Session
throws:
ControlException
- when an error occurs trying to create a JMS session
invoke
public
Object
invoke(
Method
method,
Object
[] args) throws
ControlException
(Code)
Implementation of the
Extensible.invoke(java.lang.reflect.MethodObject[])
method. This method allows extension by interface.
modeToJmsMode
protected
int modeToJmsMode(AcknowledgeMode mode)
(Code)
Convert the enum to the JMS ack mode.
Parameters:
mode - the enum mode. the JMS mode.
nullIfEmpty
protected
String
nullIfEmpty(
String
str)
(Code)
Return null if the given string is null or an empty string.
Parameters:
str - a string. null or the string.
onAcquire
public
void onAcquire()
(Code)
onRelease
public
void onRelease()
(Code)
setHeader
public
void setHeader(
JMSControl.HeaderType
type,
Object
value)
(Code)
See Also:
JMSControl.setHeader
setHeaders
public
void setHeaders(
Map
headers)
(Code)
See Also:
JMSControl.setHeaders
setMessageHeader
protected
void setMessageHeader(javax.jms.Message msg, HeaderType type,
Object
value)
(Code)
Set the header value of the given message.
Parameters:
msg - the message.
Parameters:
type - the header type.
Parameters:
value - the value.
setMessageHeaders
protected
void setMessageHeaders(javax.jms.Message msg) throws
ControlException
(Code)
Set the headers. Accessing msg may throw exception.
Parameters:
msg - the message.
setMessageProperties
protected
void setMessageProperties(javax.jms.Message msg) throws
ControlException
(Code)
Set the properties of the given message.
Parameters:
msg - the message.
setProperties
public
void setProperties(
Map
properties)
(Code)
See Also:
JMSControl.setProperties
setProperty
public
void setProperty(
String
name,
Object
value)
(Code)
See Also:
JMSControl.setProperty
valueAsInteger
protected
Integer
valueAsInteger(
Object
obj)
(Code)
Return the given value as an integer.
Parameters:
obj - a string or number object. the integer value or null.
valueAsLong
protected
Long
valueAsLong(
Object
obj)
(Code)
Return the given value as a long.
Parameters:
obj - a string or number object. the long value or null.
Methods inherited from
java.lang.Object
native
protected
Object
clone() throws
CloneNotSupportedException
(Code)
(Java Doc)
public
boolean equals(
Object
obj)
(Code)
(Java Doc)
protected
void finalize() throws
Throwable
(Code)
(Java Doc)
final native
public
Class
> getClass()
(Code)
(Java Doc)
native
public
int hashCode()
(Code)
(Java Doc)
final native
public
void notify()
(Code)
(Java Doc)
final native
public
void notifyAll()
(Code)
(Java Doc)
public
String
toString()
(Code)
(Java Doc)
final native
public
void wait(long timeout) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait(long timeout, int nanos) throws
InterruptedException
(Code)
(Java Doc)
final
public
void wait() throws
InterruptedException
(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.