[EJB/JBoss] - Re: Jboos Lookup
by pslambh
Jboss version is 4.2.0
JNDI Tree:
+- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
+- jmx (class: org.jnp.interfaces.NamingContext)
| +- invoker (class: org.jnp.interfaces.NamingContext)
| | +- RMIAdaptor (proxy: $Proxy48 implements interface org.jboss.jmx.adaptor.rmi.RMIAdaptor,interface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
| +- rmi (class: org.jnp.interfaces.NamingContext)
| | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class: javax.naming.LinkRef)
+- HTTPXAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
+- ConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
+- Bean (class: org.jnp.interfaces.NamingContext)
| +- local (proxy: $Proxy131 implements interface beans.BeanBusiness,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject)
+- UserTransactionSessionFactory (proxy: $Proxy14 implements interface org.jboss.tm.usertx.interfaces.UserTransactionSessionFactory)
+- HTTPConnectionFactory (class: org.jboss.mq.SpyConnectionFactory)
+- XAConnectionFactory (class: org.jboss.mq.SpyXAConnectionFactory)
+- TransactionSynchronizationRegistry (class: com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionSynchronizationRegistryImple)
+- UserTransaction (class: org.jboss.tm.usertx.client.ClientUserTransaction)
+- UILXAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
+- XMlBean (class: org.jnp.interfaces.NamingContext)
| +- remote (proxy: $Proxy93 implements interface slsb.XMl,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBObject)
+- UIL2XAConnectionFactory[link -> XAConnectionFactory] (class: javax.naming.LinkRef)
+- GreetingBean (class: org.jnp.interfaces.NamingContext)
| +- local (proxy: $Proxy89 implements interface slsb.Greeting,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject)
+- queue (class: org.jnp.interfaces.NamingContext)
| +- A (class: org.jboss.mq.SpyQueue)
| +- testQueue (class: org.jboss.mq.SpyQueue)
| +- ex (class: org.jboss.mq.SpyQueue)
| +- DLQ (class: org.jboss.mq.SpyQueue)
| +- D (class: org.jboss.mq.SpyQueue)
| +- C (class: org.jboss.mq.SpyQueue)
| +- B (class: org.jboss.mq.SpyQueue)
+- topic (class: org.jnp.interfaces.NamingContext)
| +- testDurableTopic (class: org.jboss.mq.SpyTopic)
| +- testTopic (class: org.jboss.mq.SpyTopic)
| +- securedTopic (class: org.jboss.mq.SpyTopic)
+- console (class: org.jnp.interfaces.NamingContext)
| +- PluginManager (proxy: $Proxy49 implements interface org.jboss.console.manager.PluginManagerMBean)
+- UIL2ConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
+- HiLoKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.hilo.HiLoKeyGeneratorFactory)
+- UILConnectionFactory[link -> ConnectionFactory] (class: javax.naming.LinkRef)
+- SubBean (class: org.jnp.interfaces.NamingContext)
| +- local (proxy: $Proxy134 implements interface beans.SubBeanInterface,interface org.jboss.ejb3.JBossProxy,interface javax.ejb.EJBLocalObject)
+- QueueConnectionFactory (class: org.jboss.naming.LinkRefPair)
+- UUIDKeyGeneratorFactory (class: org.jboss.ejb.plugins.keygenerator.uuid.UUIDKeyGeneratorFactory)
Stacktrace:
javax.naming.InitialContext@b6ece5
log4j:WARN No appenders could be found for logger (org.jnp.interfaces.NamingContext).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" javax.naming.CommunicationException: Could not obtain connection to any of these urls: jboss-server:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server jboss-server:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server jboss-server:1099 [Root exception is java.net.UnknownHostException: jboss-server]]]
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1416)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:596)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
at javax.naming.InitialContext.lookup(Unknown Source)
at Main.main(Main.java:16)
Caused by: javax.naming.CommunicationException: Failed to connect to server jboss-server:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server jboss-server:1099 [Root exception is java.net.UnknownHostException: jboss-server]]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:269)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1387)
... 4 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server jboss-server:1099 [Root exception is java.net.UnknownHostException: jboss-server]
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:243)
... 5 more
Caused by: java.net.UnknownHostException: jboss-server
at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
at java.net.InetAddress$1.lookupAllHostAddr(Unknown Source)
at java.net.InetAddress.getAddressFromNameService(Unknown Source)
at java.net.InetAddress.getAllByName0(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getAllByName(Unknown Source)
at java.net.InetAddress.getByName(Unknown Source)
at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:76)
at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:239)
... 5 more
And the Client is a standalone client.
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116095#4116095
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116095
16 years, 4 months
[JBoss jBPM] - How can Jbpm exchange data with external system?
by fengzhi
hello everybody,
I have read the jbpm jpdl tutorial, it told a little about external system. And I have some questions about data exchange between Jbpm and external system.
I understand an external system can be a human or another applications. E.g. a process is being in the state-node and waiting for a signal of an external system to continue to next node.
1. A human, who at the web application clicks on a button, which sends a signal to the Jbpm, with token.signal().
2. Another application, how can it send a signal to Jbpm? And where is the interface in Jbpm for data exchange with external system? How can I realise it?
Please give me some information about it or what I have to read or lern to implement this function?
Sinceres thanks for your help.
regards,
Fengzhi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4116090#4116090
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4116090
16 years, 4 months