[Beginners Corner] - Tuning DB connections and Max threads in JBOSS 3.2.2
by cletuspapa
Trying to find some means to tune DB connections and thread's on JBOSS 3.2.2 ( Release ID: JBoss [WonderLand] 3.2.2 (build: CVSTag=JBoss_3_2_2 date=200310182216))
I know already this is a very old release of JBOSS the vendor we have chosen has a deployed application so I'm kinda stuck with this right now. I'm just looking for any resource to help me dig into the config of the appserver and figure out if there's any way to tune the thing to run any better. The appserver does not seem to make good use of the underlying hardware or OS(IBM Serverclass Xseries / RHEL 3 - ). The application is pointing to a 1.4.1 JDK (installed - doubt it's patched) but I'm wondering if this version of JBOSS was written against a 1.3 or 1.4 JVM?
Sorry for the confusing post - i'm very confused - this application and the app server are nothing like I'm used to dealing with (WAS 6.0).
thanks
CP
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084459#4084459
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084459
18 years, 9 months
[EJB 3.0] - Re: Programmatically determining ear name for JNDI lookups:
by waynebaylor
i would recommend that you not include the EAR name at all in your JNDI names. for example, if you have the bean class:
| @Stateless
| @Local(com.mycomp.MyLocal.class)
| @Remote(com.mycomp.MyRemote.class)
| public class MyBean implements MyLocal, MyRemote
| {
| ...
| }
|
then you should bind its interfaces to meaningful JNDI names (the EAR name can be changed by anyone so it's not meaningful):
| @Stateless
| @Local(com.mycomp.MyLocal.class)
| @Remote(com.mycomp.MyRemote.class)
| @LocalBinding(jndiBinding="com.mycomp.MyLocal")
| @RemoteBinding(jndiBinding="com.mycomp.MyRemote")
| public class MyBean implements MyLocal, MyRemote
| {
| ...
| }
|
As for the multiple EARs part:
1) If you're including it in multiple EARs which will be deployed on the same App. Server, then you will need to include some Class Loading Isolation. You can continue to customize the JNDI name with your config file (i just wouldn't use the EAR name as part of it).
|
| 2) If the EARs won't be deployed on the same App. Server, then you won't need the config file anymore.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084456#4084456
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084456
18 years, 9 months
[EJB 3.0] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
by toplink
The exception I got is:
javax.naming.NameNotFoundException: ejb not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:595)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at oracle.toplink.testing.tests.internal.ejb.ServerTestCase.runBareClient(ServerTestCase.java:67)
at oracle.toplink.testing.tests.internal.ejb.ServerTestCase.runBare(ServerTestCase.java:39)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084449#4084449
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084449
18 years, 9 months