Hello, 

I am running my application on JBoss 3.2.6 with embeded Tomcat, the OS is 
Linux. Up to now the EJBs had been accessed only from Tomcat and it's been 
working stable for months. Now since I created Java desktop client, every few 
days I get the  exception bellow. There are about 60 users using the web 
interface and 20 the desktop client simultaneously.

Caused by: javax.naming.ServiceUnavailableException: Failed to connect to 
server localhost:1099 [Root exception is java.net.SocketException: Too many 
open files]
  |     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:187)
  |     ... 41 more
  | Caused by: java.net.SocketException: Too many open files
  |     at java.net.Socket.createImpl(Socket.java:387)
  |     at java.net.Socket.<init>(Socket.java:360)
  |     at java.net.Socket.<init>(Socket.java:265)
  |     at 
org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:69)
  |     at 
org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:62)
  |     at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:183)
  |     ... 41 more

jboss.xml

<resource-managers>
  |             <resource-manager res-class="">
  |                     <res-name>MySqlDS</res-name>
  |                     <res-jndi-name>java:/MySqlDS</res-jndi-name>
  |             </resource-manager>
  |     </resource-managers>
  |     <enterprise-beans>
  |             <entity>
  |                     <resource-ref>
  |                             <res-ref-name>jdbc/MySqlDS</res-ref-name>
  |                             <jndi-name>MySqlDS</jndi-name>
  |                     </resource-ref>
  |                     <ejb-name>CustomerBean</ejb-name>
  |                     <jndi-name>customer/MySQL</jndi-name>   
  |             </entity>
  | ..........
  | .........
  | 


ejb-jar.xml

<ejb-jar>
  |     <display-name>Catalog</display-name>
  |     <enterprise-beans>
  |             <entity>
  |                     <resource-ref>
  |                             <description>MySQL</description>
  |                             <res-ref-name>jdbc/MySqlDS</res-ref-name>
  |                             <res-type>javax.sql.DataSource</res-type>
  |                             <res-auth>Container</res-auth>
  |                     </resource-ref> 
  |                     <description>N/A</description>
  |                     <ejb-name>CustomerBean</ejb-name>
  |                     <home>com.trader.CustomerHome</home>
  |                     <remote>com.trader.Customer</remote>
  |                     <ejb-class>com.trader.CustomerBean</ejb-class>
  |                     <persistence-type>Bean</persistence-type>
  |                     <transaction-type>Container</transaction-type>
  |                     <prim-key-class>java.lang.Integer</prim-key-class>
  |                     <reentrant>False</reentrant>
  |                     <primkey-field>id</primkey-field>
  |             </entity>
  | 
  | .......
  | .......
  | 

Please help!


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3901956#3901956

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3901956


-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to