[JNDI/Naming/Network] - javax.naming.CommunicationException
by adoorsarath
sir,
I got the javax.naming.CommunicationException when I
started writing my first JMS program.
The code snippet is given below
Properties properties = new Properties();
properties.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
properties.put(Context.PROVIDER_URL, "jnp://192.168.17.101:1099");
InitialContext jndiContext = new InitialContext(properties);
TopicConnectionFactory conFactory =
(TopicConnectionFactory)jndiContext.lookup("TopicConnectionFactory");
Error is there in JNDI lookup operation
Error Message
Exception in thread "main" javax.naming.CommunicationException: Receive timed ou
t [Root exception is java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:12
80)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1360)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:575)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:568)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
at Client.main(Client.java:27)
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive(Native Method)
at java.net.DatagramSocket.receive(DatagramSocket.java:711)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:12
50)
... 5 more
would you please help me in correcting this error.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055932#4055932
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055932
18Â years, 10Â months
[JBoss jBPM] - Re: How can I split storage scheme JBPM and general?
by slogger
"mputz" wrote : anonymous wrote : It is necessary for application to guarantee execution in single transaction (jbpm and general).
|
| If you want to access the jBPM and the application data from within the same Hibernate session you could inject the Hibernate session into the jbpmContext (jbpmContext.setSession(s);).
|
| This can be done by using the DbPersistenceServiceFactory. You would have to set the configuration parameter "isCurrentSessionEnabled" to true, which wouldn't close the Hibernate session on the jBPM side. You could continue to work within the current transaction and do the Hibernate clean up work at the end of the transaction.
|
Your offer means to store of all in single db scheme.
But expression "single transaction" is not means single db scheme.
I want to store jbpm data and business data in different schemes of Oracle DB.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055920#4055920
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055920
18Â years, 10Â months