[Installation, Configuration & Deployment] - Re: Jboss log-rotation
by jaikiran
Yes. In the log4j.xml file present at %JBOSS_HOME%/server/default/conf, change the following
<appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.log.dir}/server.log"/>
| <param name="Append" value="false"/>
| <param name="MaxFileSize" value="500KB"/>
| <param name="MaxBackupIndex" value="1"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
| </layout>
| </appender>
to
<appender name="FILE" class="org.jboss.logging.appender.RollingFileAppender">
| <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
| <param name="File" value="${jboss.server.log.dir}/server.log"/>
| <param name="Append" value="true"/>
| <param name="MaxFileSize" value="500KB"/>
| <param name="MaxBackupIndex" value="1"/>
|
| <layout class="org.apache.log4j.PatternLayout">
| <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
| </layout>
| </appender>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025774#4025774
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025774
19Â years, 1Â month
[JNDI/Naming/Network] - Re: Help with Quartz MBean Service under JBoss using JNDI?
by imargelatu
I have the exact same problem. In a Jboss instance, the QuartzService is successfully created. Even more, existing Quartz jobs are being executed as expected.
I want to be able to access the Quartz Scheduler from a console application. However the following code prints out 'null' :
|
| public static void main(String[] args) throws Exception {
| InitialContext iniCtx = getInitialContext();
| Scheduler scheduler = (Scheduler)iniCtx.lookup("Quartz");
|
| System.out.println(String.format("Scheduler : %s", scheduler));
| }
|
| public static InitialContext getInitialContext() throws Exception {
| Hashtable<String, String> props = getInitialContextProperties();
| return new InitialContext(props);
| }
|
| private static Hashtable<String, String> getInitialContextProperties() {
| Hashtable<String, String> props = new Hashtable<String, String>();
| props.put(Context.PROVIDER_URL, "jnp://localhost:1099");
| props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
| props.put(Context.URL_PKG_PREFIXES, "org.jboss.naming:org.jnp.interfaces");
| return props;
| }
|
|
There are no exceptions thrown, however the Scheduler object is null.
Am I doing something wrong ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4025771#4025771
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4025771
19Â years, 1Â month