Remote restart from Jboss 5.1.0 - jboss

How to do remote restart from JBoss 5.1.0? This is possible only using the JMX interface?
Thanks

Is not possible. There is no method for this operation in the Server bean (jboss.system).

It can be done with JMX, wheter it's via jconsole, the admin-console or JON, all three of those in the end invoke a JMX MBean

Related

How to create separate log file for each server instance running in the jboss domain mode

I'm using jboss 7.2,and I created a log4j2.xml and placed in the server, application running in the domain mode there are two server instance in each ip, application logs are printing only for one server instance and another server instance logs are not printing,how to print the both server instance logs are in separate files.
Is anyone having idea pls help on this.
Sorry....you cannot use log4j2 in JBoss7.2.
Only WildFly 22 supports Log4j2 out of the box.
However, you may implement Log4j2 to other versions of WildFly, according to this tutorial. However I did not try myself.

How to Read message from Jboss JMS Queue using IIB ESB Toolkit

I am working on a small project in which I want to consume the messages from the Jboss JMS Queue using IIB Tool kit. Apologize me that I am a learner in IIB.
The scenario is as below.
The Linux server is where the JBOSS is running and the messages are available in a particular JMS queue. I got IBM Toolkit installed on my laptop/machine and created an application and a flow. I placed the JMSInput from the pallet and got confused on where to configure the connection properties like IP Address, port number, Jboss user, password etc...
The idea is to consume the messages that are available in Linux server using IIB. Request some expert help on how to configure and achieve this requirement.
The jnp based Initial Context Factory seems like not supported in JBOSS 7 anymore. I would use the one described in Remote JNDI Lookup.
I never did an IIB integration with a JMS provider in JBoss, but I did it with a standalone ActiveMQ. There I created a JMSProviders configurable service, where I could configure IP address and port in the jndiBindingsLocation property like this:
mqsicreateconfigurableservice <BROKER> -c JMSProviders -o ActiveMQ \
-n initialContextFactory,jarsURL,jndiBindingsLocation,connectionFactoryName \
-v org.apache.activemq.jndi.ActiveMQInitialContextFactory,c:\Users\daniel\apache-activemq-5.11.1\lib,tcp://localhost:61616,ConnectionFactory
See Securing JMS connections and JNDI lookups how to enter user id and password.

Shutdown remote naming service in Wildfly

I need to shutdown port 1099 in Wildfly 10.1. This port normally used for remote JNDI/RMI and in Wildfly 10.1, the remote naming system has a
[security vulnerability][1].
The straightforward solution will be to configure a firewall to not allow traffic on 1099 port, but this is not acceptable by our client. I thought it possible to configure WF to not use remote JNDI/RMI but can't figure out how to configure it.
The JBoss documentation on Remote JNDI Interface says that you can deactivate the remote JNDI interface by executing the following command via CLI interface:
/subsystem=naming/service=remote-naming:remove
and it seems really stopping the service, but once you do server 'reload' the Wildfly resumes connection on the port 1099.

Hawt IO - To build HawtIO common dashboard for clustered instances of camel application

We are planning to use HAWTIO to monitor the camel instances. Our application is web application which will be running into clustered instances of Websphere application server 7. We want to monitor the clustered instances from different JVM probably from WAS7 JVM or Jboss JVM.
Currently same JVM hawtIO web is working prefectly. Now I want to try remote instances. HawtIO Connect option is used with host and port of remote instances. I think context name or url is not correct to get data from jolokia agent running in remote jvm. Please advice on this.
For WAS7 I would suggest to deploy the jolokia agent as a WAR which is also what jolokia recommends: http://jolokia.org/agent/war.html
You should be able to access that url from a web browser. Then make sure this works first.
Then you can use hawtio to access that url also in the remote connection dialog.

How to setup JNDI name for JBOSS

I have used EJB and have started it on JBOSS Server. I want to test this app so I will use a client to access this. But, I don't know how to set JNDI name for this server.
Please help me.
Unless until different hostname or ipaddress is specified using -b option while starting server. EJB or JBoss JNDI objects can be accessed over localhost on same machine.
Please refer following links which might help you
https://community.jboss.org/wiki/AccessEJBsRemotely
https://community.jboss.org/wiki/NamingContextFactory