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
1 answer

Spring application context reloading doesn't update bean registered by DelegatingFilterProxy

In app we have functionality of update configuration on fly. It overrides application properties and call: ((ConfigurableApplicationContext)applicationContext).refresh(); We are also using DelegatingFilterProxy to register Spring bean as a…
smolarek999
  • 509
  • 1
  • 5
  • 21
0
votes
1 answer

Initializing Spring in not-web annotation-configured application

My java app is using Spring stereotype annotations (@Controller, @Component) and autowire annotations to manage dependency injections. It is not web application, just plain jar. Also it's pure-annotation based code, i.e. no xml at all. What is…
setec
  • 15,506
  • 3
  • 36
  • 51
0
votes
1 answer

Problems when splitting up applicationContext to multiple file for portlets

I have a plugin project containing two portlets. For each portlet I defined its own applicatioContext file which works well but I have to put some definitions in each applicationContext.xml redundantly which I want to avoid. I'd prefer to put this…
du-it
  • 2,561
  • 8
  • 42
  • 80
0
votes
1 answer

Learn about the architecture or relationship between CXF, Spring, JAXWS, etc

I was thrown into a CXF-based project in which the basic HowTo tutorials are easy to follow and implement but the moment there is a problem or a bug in the system, all kinds of exceptions are thrown without me understanding any of the relationship…
Introspective
  • 554
  • 2
  • 5
  • 13
0
votes
1 answer

Bean ID for the list of items produced by Spring Batch

In Spring Batch, after a ItemReader or ItemProcessor returns it's item object, the framework puts that item into an ArrayList to be passed to the ItemWriter. I need to gain access to that ArrayList of items in an ItemProcessor. The core…
cyotee doge
  • 1,128
  • 4
  • 15
  • 33
0
votes
0 answers

Application-wide process in SpringMVC

Suppose I have a certain operation that should be available to every process running in Spring MVC. Say string normalization-- i need to run a method that normalizes the string fields before doing anything else on that form/data. One thing…
Roam
  • 4,831
  • 9
  • 43
  • 72
0
votes
0 answers

Java Spring inheritance with applicationContext

The problem: the content div does not show the image string when i run it in chrome, i guess it's null altrough i set it's value in the applicationContext class. The itemList model attribute is not null, i can see the id of the objects. The…
DennisVA
  • 2,068
  • 1
  • 25
  • 35
0
votes
0 answers

Spring - Set properties before load resources in applicationContext

in my applicationContext.xml I have a list of spring cfg files.
Fabio
  • 109
  • 1
  • 7
0
votes
2 answers

How to get parameter/attribute from applicationContext.xml file

Application Context file contains applicationContext.xml
stackoverflow
  • 18,348
  • 50
  • 129
  • 196
0
votes
1 answer

Remote EJB 3.0 lookup (STS 3.4.0, Weblogic 10.3.5)

I have a Spring MVC 3.1.1 application which need to look up a remote EJB 3.0 deployed into Weblogic 10.3.5. The Spring application run inside the local server VMware vFabric tc S.D.E. 2.9, also Weblogic is local and started by STS 3.4.0 I've tried…
user2955469
  • 1
  • 1
  • 1
0
votes
0 answers

MyBatis Configuration issue in Spring

When I configure my spring project to use Mybatis, I added the following to the applicationContext.xml
Ginto Hewoo
  • 73
  • 1
  • 1
  • 8
0
votes
2 answers

Load Quartz cron job from Springs application context each time

I scheduled quartz jobs using the spring application context to run each night. Now I want to change the cron job for an already running application so it runs an hour later. We want to change the cron job in the application context and then restart…
Stijnvdk
  • 556
  • 4
  • 7
  • 20
0
votes
0 answers

Android library project with no Activities but with resources. Best approach?

So currently i have a library project that contains no Activities whatsoever, but it does have resource files, like layouts for compound views and strings that are accessible from dialogFraments and normal classes. Currently this library project…
Maxrunner
  • 1,955
  • 4
  • 24
  • 41
0
votes
2 answers

The hibernate sessionFactory is always null in my DAO for a regular java class

I see so many questions on this and have tried numerous permutations of the many different solutions and none have worked. I have a dao that requires a hibernate sessionfactory to do transactions. In the SpringMVC Context I've seen it working but…
0
votes
0 answers

Weblogic - Spring Injection can not find variable in the applicationContext

I'm trying to deploy an application in weblogic 10gR3 but I'm having problems with beans initialitation if need a dymanic variable from the application context: I need to put in the appication context some url to be used by webservices…
gleX
  • 595
  • 2
  • 8
  • 22