Installing and Deploying J2EE Package in JBoss Server

This section helps you to install and deploy the J2EE package in the JBoss server.

Procedure:

  1. Update the entries in the spring-beans.xml file as shown below.

    <bean name="dataSource"
       class="org.springframework.jdbc.datasource.DriverManagerDataSource">
            <property name="driverClassName"
                value="#{dbProperties['driver']}" />
            <property name="url" value="#{dbProperties['connectionurl']}" >
            <property name="username" value="#{dbProperties['username']}" >
            <property name="password" value="#{dbProperties['password']}" >
        </bean>
     
    <property name="jpaProperties">
         <props>
            <prop key="hibernate.dialect">#{dbProperties['dialect']}</prop>
                    <prop key="javax.persistence.schema-generation.database.action">none</prop>
                    <prop key="hibernate.show_sql">false</prop>
                    <prop key="hibernate.hbm2ddl.auto">update</prop>
                    <prop key="database">#{dbProperties['database']}</prop>
                    <prop key="hibernate.generate_statistics">true</prop>
                </props>
            </property>
    
  2. Deploy the J2EE EAR file in the JBoss application server.
  3. Check the JBoss console to ensure the successful deployment of the package.

  4. You can now launch the API URLs in postman and verify the responses. The following screen capture shows the sample request and response.


Bookmark Name Actions
Feedback
x