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 8738833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T10:48:57+00:00 2026-06-13T10:48:57+00:00

I wrote a plain simple java program to perform remote connection with HornetQ server.

  • 0

I wrote a plain simple java program to perform remote connection with HornetQ server.

Properties p = new Properties();
p.put(Context.INITIAL_CONTEXT_FACTORY, "org.jboss.naming.remote.client.InitialContextFactory");
p.put(Context.PROVIDER_URL, "remote://myIP:4447");
p.put(Context.SECURITY_PRINCIPAL, "user");
p.put(Context.SECURITY_CREDENTIALS, "pwd");

final InitialContext iniCtx = new InitialContext(p);

If JBoss server is down,
final InitialContext iniCtx = new InitialContext(p); statements itself throwing

javax.naming.NamingException: Failed to create remoting connection [Root exception is java.lang.RuntimeException: Operation failed with status WAITING]

Is this valid case, Instantiating InitialContext itself should fail if JBoss server (or any other application server) is down?

If this is valid case,

I have another standalone app (this is not on any server, standalone java application)

Inside this standalone app, I am trying to create IntialContext exact same lines as above.

When JBoss server is down, InitialContext instantiation is not failing.

Totally confused on how this IntialContext works, any input would be appreciated.

Update:

Are there any jars are something which may effect InitialContext behavior?

  • 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-06-13T10:48:58+00:00Added an answer on June 13, 2026 at 10:48 am

    Is this valid case, Instantiating InitialContext itself should fail if JBoss server (or any other application server) is down?

    Yes.

    If this is valid case, I have another standalone app (this is not on any server, standalone java application). Inside this standalone app, I am trying to create IntialContext exact same lines as above. When JBoss server is down, InitialContext instantiation is not failing.

    Really. Hard to believe. What is it doing instead? How do you know the server is down if it doesn’t fail?

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

Sidebar

Related Questions

Consider a simple, single-threaded Java program execution involving no synchronization actions, just plain reads
I recently wrote some data access methods (plain old Java) that use immutable objects
I wrote a game class with coffeescript that displays a plain and a rotating
Wrote a quick Java proggy to spawn 10 threads with each priority and calculate
Is there an already written Java DNS Server that only implements authoritative responses. I
Ihave some codes written in Java. And for new classes I plan to write
I got tomcat running on port 8080 and simple servlet: import java.io.*; import java.text.*;
I'm trying to write a simple paint applet with Java, but I'm having trouble
I am new to Java (but have a fair bit of .NET experience). I
I'm trying create a simple audio stream server like a concept proof, but I'm

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.