jboss

JBoss Access log的配置

我的梦境 提交于 2020-02-16 01:01:08
在做WEB应用时,有时候希望能够记录用户的访问,分析访问用户的地域以及用户访问行为,JBoss提供了一种方式能够很方便的记录用户的访问日志,但是默认情况下这个功能是没有启用的,下面讲述如何启用这个功能。 修改${JBOSS_HOME}/server/defaul/deploy/jbossweb.sar/server.xml找到如下代码: Xml代码 < Valve className = "org.apache.catalina.valves.FastCommonAccessLogValve" prefix = "localhost_access_log." suffix = ".log" pattern = "%h %l %u %t %r %s %b" directory = "${jboss.server.home.dir}/log" resolveHosts = "false" /> 上述代码默认情况下是注释的,将注释去掉,就打开了访问日志记录阀。 参数/选项说明: className: 实现的java类名,必须设置成org.apache.catalina.valves.AccessLogValve; directory: 存放日志文件的目录; pattern: 需要记录的日志信息的格式布局,如果是”common”或者”combined”,说明是使用的标准记录格式

JBoss Apache Configuration Issues

≡放荡痞女 提交于 2020-02-08 02:23:08
问题 I have the following Apache configuration. I have issue like DB connection goes for toss. I have database JNDI pool entry in my web.xml for the datasource configured in standalone.xml <resource-ref id="ResourceRef_xxxxxxxxxxx7711"> <res-ref-name>jdbc/pcbDB</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> <jndi-name>java:/jdbc/pcbDB</jndi-name> <res-sharing-scope>Shareable</res-sharing-scope> </resource-ref> standlone.xml configuration for datasource

Plug Bean to JBoss with JNDI

可紊 提交于 2020-02-06 16:37:37
问题 I wonder how object (if it matter I need EJB) can be plugged to JBoss (5.0) with JNDI? I have following bean definition in my Spring applicationContext.xml : <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> <property name="entityManagerFactory" ref="entityManagerFactory" /> </bean> <tx:annotation-driven transaction-manager="transactionManager" /> <context:annotation-config/> <bean id="myServiceFacade" class="org.springframework.jndi

Plug Bean to JBoss with JNDI

我怕爱的太早我们不能终老 提交于 2020-02-06 16:35:11
问题 I wonder how object (if it matter I need EJB) can be plugged to JBoss (5.0) with JNDI? I have following bean definition in my Spring applicationContext.xml : <bean id="transactionManager" class="org.springframework.orm.jpa.JpaTransactionManager"> <property name="entityManagerFactory" ref="entityManagerFactory" /> </bean> <tx:annotation-driven transaction-manager="transactionManager" /> <context:annotation-config/> <bean id="myServiceFacade" class="org.springframework.jndi

How to configure JBoss JsonFormatter for Filebeat (WildFly 14)

心已入冬 提交于 2020-02-06 09:27:08
问题 I have Filebeat pulling logs from stdout. I want to ensure my logs are outputted as JSON, so they can be properly parsed. Thus far, here's what I've found: org.jboss.logmanager.formatters doesn't have a JSON formatter There's an "extension" module that provides a JsonFormatter class. I can use it in my logging.properties by doing something like this: handler.CONSOLE=org.jboss.logmanager.handlers.ConsoleHandler handler.CONSOLE.properties=autoFlush,target handler.CONSOLE.autoFlush=true handler

How do you specify an external log4j properties file to start a jboss server?

早过忘川 提交于 2020-02-05 08:57:10
问题 How do you specify an external log4j properties file to run a jboss server with? I need to do this with bash/ terminal commands? Not programmatically 回答1: Create a folder to store log4j.properties (i.e C:\PropertiesFolder ). Then add the link to this folder to JBoss classpath: Go to [server folder]\bin Edit run.bat (if server is running on Windows) or run.sh (for Linux) Edit classpath line by adding the folder link: Snippet: if "x%JBOSS_CLASSPATH%" == "x" ( set "RUN_CLASSPATH=%RUNJAR%;C:

Hibernate 4.1.2.FINAL Properties hbm2ddl.import_files don't seems to work

試著忘記壹切 提交于 2020-02-05 08:56:46
问题 Hi I have a issue respect a hbm2ddl.import_files, it seems that don't work and not seems to appear in the log. this is my configuration: <property name="hibernateProperties"> <value> hibernate.dialect=${hibernate.dialect} hibernate.default_schema=${hibernate.default_schema} hibernate.jdbc.batch_size=${hibernate.jdbc.batch_size} hibernate.show_sql=${hibernate.show_sql} hibernate.hbm2ddl.auto=${hibernate.hbm2ddl.auto} hibernate.id.new_generator_mappings=${hibernate.id.new_generator_mappings}

using DBMS_APPLICATION_INFO with Jboss

二次信任 提交于 2020-02-05 06:55:11
问题 Does anyone have examples of how to use DBMS_APPLICATION_INFO package with JBOSS? We have a various applications which run within JBOSS and share db pools. I would like, at the start of each session these applications to identify themselves to the database using DBMS_APPLICATION_INFO so I can more easily track which sections of the application is causing database issues. I'm not too familiar with session life cycles in JBOSS, but at the end of the day, what needs to happen is at the start and

unable to browse queues using jms QueueBrowser

前提是你 提交于 2020-02-05 06:51:31
问题 In the jboss admin-console page I can view the current number of items in my queue. However I'm getting empty enumeration from queueBrowser.getEnumeration(). Below is my code to browse the queue: public class JMSQueueBrowser { private final Log log = LogFactory.getLog(getClass()); private QueueConnectionFactory connectionFactory; private Queue queue; private QueueBrowser qBrowser; private QueueSession qSession; private QueueConnection qConn; public JMSQueueBrowser() { initialize(); } private

Is this a JBOSS web service? Tomcat? How to create a server.xml file?

偶尔善良 提交于 2020-02-05 03:26:45
问题 I am working on a webservice that a previous employee built and I am just trying to figure out what documentation I need to be looking at. I think that the webservice is using JBOSS and therefore using Apache Tomcat. In the project there are several webservices so it is somewhat tricky to tell which is using what. (What are shared files etc). Question Number One : How can I verify that it is using JBOSS? My job is to make the webservice use bi-directional key exchange. I have done this before