How to change Default Ports in JBoss Application Server

These are the default ports in JBoss Application Server TCP 1090 – RMI/JRMP socket for connecting to the JMX MBeanServer TCP 1091 – RMI server socket TCP 1099 – JNDI Service TCP 1098 – RMI Port for JNDI Service TCP 4446 – JBoss Remoting Connector TCP 4712 – JBossTS Service

Continue reading »

Topic Send and Topic Receive demo on JBoss Application Server

1 )Create a topic Add the following in the \deploy\messaging\destinations-service.xml file   <mbean code="org.jboss.jms.server.destination.TopicService" name="jboss.messaging.destination:service=Topic,name=Topic1" xmbean-dd="xmdesc/Topic-xmbean.xml"> <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends> <depends>jboss.messaging:service=PostOffice</depends> </mbean> 2) Copy the TopicSend and TopicReceive programs to a folder. TopicSend import java.io.*; import java.util.*; import javax.transaction.*; import javax.naming.*; import javax.jms.*; import javax.rmi.PortableRemoteObject; public class TopicSend { // Defines the

Continue reading »

Starting a specific JBOSS server profile and a specific ip-address

 A. Starting a specific JBOSS server profile : 1. Navigate to the path …\jboss-eap-5.1\jboss-as\server 2. The server folder has different profile. Create a duplicate copy of the default folder and rename it to server1. We can  customize this profile and start it. 3. To start server1 , navigate to the path …\jboss-eap-5.1\jboss-as\bin\ and open the command prompt. 4. Enter the command  run

Continue reading »

Installing JBoss EAP as a windows service

1. Copy …\jboss-ep-5.1\native\sbin to …\jboss-eap-5.1\jboss-as\bin 2.  Locate the cmd.exe file in the path  C:\Windows\System32\ and right click to Run as administrator. The following command prompt is displayed: 3.  Navigate to the path  …\jboss-eap-5.1\jboss-as\bin\ in the command prompt and execute the command service.bat install The service JBEAP5SVC -SERVER1 has been created. 4. We can start and

Continue reading »

Managing Password in JBOSS EAP

1. Navigate to …\jboss-eap-5.1\jboss-as\server\server1\conf\props . 2.  Open the jmx-console-roles.properties file and add roles as required.  I added the role saky , which I use to  login to jmx-console. Refer the sample file # A sample roles.properties file for use with the UsersRolesLoginModule admin=JBossAdmin,HttpInvoker saky=JBossAdmin,HttpInvoker 3. Similarly, Open the jmx-console-users.properties file and edit passwords for the users.  # A

Continue reading »

Starting the default JBOSS server

1. Navigate to the path …\jboss-eap-5.1\jboss-as\bin\ and open the command prompt. 2. Enter the command run.bat to start the JBOSS server Once, the command is executed the  default profile for  JBOSS server starts   3. To check the console, go to http://localhost:8080/admin-console 4. Enter the Username and Password (I have used Admin credentials to log in, we will

Continue reading »

NodeManager issues during oracle weblogic server environment setup

I/O error while reading domain directory: java.io.FileNotFoundException: Domain directory ‘D:\bea\wlserver_10.3\common\nodemanager’ invalid (domain salt file not found We need to to nmEnroll and restart the nodemanager to fix this error. weblogic.nodemanager.common.ConfigException: Native version is enabled but node manager native library could not be loaded You need to set the LD_LIBRARY_PATH for

Continue reading »

common database related issues with Weblogic Server

<BEA-001112> <Test “SELECT 1 FROM DUAL” set up for pool “Test” failed with exception: “java.sql.SQLException: Io exception: Connection reset by peer: socket write error”.> Network or the DBMS is killing the connection, you need to check with the Database Admin and the network Admin.   java.lang.ClassCastException: oracle.jdbc.driver.LogicalConnection incompatible with oracle.jdbc.OracleCo

Continue reading »

WLST Script to deploy jar file on Weblogic Server

print 'deploying jar…' connect('weblogic','weblogic123','t3://localhost:7001') try: undeploy('app') print 'Redeploying' except Exception: print 'Deploy' status = deploy(appName='app', path='app.jar',targets='AdminServer,', libraryModule='true') print status

Continue reading »

Sample JMX Code to retrieve JDBC Connection Pool Parameter

import java.io.IOException; import java.util.*; import javax.management.*; import javax.management.remote.*; import javax.naming.Context; import weblogic.jndi.Environment; import weblogic.management.*; public class JDBCConnectionPoolProperties { static MBeanServerConnection connection; static JMXConnector connector; static ObjectName service; public static void main(String[] args) { try { JMXServiceURL serviceURL = new JMXServiceURL("t3", "localhost", 80, "/jndi/weblogic.management.mbeanservers.domainruntime"); service = new ObjectName( "com.bea:Name=DomainRuntimeService,Type=weblogic.management.mbeanservers.domainruntime.DomainRuntimeServiceMBean"); Hashtable h

Continue reading »