Questions tagged [applicationcontext]

The Spring `ApplicationContext` class

The Spring ApplicationContext class is the central interface to provide configuration to any Spring application.

869 questions
0
votes
3 answers

Accessing variables from my Activity Class

I've created some getters setters in my Application class as so: public class myApp extends Application{ //"Global" variables private Boolean musicEnabled = true; //Music on or off? private Boolean soundEnabled = true; //Sound…
Zippy
  • 3,826
  • 5
  • 43
  • 96
0
votes
1 answer

spring context:property-placeholder only loads file with the very specific name jdbc.properties

I'm using spring 3.0 and trying to load a properties file: ... ... Using a xpto.properties, when I try to use any parameter…
0
votes
0 answers

Spring runtime app dependency by a Swing application, How to start the Spring context?

I have 2 applications. One is a swing application let's call it SWING_ONE, the other one is a JSE Spring enabled one with a Spring Context and it's used to communicate to webservices let's call is SPRING_ONE. Now, I need SWING_ONE to start…
Cristiano Fontes
  • 4,920
  • 6
  • 43
  • 76
0
votes
1 answer

Spring 3.2 security filter without contextListener

I am trying to implement security on my app: I have an application that uses web.xml as follows: myapp tmodel
0
votes
3 answers

How to create Window.Forms.Form from Socket Thread

I'm writing a small app that will be the endpoint for NLog Network targets (Sending debug messages over TCP) The app uses Sockets to create a server and accept connections. This application is windowless and starts up in the System Tray using…
Tim D.
  • 119
  • 10
0
votes
1 answer

Using multiple Projects in NotifyIcon Application

So I have the weirdest of all problems. I just wanted to write a simple c# WinForms tool for personal use when I ran into it. I`ll begin at the very start, the real question will be at the very end. So I made a NotifyIcon Application. This is very…
0
votes
2 answers

How do I create a bean initialized my properties in my properties file?

I'm using Spring 3.1.1.RELEASE. In my application context, I'm trying to setup a bean with a constructor based on properties from a properties file. Here is my application context ...
Dave
  • 15,639
  • 133
  • 442
  • 830
0
votes
2 answers

Spring Dependency Injection from JAR

I have dao layer which is in project A and project B is application layer which uses project A as it's dependency I can see the classes from project A and coded perfectly in project B using those classes. Now I want to do JUnit testing in A…
RaceBase
  • 18,428
  • 47
  • 141
  • 202
0
votes
1 answer

Spring 3 and Struts2 Integration Autowiring

This is my eventAction ActionSupport Class public class EventAction extends ActionSupport { protected EventService eventService; protected String redirectUrl; public String getRedirectUrl() { return redirectUrl; } …
KyelJmD
  • 4,682
  • 9
  • 54
  • 77
0
votes
2 answers

Spring MVC: multi module project - cannot import bean definitions from one module to another

I have a maven project which consist of two maven modules: web module and persistence module. On web module Spring MVC is used. web.xml:
Don_Quijote
  • 936
  • 3
  • 18
  • 27
0
votes
1 answer

applicationcontext.xml spring servrices from another jar

Quick question. Can you reference Spring classes in the applicationContext.xml, when they are in another jar which you webApp uses? The JAR (a common jar that contains all my servries and daos etc) is in the WAR file, but when I try to reference a…
KS1
  • 1,019
  • 5
  • 19
  • 35
0
votes
1 answer

Unable to create Spring.net object from MVC application

I'm building a MVC 4 application with Spring support. My Web.config looks like following
usr-local-ΕΨΗΕΛΩΝ
  • 26,101
  • 30
  • 154
  • 305
0
votes
2 answers

How do I set up a web service client in my spring application context?

I'm using Maven 3.0.3 and Spring 3.1.1.RELEASE. I would like to autowire a web service client, whose classes I'm generating with the jaxws-maven-plugin ... org.codehaus.mojo
Dave A
  • 2,780
  • 9
  • 41
  • 60
0
votes
1 answer

How can we flow user session from one spring application context to another?

How can we flow user session from one spring application context to another? Basically I have one spring application representing Web Layer and another spring application representing REST layer. I want when Web Layer access the REST layer the…
shaILU
  • 2,050
  • 3
  • 21
  • 40
0
votes
2 answers

How to have different context config files for different environments in spring MVC

On my local machine I'm developing using a certain db (sql server), however, when I deploy to the development environment we are running mysql. So everytime before deploying I have to change certain properties in the config file. Properties…
birdy
  • 9,286
  • 24
  • 107
  • 171