how to run EJB 3 app on Jboss application server

Posted by satya on Stack Overflow See other posts from Stack Overflow or by satya
Published on 2010-01-18T07:17:06Z Indexed on 2010/03/17 21:01 UTC
Read the original article Hit count: 539

Filed under:
|
|

While running the application i do not able to set the jndi.properties and log4j.properties

Actually i have to se the following properities but I do not know where to write these code in a file or somewhere else. If in file what will be the file extension and file name and where to keep it in application.

jndi.properties:

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
java.naming.provider.url=localhost:1099

log4j.properties:

# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=INFO, CONSOLE

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=INFO
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n 

© Stack Overflow or respective owner

Related posts about jboss

Related posts about java