Server-Side Development Section Index | Page 7
How do we purge all the messages through CLI command?
Purging a queue.
How do we purge all the messages through CLI command? I would like to purge messages from Durable subscriber queues. I tried with Queue Purger but it doesn't allow Queue Preicate....more
How do you specify the address of a JMX connector server?
The JMXServiceURL allows you to specify the URL like service:jmx:protocol:sap where protocol might be something like rmi and sap is the address at which the connector server is located. Once suc...more
What are the three types of bindings to lookup services?
The JMX specification defines three types: Service Location Protocol (SLP) Lookup Service, Jini Lookup Service, and Java Naming and Directory Interface (JNDI) / LDAP Lookup Service.
What does an MBean interface consist of?
Methods in the interface provide either accessors to attributes or operations to execute.
What interface must an MBean implement?
There is no single interface that an MBean implements. Instead, an MBean is defined by creating an interface called XXXMBean and a class called XXX, implementing the interface.
What is JMX?
JMX is the Java Management Extensions. It provides a way to manage and monitor resources, as in network devices or applications. Classes are found in the javax.management package and its subpackages.more
What server should my JMX application connect to?
To get the platform's MBean server, ask the ManagementFactory:
MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
When running a JMX application, what do I connect with to see the current information to monitor?
The jconsole command-line tool allows you to connect to both local and remote virtual machines to monitor status information.
Where can I find a tutorial on JMX?
Sun provides a tutorial for JMX with JDK 5.0 at http://java.sun.com/j2se/1.5.0/docs/guide/jmx/tutorial/tutorialTOC.html.more
Which JSR defines JMX?
JSR 3 defined the original version of JMX. Other JSRs define newer aspects of JMX:
JSR 160 - JMX Remoting 1.0
JSR 146 - WBEM Services: JMX Provider Protocol Adapter
JSR 71 - JMX-TMN Specificatio...more
What string do I pass to SimpleDateFormat to format the message date to spec - getSentDate() method of Message?
There is no need to create a custom DateFormat. The MailDateFormat class found in the javax.mail.internet handles all this for you. It formats and parses the date based on the draft-ietf-drums-msg...more
How is JavaMail licensed?
As of July 2005, JavaMail is licensed with GlassFish under Sun's CDDL open source license.
What is GlassFish?
The GlassFish Project is Sun's open source application server project. Found at https://glassfish.dev.java.net/, you can participate in the development of the latest version of Sun's Java System A...more
What version of JavaMail does GlassFish contain?
According to Bill Shannon of Sun, the July 2005 release of GlassFish contains JAF 1.1ea and a version of JavaMail slightly newer than 1.3.3ea.
How do I set the default character encoding for JavaMail to use?
The mail.mime.charset system property is used. If unset, file.encoding is used instead.