[JBoss/Spring Integration] - Re: Spring Component Auto Detection
by mike_mackey
Well I'm having all sorts of problems :-)
My main problem at the moment (which I should open a seperate thread either here or on the spring forums) is dependency injection has stopped working for me.
What I had working in a single war was a data access object defined like so
| @Repository
| public class HibernateDomainObjectDao extends HibernateDaoSupport implements DomainObjectDao {
|
|
and a service class using it like
| @Service
| public class DomainObjectServiceImpl implements DomainObjectService {
|
| private DomainObjectDao domainObjectDao;
|
| private static Logger log = Logger.getLogger(DomainObjectServiceImpl.class);
|
| public DomainObjectServiceImpl()
| {
| log.error("CONSTRUCTED DomainObjectServiceImpl");
| }
|
| @Resource
| public void setDomainObjectDao(DomainObjectDao domainObjectDao)
| {
| log.error("setDomainObjectDao");
| this.domainObjectDao = domainObjectDao;
| }
|
So like I said ... all fine and working properly in standalone war. However when I moved all of classes into a seperate jar and deployed it as a jar+war in an ear suddenly it stopped working. I see everything created but the set is never called. So dependency injection isnt working ?
I know ... new thread ... but is it a Jboss issue or a spring issue ?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240060#4240060
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240060
16 years, 10 months
[JBoss Messaging] - Thread Pool questions
by andy.miller@jboss.com
Within AS 5.1.0 and JBM 1.4.3, I'm curious how the various pools interact. When I have an EJB 3 application with stateless session beans that enqueue a message and it gets dequeued by an EJB 3 MDB, what pools are actually being used?
In my specific case, everything is within the VM, so I have a servlet calling the SSB, which enqueues a message, and an MDB consumes the message.
So, what appears to be happening is the thread pool in the servlet container runs the servlet that calls the SSB, and the SSB call, since its in VM stays executing on that thread (http thread pool), and then when the message is enqueued from the SSB, it is running on the JCA WorkManager thread (inflow), and when its dequeued from the MDB its on the JCA WorkManager thread as well, and I don't see that the thread pool for JBM is being used, but maybe it is.
Also, in looking through the documentation, there appears to be two pools for JBM. One is the TCP connection pool, controlled in the remoting-bisocket-service.xml with the JBM_clientMaxPool setting, which would seem to only be used if the client was remote, and the documentation states a clientMaxPool which seems to be an actual thread pool for execution, but I don't find it in the actual configuration anywhere.
So, are either of those two pools actually used in my example case?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240058#4240058
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240058
16 years, 10 months
[Beginners Corner] - JBossAS V5.1 - installing/config of JTS not working
by scarceller
I installed JBossAS V5.1 and started it up in the default configuration all was well.
But, I need to replace the default JTA with JTS so that I can have XA transactions span multiple JBoss servers.
I went to jboss-5.1.0.GA/docs/examples/transactions and followed the readme file for howto install JTS by hand (did not do 'ant jts'). First, the readme is not that clear because it tells you to modify certain .xml files and most can be found in the \server\default\config directory but others such as the conf\jacorb.properties is not located in the default server dir and multiple copies are found under the jboss-5.1.0.GA\ directory. In the end the readme is not specific enough to get JTS configured.
Has anyone successfully installed/configured JTS in V5.1?
Right now I get a bunch of errors when I start the server like these:
------------
2009-06-25 09:39:10,343 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to PreInstall: name=TransactionManager state=Real
java.lang.RuntimeException: Error creating annotation for @org.jboss.aop.microcontainer.aspects.jmx.JMX(name="jboss:service=TransactionManager",
exposedInterface=com.arjuna.ats.jbossatx.jts.TransactionManagerServiceMBean.class, registerDirectly=true)
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "CachedConnectionManager" is missing the following dependencies:
Dependency "TransactionManager" (should be in state "Configured", but is actually in state "**ERROR**")
Deployment "DefaultUserTransactionprovider" is missing the following dependencies:
Dependency "<UNKNOWN DefaultUserTransactionprovider>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'TransactionManager' **")
Deployment "JBossTimerServiceFactory" is missing the following dependencies:
Dependency "jboss.ejb:service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")
Deployment "RealTransactionManager" is missing the following dependencies:
Dependency "TransactionManager" (should be in state "Instantiated", but is actually in state "**ERROR**")
Deployment "UnifiedInvoker" is missing the following dependencies:
Dependency "TransactionManager" (should be in state "Create", but is actually in state "**ERROR**")
Deployment "WebServer" is missing the following dependencies:
Dependency "jboss.jca:service=CachedConnectionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **")
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "WorkManager" is missing the following dependencies:
Dependency "TransactionManager" (should be in state "Configured", but is actually in state "**ERROR**")
Deployment "jboss.admin:service=PluginManager" is missing the following dependencies:
Dependency "jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.ejb:persistencePolicy=database,service=EJBTimerService" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.ejb:service=EJBTimerService" is missing the following dependencies:
Dependency "jboss.ejb:persistencePolicy=database,service=EJBTimerService" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:service=WorkManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **")
Deployment "jboss.jca:name='jboss-xa-jdbc.rar',service=RARDeployment" is missing the following dependencies:
Dependency "jboss.jca:service=WorkManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **")
Dependency "jboss:service=TransactionManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss.jca:name='jms-ra.rar',service=RARDeployment" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:service=WorkManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **")
Deployment "jboss.jca:name='mail-ra.rar',service=RARDeployment" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:service=WorkManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **")
Deployment "jboss.jca:name='quartz-ra.rar',service=RARDeployment" is missing the following dependencies:
Dependency "jboss.jca:service=WorkManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **")
Dependency "jboss:service=TransactionManager" (should be in state "Configured", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=LocalTxCM" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=DefaultDS,service=LocalTxCM" is missing the following dependencies:
Dependency "jboss.jca:service=CachedConnectionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **")
Dependency "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss.jca:name=DefaultDS,service=ManagedConnectionFactory" is missing the following dependencies:
Dependency "jboss.jca:name='jboss-local-jdbc.rar',service=RARDeployment" (should be in state "Create", but is actually in state "Instantiated")
Deployment "jboss.jca:name=DefaultDS,service=ManagedConnectionPool" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=ManagedConnectionFactory" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=JmsXA,service=ConnectionFactoryBinding" is missing the following dependencies:
Dependency "jboss.jca:name=JmsXA,service=TxCM" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.jca:name='jms-ra.rar',service=RARDeployment" (should be in state "Create", but is actually in state "Instantiated")
Deployment "jboss.jca:name=JmsXA,service=ManagedConnectionPool" is missing the following dependencies:
Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionFactory" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jca:name=JmsXA,service=TxCM" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:name=JmsXA,service=ManagedConnectionPool" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.jca:service=CachedConnectionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **")
Deployment "jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor" is missing the following dependencies:
Dependency "jboss:service=invoker,type=jrmp" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.jmx:name=MBeanProxyRemote,protocol=jrmp,type=adaptor" is missing the following dependencies:
Dependency "jboss.jmx:name=Invoker,protocol=jrmp,service=proxyFactory,type=adaptor" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ClusteredConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.connectionfactory:service=ConnectionFactory" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.destination:name=DLQ,service=Queue" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging.destination:name=ExpiryQueue,service=Queue" is missing the following dependencies:
Dependency "jboss.messaging:service=PostOffice" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging:service=JMSUserManager" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging:service=PersistenceManager" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging:service=PostOffice" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.messaging:service=ServerPeer" is missing the following dependencies:
Dependency "jboss.messaging:service=PersistenceManager" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.messaging:service=JMSUserManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.mq:service=DestinationManager" is missing the following dependencies:
Dependency "jboss.messaging:service=ServerPeer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/ROOT" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/admin-console" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/invoker" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/jbossws" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/jmx-console" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss.web.deployment:war=/web-console" is missing the following dependencies:
Dependency "jboss.web:service=WebServer" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss.admin:service=PluginManager" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss:service=ClientUserTransaction" is missing the following dependencies:
Dependency "jboss:service=proxyFactory,target=ClientUserTransaction" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss:service=proxyFactory,target=ClientUserTransactionFactory" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss:service=KeyGeneratorFactory,type=HiLo" is missing the following dependencies:
Dependency "jboss.jca:name=DefaultDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "Configured")
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss:service=invoker,type=jrmp" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss:service=invoker,type=local" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss:service=invoker,type=pooled" is missing the following dependencies:
Dependency "jboss:service=TransactionManager" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss:service=proxyFactory,target=ClientUserTransaction" is missing the following dependencies:
Dependency "jboss:service=invoker,type=unified" (should be in state "Create", but is actually in state "Configured")
Deployment "jboss:service=proxyFactory,target=ClientUserTransactionFactory" is missing the following dependencies:
Dependency "jboss:service=invoker,type=unified" (should be in state "Create", but is actually in state "Configured")
Deployment "vfsfile:/C:/jboss-5.1.0.GA/server/default/deploy/profileservice-secured.jar/" is missing the following dependencies:
Dependency "interface javax.transaction.TransactionManager" (should be in state "Real", but is actually in state "** NOT FOUND Depends on 'interface javax.transaction.TransactionManager' **")
Dependency "interface javax.transaction.TransactionManager" (should be in state "Real", but is actually in state "** NOT FOUND Depends on 'interface javax.transaction.TransactionManager' **")
Dependency "interface javax.transaction.TransactionManager" (should be in state "Real", but is actually in state "** NOT FOUND Depends on 'interface javax.transaction.TransactionManager' **")
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240053#4240053
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240053
16 years, 10 months
[JBossWS] - Problem on receiving an object holding datetime
by joaobmonteiro
Hi guys,
I have many services that use complex objects holding datetime (java.util.Date) values. The problem is that I always get null for datetime attributes. How can I solve this?
I'm using JBoss AS 4.2.3-jdk6 and my ws clients are written in Delphi 7.
My classes:
| public class Document implements Serializable {
|
| private static final long serialVersionUID = 2964445290986713245L;
| private Date date;
| //getters and setters
| }
|
My ws looks like this:
| @Stateless
| @WebService
| @SOAPBinding(style=Style.RPC)
| public class DateServices {
|
| @WebMethod
| public Date dateNow(){
| return new Date();
| }
| @WebMethod
| public void printDate(@WebParam(name="documento", mode=Mode.IN) Documento documento){
| if(documento.getDate() == null)
| return;
| SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
| String data = dateFormat.format(documento.getDate());
| System.out.println(data);
| }
| }
|
Regards,
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4240043#4240043
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4240043
16 years, 10 months