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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T06:57:08+00:00 2026-06-04T06:57:08+00:00

In spring you always use the web.config / app.config for storing your objects like

  • 0

In spring you always use the web.config/app.config for storing your objects like so:

<spring>
    <context>
        <resource uri="config://spring/objects"/>
    </context>
    <objects>
        <description>An  example that demonstrates simple IoC features.</description>
    </objects>
</spring>

or

<resource uri="~/config/objects.xml" />

As sometimes I’m running under some service which doesn’t have this web.config I’d like to add my objects to a resource file (*.resx).

How would I do that, so i can get a full IApplicationContext as if I would call IApplicationContext ctx = ContextRegistry.GetContext();?

So basically instead of using the web.config I want to use a resource file to store my objects and initialize my application context with those objects.

  • 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-04T06:57:09+00:00Added an answer on June 4, 2026 at 6:57 am

    The mechanics aren’t quite the same as defining your objects in a RESX file (which isn’t supported at all), but you can easily achieve what’s probably your underlying goal: having your config internalized within your assembly rather than externalized into a separate XML file (web.config, app.config, or even just a stand-alone anything.xml file).

    You can do this using Spring.NET’s assembly:// resource prefix (e.g., assembly://MyAssembly/MyService/objects.xml)/ See http://www.springframework.net/doc-latest/reference/html/objects.html#d4e412 for more details.

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

Sidebar

Related Questions

I've always used Spring's dependency injection to get datasource objects and use them in
I'm always struggling with something like the following Java example: String breads[] = {Brown,
Is Spring.NET a good framework to use in web development? Are there alternatives? Update
I'm working in a web applications and always i need to use some keys
I got an small problem, I always worked with Hibernate and Spring on Web
I am building a new web app and I am using Spring, JPA/Hibernate, and
I'm developing a spring based web application that is deployed on Google app Engine.
One should always use std::string over c-style strings( char * ) is advice that
I'm doing some Spring development and I'm trying to decide if libraries should always
I need to break apart a string that always looks like this: something --

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.