简体   繁体   English

如何在Jboss应用服务器上运行EJB 3应用

[英]how to run EJB 3 app on Jboss application server

While running the application i do not able to set the jndi.properties and log4j.properties 在运行应用程序时,我无法设置jndi.properties和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: 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: 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 

I can't understand what you want to do or which Jboss version you use. 我不明白您要做什么或使用哪个Jboss版本。 But for the log4j options in Jboss 4.2.3 go to: jboss\\server\\default\\conf\\jboss-log4j.xml 但是对于Jboss 4.2.3中的log4j选项,请转到:jboss \\ server \\ default \\ conf \\ jboss-log4j.xml

您可以在jboss \\ server \\ default \\ conf \\ jndi.properties文件中设置默认的JBoss JNDI属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM