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

  • SEARCH
  • Home
  • 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 6221443
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:08:05+00:00 2026-05-24T08:08:05+00:00

I deploy the rar file by placing it in the deployment folder in jboss

  • 0

I deploy the rar file by placing it in the deployment folder in jboss as 7. Later deploy my war file.

This connector in bound to a JNDI location by definition inside standalone.xml.

When it is deployed the createConnectionFactory(ConnectionManager cm) is executed by default.

I do some house keeping in this method with help of classloader

ClassLoader contextClassLoader = Thread.currentThread().getContextClassLoader();

The createConnectionFactory(ConnectionManager cm) method is again executed when I try to access the adapter using an ejb

Problem is initially at the time of deploying the contextClassLoader is null. Later it has a value when called from ejb. Effectively my housekeeping fails.

Question :

  1. createConnectionFactory(ConnectionManager cm) is executed at the time of deployment => is this the proper behaviour ?

  2. How can I configure ironJacamar/jboss not to execute this method at the time of deployment ?

Other info : Jboss As7, NetBeans 7 , Jdk1.7

Edit :
The above behavior is correct. The adapter I am using requires that the classloader used at the time of deployment has to be same as the one used at runtime. By default it uses Thread.currentThread().getContextClassLoader(). I changed it to use ClassLoader cl = MyManagedConnectionFactory.class.getClassLoader();

  • 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-24T08:08:06+00:00Added an answer on May 24, 2026 at 8:08 am

    createConnectionFactory(ConnectionManager cm) is executed at the time of deployment => is this the proper behaviour ?

    If you have a ConnectionFactory definition then I would expect to see this method called, as the container creates and binds a ConnectionFactory definition in the JNDI namespace – the fact that you’re getting the call taking a ConnectionManager shows that this is executing in the managed scenario.

    Chapter six of the JCA specification describes this area of a resource adapter in a lot of detail, so I would have thought a definitive answer is there. edit: chapter 17 is also likely relevant.

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

Sidebar

Related Questions

I am trying to deploy a war file to tomcat 6.0.27. This war file
How to deploy rar/ear/war file to IBM Web Sphere Application Server 7.0 using maven
I am trying to deploy the sample-app war file that comes with PushSDK.But was
When I try to deploy a WAR file by dropping it into webapps directory,
I got this error in Catalina.2011-03-30.log when my display.war file executed on Tomcat. The
Possible Duplicate: deploy war in Tomcat I Deployed solr.war in tomcat webapps folder and
At present we deploy to JBoss 4.2 as this is the application server deployed
when i deploy my war into TomCat i have this error: 14 sept. 2010
What would be the mechanism to deploy rar artifacts if they are not present
I use to deploy tomcat webapps through eclipse but I have this error: WARNING:

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.