Package com.sun.messaging

Examples of com.sun.messaging.AdministeredObject


    // compatible with the current product version.
    // No need to check for invalid/missing version number, as
    // an exception must have been already thrown if that
    // was the case.
    if (object instanceof AdministeredObject) {
        AdministeredObject adminObj = (AdministeredObject)object;
        String curVersion = adminObj.getVERSION();
        String objVersion = adminObj.getStoredVersion();

        if (!adminObj.isStoredVersionCompatible()) {
      Globals.stdErrPrintln(ar.getString(ar.W_INCOMPATIBLE_OBJ, objVersion, curVersion));
       
    }
          input = getUserInput(ar.getString(ar.Q_UPDATE_OK), noShort);
      }
View Full Code Here


    private void printAttributes() {

  Globals.stdOutPrintln(ar.getString(ar.I_OBJMGR_HELP_ATTRIBUTES1));

  // Create a Destination administered object to get it's properties
  AdministeredObject obj = (AdministeredObject)new com.sun.messaging.Topic();
  Properties props = obj.getConfiguration();

  ObjMgrPrinter omp = new ObjMgrPrinter(2, 6);
        String[] row = new String[2];

  for (Enumeration e = obj.enumeratePropertyNames(); e.hasMoreElements();) {
      String propName = (String)e.nextElement();
      try {
    row[0] = "    " + propName;
    row[1] = obj.getPropertyLabel(propName);
    omp.add(row);
      } catch (Exception ex) {
      }
  }
  omp.print();

  Globals.stdOutPrintln(ar.getString(ar.I_OBJMGR_HELP_ATTRIBUTES2));
  // Create a ConnFactory administered object to get it's properties
  obj = (AdministeredObject)new com.sun.messaging.TopicConnectionFactory();
  props = obj.getConfiguration();

  ObjMgrPrinter omp2 = new ObjMgrPrinter(2, 6);

  for (Enumeration e = obj.enumeratePropertyNames(); e.hasMoreElements();) {
      String propName = (String)e.nextElement();
      try {
    row[0] = "    " + propName;
    row[1] = obj.getPropertyLabel(propName);
    omp2.add(row);
      } catch (Exception ex) {
      }
  }
  omp2.print();
View Full Code Here

     * @return the com.sun.messaging.Topic
     */
    public static Object createTopic(Properties objProps)
        throws JMSException {

  AdministeredObject obj = null;

  obj = (AdministeredObject)new com.sun.messaging.Topic();

  setProperties(obj, objProps);

View Full Code Here

     * @return the com.sun.messaging.Queue
     */
    public static Object createQueue(Properties objProps
        throws JMSException {

  AdministeredObject obj = null;

  obj = (AdministeredObject)new com.sun.messaging.Queue();

  setProperties(obj, objProps);

View Full Code Here

     * @return the com.sun.messaging.TopicConnectionFactory
     */
    public static Object createTopicConnectionFactory(Properties objProps)
        throws JMSException {

  AdministeredObject obj = null;

  obj = (AdministeredObject)new com.sun.messaging.TopicConnectionFactory();

  setProperties(obj, objProps);

View Full Code Here

     * @return the com.sun.messaging.ConnectionFactory
     */
    public static Object createConnectionFactory(Properties objProps)
        throws JMSException {

  AdministeredObject obj = null;

  obj = (AdministeredObject)new com.sun.messaging.ConnectionFactory();

  setProperties(obj, objProps);

View Full Code Here

     * @return the com.sun.messaging.XATopicConnectionFactory
     */
    public static Object createXATopicConnectionFactory(Properties objProps)
        throws JMSException {

  AdministeredObject obj = null;

  obj = (AdministeredObject)new com.sun.messaging.XATopicConnectionFactory();

  setProperties(obj, objProps);

View Full Code Here

     * @return the com.sun.messaging.QueueConnectionFactory
     */
    public static Object createQueueConnectionFactory(Properties objProps)
        throws JMSException {

  AdministeredObject obj = null;

  obj = (AdministeredObject)new com.sun.messaging.QueueConnectionFactory();

  setProperties(obj, objProps);

View Full Code Here

     * @return the com.sun.messaging.XAQueueConnectionFactory
     */
    public static Object createXAQueueConnectionFactory(Properties objProps)
        throws JMSException {

  AdministeredObject obj = null;

  obj = (AdministeredObject)new com.sun.messaging.XAQueueConnectionFactory();

  setProperties(obj, objProps);

View Full Code Here

     * @return the com.sun.messaging.XAConnectionFactory
     */
    public static Object createXAConnectionFactory(Properties objProps)
        throws JMSException {

  AdministeredObject obj = null;

  obj = (AdministeredObject)new com.sun.messaging.XAConnectionFactory();

  setProperties(obj, objProps);

View Full Code Here

TOP

Related Classes of com.sun.messaging.AdministeredObject

Copyright © 2015 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.