Server-Side Development Section Index | Page 7
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
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
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.
Methods in the interface provide either accessors to attributes or operations to execute.
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.
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
To get the platform's MBean server, ask the ManagementFactory: MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
The jconsole command-line tool allows you to connect to both local and remote virtual machines to monitor status information.
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
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
As of July 2005, JavaMail is licensed with GlassFish under Sun's CDDL open source license.
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
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.
The mail.mime.charset system property is used. If unset, file.encoding is used instead.