0 Replies Latest reply on Jul 7, 2004 1:40 PM by Pedro Salazar

    Calling JBOSS EJB from Oracle JSP

    Pedro Salazar Newbie


      I'm trying to call an EJB from an Oracle Java stored procedure as it's described in the Wiki pages:

      I reproduce the similar steps as described in the article but I'm getting an exception when I do a lookup for the JNDI bean name:

      Connnected To :localhost:1099
      Looking Up: ejb/Test
      javax.naming.CommunicationException: recvfrom() timed out
      Resource temporarily unavailable. Root exception is
      java.io.InterruptedIOException: recvfrom() timed out
      Resource temporarily unavailable
      at java.net.PlainDatagramSocketImpl.peek(PlainDatagramSocketImpl.java)
      at java.net.DatagramSocket.receive(DatagramSocket.java)
      at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1089)
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1196)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:516)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)

      I run the same class that I put in the database as java stored procedure but now outside the database, and it works just fine.

      What is the problem here?

      BTW, in the step 2 (compiling the java classes in the database), I'm getting several warnings in the classes of jboss from jbossall-client.jar. And I'm using the loadjava and dropjava tools from oracle instead the ant task.

      I'm using Oracle and JBOSS 3.2.5.