[EJB 3.0 Development] New message: "How to get all session beans from JBoss server"
by Thomas Bartsch
User development,
A new message was posted in the thread "How to get all session beans from JBoss server":
http://community.jboss.org/message/525022#525022
Author : Thomas Bartsch
Profile : http://community.jboss.org/people/tbar0711
Message:
--------------------------------------------------------------
Hi,
I'm using JBoss 4.2.3. At the moment I'm programming a short application. This application should locate all session beans in an deployed ear-file. Then I should be able to make a reflection to each session bean and find out which annotations it implements.
Currently I have the problem that I don't know how to get all the beans as classes without knowing the name of the beans. Perhaps it is possible to get all beans as classes to be able to make reflections and identify the session beans by analyzing their annotations?
Hope anybody can help.
Regards
Tom
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/525022#525022
16 years, 5 months
[JBoss Remoting] New message: "JBoss Remoting in AS Cluster"
by Wolfgang Medlitsch
User development,
A new message was posted in the thread "JBoss Remoting in AS Cluster":
http://community.jboss.org/message/525019#525019
Author : Wolfgang Medlitsch
Profile : http://community.jboss.org/people/medlW
Message:
--------------------------------------------------------------
Additionally to the post in the AS Clustering Community I post it also here:
I configured and deployed a simple Remoting Application into a 4.2.2 AS and run it successfully (below my mbean-definition). I set up a 2-node cluster using the default cluster configuration by starting each server with "run -c all" (having prooved that the node did recognise each other). Then I ran over some seconds hundreds of calls in different threads using different connections. Only the Server which is contained in thelocatorUrl did respond. Principally what do I have to do to run the JBoss Remoting in a cluster and observe some sort of load balancing?
Do I have to use a special connector or transport? What about Cluster-Policy-Hints like @Clustered(loadBalancePolicy="RoundRobin"....?
Her the simple mbean definition:
<server>
<mbean code="org.jboss.remoting.transport.Connector"
name="jboss.remoting:service=Connector,transport=Socket"
display-name="Socket transport Connector">
<attribute name="InvokerLocator">
<![CDATA[socket://localhost:5400]]>
</attribute>
<attribute name="Configuration">
<config>
<handlers>
<handler subsystem="cluster">medl.remoting.cluster.server.SimpleInvocationHandler</handler>
</handlers>
</config>
</attribute>
</mbean>
</server>
Thanks in advance
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/525019#525019
16 years, 5 months
[jBPM] New message: "Re: Installing jBPM 4.3 in tomcat 5.5"
by MOULRON Diogène
User development,
A new message was posted in the thread "Installing jBPM 4.3 in tomcat 5.5":
http://community.jboss.org/message/524988#524988
Author : MOULRON Diogène
Profile : http://community.jboss.org/people/thingol
Message:
--------------------------------------------------------------
Hi,
to install jbpm on tomcat 5.5 you need to :
Download xercesImpl-2.8.1.jar and install it on common\lib. Launch tomcat with environnement variable :
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser
-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl
-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
Get all lib from apache-tomcat-6.0.20\lib and add them in jbpm-console\WEB-INF\lib.
Add commons-collections-3.2.1.jarin the same folder
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524988#524988
16 years, 5 months
[Datasource Configuration] New message: "Re: How to configure Oracle with my application in jboss 5.0"
by Anand Kumar
User development,
A new message was posted in the thread "How to configure Oracle with my application in jboss 5.0":
http://community.jboss.org/message/524986#524986
Author : Anand Kumar
Profile : http://community.jboss.org/people/akstifr
Message:
--------------------------------------------------------------
Thank you for your reply
Even after doing that i am unable to connect to Oracle database. I have placed driver file i.e ojdbc14.jar file in lib folder of default configuration.
It is giving the following errors:
14:26:02,015 INFO [ProxyFactory] Bound EJB Home 'CommandExecutor' to jndi 'jbpm/CommandExecutor'
14:26:02,078 INFO [BaseLocalProxyFactory] Bound EJB LocalHome 'Timer' to jndi 'java:jbpm/Timer'
14:26:02,078 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@94d3fb(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)180babf destination=queue/JbpmCommandQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=30000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10)
javax.naming.NameNotFoundException: queue not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:713)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:673)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.jboss.util.naming.Util.lookup(Util.java:222)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setupDLQDestination(AbstractDLQHandler.java:106)
at org.jboss.resource.adapter.jms.inflow.dlq.AbstractDLQHandler.setup(AbstractDLQHandler.java:82)
at org.jboss.resource.adapter.jms.inflow.dlq.JBossMQDLQHandler.setup(JBossMQDLQHandler.java:48)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDLQ(JmsActivation.java:413)
at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:351)
at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)
at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:204)
at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
14:26:02,140 ERROR [ProfileServiceBootstrap] Failed to load profile: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
*** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
jboss.jca:name=JmsXA,service=ConnectionFactoryBinding
-> jboss.jca:name=JmsXA,service=TxCM{Create:Configured}
jboss.jca:name=JmsXA,service=ManagedConnectionFactory
-> jboss.messaging:service=ServerPeer{Create:**ERROR**}
jboss.jca:name=JmsXA,service=ManagedConnectionPool
-> jboss.jca:name=JmsXA,service=ManagedConnectionFactory{Create:Configured}
jboss.jca:name=JmsXA,service=TxCM
-> jboss.jca:name=JmsXA,service=ManagedConnectionPool{Create:Configured}
jboss.messaging.connectionfactory:service=ClusterPullConnectionFactory
-> jboss.messaging:service=ServerPeer{Create:**ERROR**}
-> jboss.messaging:service=PostOffice{Create:Configured}
jboss.messaging.connectionfactory:service=ClusteredConnectionFactory
-> jboss.messaging:service=PostOffice{Create:Configured}
-> jboss.messaging:service=ServerPeer{Create:**ERROR**}
jboss.messaging.connectionfactory:service=ConnectionFactory
-> jboss.messaging:service=ServerPeer{Create:**ERROR**}
-> jboss.messaging:service=PostOffice{Create:Configured}
jboss.messaging.destination:name=DLQ,service=Queue
-> jboss.messaging:service=PostOffice{Create:Configured}
-> jboss.messaging:service=ServerPeer{Create:**ERROR**}
jboss.messaging.destination:name=ExpiryQueue,service=Queue
-> jboss.messaging:service=ServerPeer{Create:**ERROR**}
-> jboss.messaging:service=PostOffice{Create:Configured}
jboss.messaging:service=PostOffice
-> jboss.messaging:service=ServerPeer{Create:**ERROR**}
jboss.mq.destination:name=JbpmCommandQueue,service=Queue
-> jboss.mq:service=DestinationManager{Create:Configured}
jboss.mq:service=DestinationManager
-> jboss.messaging:service=ServerPeer{Create:**ERROR**}
*** CONTEXTS IN ERROR: Name -> Error
jboss.messaging:service=ServerPeer -> java.lang.IllegalStateException: Failed to execute transaction | **ERROR**
jboss.ejb:service=EJB3TimerService -> org.quartz.SchedulerConfigException: Failure occured during job recovery. [See nested exception: org.quartz.impl.jdbcjobstore.LockException: Failure obtaining db row lock: ORA-00942: table or view does not exist
[See nested exception: java.sql.SQLException: ORA-00942: table or view does not exist
]]
14:26:02,140 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
14:26:02,171 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
14:26:02,171 INFO [ServerImpl] JBoss (Microcontainer) [5.0.0.GA (build: SVNTag=JBoss_5_0_0_GA date=200812041714)] Started in 1m:37s:328ms
14:26:12,078 INFO [JmsActivation] Attempting to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@94d3fb(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)180babf destination=queue/JbpmCommandQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=30000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10)
14:26:12,078 ERROR [JmsActivation] Unable to reconnect org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@94d3fb(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)180babf destination=queue/JbpmCommandQueue destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=15 keepAlive=30000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=10)
still unable to connect it...
Help me in connecting to Oracle
--------------------------------------------------------------
To reply to this message visit the message page: http://community.jboss.org/message/524986#524986
16 years, 5 months