Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6598593
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T18:22:13+00:00 2026-05-25T18:22:13+00:00

I have a Web Service ( model-layer ) which communicates with Database. This module

  • 0

I have a Web Service (model-layer) which communicates with Database. This module is responsible of saving and retrieving the data and managing the transaction. Also many BL are defined her. The other isolated web modules use this service to save and retrieve their required data.

Right now the model-layer is becoming bottle neck. I need to change the architecture.

I want to move the Hibernate Entity classes and BL to their respected web modules. So each web module will communicate to same Database. But I do not want a distributed connection pool and transaction maintained on each module.

I know that there should be a way to use a Single Connection Pool for all the distributed web modules. But I need a professional opinion that how should I do that.

I do not want to use the Spring framework, which is already been denied solution by the organization.

Right now I am trying find the solution by saving the serialized object of connection on LDAP and all the modules will use that connection pool. And right now I am scratching my head wondering if I am going in the right direction.

Please guide me to correct path. If spring is the only option then please advise me that as well. I will try to convince my company.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T18:22:14+00:00Added an answer on May 25, 2026 at 6:22 pm

    I guess I have found the Answer.

    I have used a shared DataSource (*-ds.xml) on a single JBoss server.

    Datasource file is as follows

    <datasources>
      <local-tx-datasource>
        <jndi-name>jdbc/wc-mysql</jndi-name>
        <connection-url>jdbc:mysql://MyPC-IP:3306/DB</connection-url>
        <driver-class>com.mysql.jdbc.Driver</driver-class>
        <user-name>xUser</user-name>
        <password>xXxXx</password>
        <exception-sorter-class-name>org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter</exception-sorter-class-name>
    
        <use-java-context>false</use-java-context>
    
        <metadata>
           <type-mapping>mySQL</type-mapping>
        </metadata>
      </local-tx-datasource>
    </datasources>
    

    This DS is available to all the JBoss servers running on different location.

    One thing to make sure that <use-java-context>false</use-java-context> will make the DS publicly available so you need to do the security handshake yourself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web service that queries data from this json file, but I
I have the following project structure: base project (service layer, model) web project webservice
Suppose I have the following (rather common) model Client invokes web service request ->
I have web service, which use integrated security in IIS. Now, I want to
When I call, the service's method, I have Web Service Exception happening which I
I have a web service which has a generic function that returns a dataset
I have a Data Access Layer, a Service Layer, and a Presentation Layer. The
My application I have an application design that looks like this: web application layer
I have a web-service that I will be deploying to dev, staging and production.
I have a web service that I created in C# and a test harness

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.