Package org.apache.activemq.artemis.ra
Class ActiveMQRaUtils
java.lang.Object
org.apache.activemq.artemis.ra.ActiveMQRaUtils
Various utility functions
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleanCompare two booleans.static booleanCompare two doubles.static booleanCompare two integers.static booleanCompare two longs.static booleanCompare two strings.static org.jgroups.JChannellocateJGroupsChannel(String locatorClass, String name) Within AS7 the RA is loaded by JCA. properties can only be passed in String form.static ObjectLookup an object in the default initial contextparseConfig(String config) parseConnectorConnectorConfig(String config) parseHashtableConfig(String config) Used on parsing JNDI Configuration
-
Method Details
-
compare
Compare two strings.- Parameters:
me- First valueyou- Second value- Returns:
trueif object equals else false
-
compare
Compare two integers.- Parameters:
me- First valueyou- Second value- Returns:
trueif object equals else false
-
compare
Compare two longs.- Parameters:
me- First valueyou- Second value- Returns:
trueif object equals else false
-
compare
Compare two doubles.- Parameters:
me- First valueyou- Second value- Returns:
trueif object equals else false
-
compare
Compare two booleans.- Parameters:
me- First valueyou- Second value- Returns:
trueif object equals else false
-
lookup
Lookup an object in the default initial context- Parameters:
context- The context to usename- the name to lookupclazz- the expected type- Returns:
- the object
- Throws:
Exception- for any error
-
parseHashtableConfig
Used on parsing JNDI Configuration- Returns:
- hash-table with configuration option pairs
-
parseConfig
-
parseConnectorConnectorConfig
-
locateJGroupsChannel
Within AS7 the RA is loaded by JCA. properties can only be passed in String form. However if RA is configured using jgroups stack, we need to pass a Channel object. As is impossible with JCA, we use this method to allow a JChannel object to be located.
-