Questions tagged [proxyfactory]
18 questions
41
votes
2 answers
ProxyFactoryBean in Spring
Can someone explain ProxyFactoryBean in simple terms?
I see this being quoted lot of places.

javaguy
- 4,404
- 10
- 32
- 35
11
votes
5 answers
The ProxyFactoryFactory was not configured
Considering this example as a base example, I created the application but when I execute this application I am getting the following error.
The ProxyFactoryFactory was not configured. Initialize 'proxyfactory.factory_class' property of the…

Meetu Choudhary
- 1,373
- 4
- 14
- 26
8
votes
1 answer
How to configure CommonsPool2TargetSource in spring?
This become pain in my neck!!!
I have three queries.
1)I want to configure CommonsPool2TargetSource in my project for pooling of my custom POJO class.
What I have done so far :
MySpringBeanConfig class :
@Configuration
@EnableWebMvc
…

Satyaprakash Nayak
- 454
- 5
- 22
4
votes
4 answers
The ProxyFactoryFactory was not configured
We have recently upgraded our windows forms C# project from NHibernate 2.0 to 2.1. We updated our app.config to include the "proxyfactory.factory_class" to point to the chosen proxy ("NHibernate.ByteCode.Castle" in our case). After the upgrade the…

Jeremy Odle
- 333
- 2
- 4
- 7
3
votes
2 answers
Is the ProxyFactory replacement in RESTEasy thread safe?
I developed a service in RESTEasy using ProxyFactory and ClientExecutor like this:
PoolingClientConnectionManager connectionManager = new PoolingClientConnectionManager();
DefaultHttpClient httpClient = new…

avillagomez
- 443
- 1
- 8
- 18
3
votes
2 answers
InProcProxyFactory.CreateInstance called from WCF Service
I am trying to use the ServiceModelEx library from IDesign. When I try to call:
InProcFactory.CreateInstance();
from with in a WCF Service (basically calling WCF Service B from WCF Service A), I get the following error:
Could not find dynamic…

user472292
- 1,069
- 2
- 22
- 37
1
vote
0 answers
The correct way to force @Async work using ProxyFactory
Lets suppose we have an Actor interface:
public interface Actor {
...
void doAction(arg1, arg2, etc ...);
}
And we have some implementations:
@Async
void doAction(...) {
Now we implement some lib, that has a map of actors,…

loshad vtapkah
- 429
- 4
- 11
1
vote
0 answers
Zend Framework 2 - BjyAuthorize Entity was not found. in /vendor/doctrine/orm/lib/Doctrine/ORM/Proxy/ProxyFactory.php on line 177
I started a project with Zend Framework 2 and I set up the modules ZfcUser and BjyAuthorize.
The ZfcUser part works correctly but when I active BjyAuthorize an error occurs
Doctrine\ORM\EntityNotFoundException: Entity was not found. in…

lermit4
- 11
- 2
1
vote
0 answers
Alternatives for ClientExecutor and ProxyFactory
This code use to work perfectly for RESTEasy. With the deprecation of ProxyFactory and ClientExecutor I need options.
PoolingClientConnectionManager connectionManager = new PoolingClientConnectionManager();
DefaultHttpClient httpClient = new…

avillagomez
- 443
- 1
- 8
- 18
1
vote
2 answers
Failed opening required 'application/models/proxies/__CG__modelsCountry.php'
I have entities Country and City with relationship OneToMany from Country and ManyToOne from City , which are as follows :
Country.php

prayagupa
- 30,204
- 14
- 155
- 192
0
votes
1 answer
Error creating bean with name bean id "proxy"
applicatonContext.xml
0
votes
2 answers
Interceptor for MongoDB in Java
I'm new to Spring and MongoDB. I'm trying to audit the CRUD operations on MongoDB.
I've found many plugins that audit the changes on MongoDB level, but I'm looking for something like an interceptor or hook (for example, EmptyInterceptor for…

Nimesh Nischal
- 11
- 1
- 2
0
votes
2 answers
Spring Aop ProxyFactoryBean and ProxyFactory and ClassCastException
When i use ProxyFactoryBean to get proxy object, I get a ClassCastException,but when i use ProxyFactory's getProxy() to get a proxy object, it works properly. I use Spring 4.x.
Definition of Two Beans,WaiterTest and Seller:
public class WaiterTest…

S.song
- 1
- 4
0
votes
1 answer
spring-boot 1.4.1 dependency injection difference between @Resource and @Autowired
I have a spring boot bean which is a proxy object for a dynamic data-source object.
@Bean("schemaSwappableDataSource")
public ProxyFactoryBean schemaSwappableDataSource(@Autowired @Qualifier("schemaSwappableDataSourceProxy")…

Amitava Basu
- 1
- 2
0
votes
0 answers
Spring Java Config: How to create ProxyFactoryBean with package-private target class constructor
Given the following Java code (from a 3rd-party-library outside of my control):
package some.third.party.lib;
interface MyInterface { ... }
and the following class A with a package-private constructor (this is its only constructor):
package…

ptikobj
- 2,690
- 7
- 39
- 64