[jboss-user] [Installation, Configuration & DEPLOYMENT] - JBoss 5.0.1GA how to force war be undeployed before ejb

2009-08-20 Thread arthurchn
Hi,

We are using JBoss 5.0.1GA and got some error during undeployment of ear 
package.

The reason is we need invoke ejb calls in Listener.contextDestroyed() but at 
that moment ejbs have already been unbound/undeployed.

Any suggestion on this?

Thank you in advance.

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4250572
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB/JBoss] - Is the default EJB pool size = 30?

2009-05-31 Thread arthurchn
I am testing ejb (2.0) pooling in JBoss 5.0.1GA and saw StrictMaxPoolFactory is 
configured in ejb3-deployers-jboss-beans.xml.

>From its source code, I saw a constant DEFAULT_MAX_SIZE defined to be 30.
Can I conclude that 30 is the default size for ejb pool  in JBoss 5?

Another question would be how to configure ejb pool size if we want to try 
different configuration?

Thank you.



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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4234370
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: ServletContextListener invoked before ejb JNDI binding

2009-05-20 Thread arthurchn
It works, thank you very much.

Best wishes

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232106
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: ServletContextListener invoked before ejb JNDI binding

2009-05-19 Thread arthurchn
We wrote a simple application to verify above steps. This javaee project has 
one ejb module and one web module. Ejb module use ejb2.0 and has one local EJB 
- HelloEjb.

In web module, I have one ServletContextListener which try to get local ejb 
HelloLocal through jndi lookup; it will fail with error in console.
Besides of that, we put a simple jsp file in this module which does the same 
thing as listener. After web app startup, access url 
http://localhost:8080/MyTestWeb/index.jsp will trigger it. In this case, Jndi 
lookup pass without error, invocation on ejb could be found in console, too.

Below is content of jboss console:
anonymous wrote : 
  | 05:58:41,867 INFO  [ServerImpl] Home Dir: C:\jboss-5.0.1.GA
  | 05:58:41,867 INFO  [ServerImpl] Home URL: file:/C:/jboss-5.0.1.GA/
  | 05:58:41,867 INFO  [ServerImpl] Library URL: file:/C:/jboss-5.0.1.GA/lib/
  | 05:58:41,867 INFO  [ServerImpl] Patch URL: null
  | 05:58:41,867 INFO  [ServerImpl] Common Base URL: 
file:/C:/jboss-5.0.1.GA/common/
  | 05:58:41,882 INFO  [ServerImpl] Common Library URL: 
file:/C:/jboss-5.0.1.GA/common/lib/
  | 05:58:41,882 INFO  [ServerImpl] Server Name: standard
  | 05:58:41,882 INFO  [ServerImpl] Server Base Dir: C:\jboss-5.0.1.GA\server
  | 05:58:41,882 INFO  [ServerImpl] Server Base URL: 
file:/C:/jboss-5.0.1.GA/server/
  | 05:58:41,882 INFO  [ServerImpl] Server Config URL: 
file:/C:/jboss-5.0.1.GA/server/standard/conf/
  | 05:58:41,882 INFO  [ServerImpl] Server Home Dir: 
C:\jboss-5.0.1.GA\server\standard
  | 05:58:41,882 INFO  [ServerImpl] Server Home URL: 
file:/C:/jboss-5.0.1.GA/server/standard/
  | 05:58:41,882 INFO  [ServerImpl] Server Data Dir: 
C:\jboss-5.0.1.GA\server\standard\data
  | 05:58:41,882 INFO  [ServerImpl] Server Library URL: 
file:/C:/jboss-5.0.1.GA/server/standard/lib/
  | 05:58:41,882 INFO  [ServerImpl] Server Log Dir: 
C:\jboss-5.0.1.GA\server\standard\log
  | 05:58:41,882 INFO  [ServerImpl] Server Native Dir: 
C:\jboss-5.0.1.GA\server\standard\tmp\native
  | 05:58:41,882 INFO  [ServerImpl] Server Temp Dir: 
C:\jboss-5.0.1.GA\server\standard\tmp
  | 05:58:41,882 INFO  [ServerImpl] Server Temp Deploy Dir: 
C:\jboss-5.0.1.GA\server\standard\tmp\deploy
  | 05:58:43,538 INFO  [ServerImpl] Starting Microcontainer, 
bootstrapURL=file:/C:/jboss-5.0.1.GA/server/standard/conf/bootstrap.xml
  | 05:58:46,007 INFO  [VFSCacheFactory] Initializing VFSCache 
[org.jboss.virtual.plugins.cache.CombinedVFSCache]
  | 05:58:46,023 INFO  [VFSCacheFactory] Using VFSCache 
[CombinedVFSCache[real-cache: null]]
  | 05:58:46,835 INFO  [CopyMechanism] VFS temp dir: 
C:\jboss-5.0.1.GA\server\standard\tmp
  | 05:58:46,867 INFO  [ZipEntryContext] VFS force nested jars copy-mode is 
enabled.
  | 05:58:50,492 INFO  [ServerInfo] Java version: 1.6.0_07,Sun Microsystems Inc.
  | 05:58:50,492 INFO  [ServerInfo] Java Runtime: Java(TM) SE Runtime 
Environment (build 1.6.0_07-b06)
  | 05:58:50,492 INFO  [ServerInfo] Java VM: Java HotSpot(TM) Client VM 
10.0-b23,Sun Microsystems Inc.
  | 05:58:50,492 INFO  [ServerInfo] OS-System: Windows XP 5.1,x86
  | 05:58:50,679 INFO  [JMXKernel] Legacy JMX core initialized
  | 05:58:55,632 INFO  [ProfileServiceImpl] Loading profile: standard from: 
org.jboss.system.server.profileservice.repository.serializabledeploymentreposit...@1091857(root=C:\jboss-5.0.1.GA\server,
 
key=org.jboss.profileservice.spi.profile...@664cb3f[domain=default,server=default,name=standard])
  | 05:58:55,648 INFO  [ProfileImpl] Using 
repository:org.jboss.system.server.profileservice.repository.serializabledeploymentreposit...@1091857(root=C:\jboss-5.0.1.GA\server,
 
key=org.jboss.profileservice.spi.profile...@664cb3f[domain=default,server=default,name=standard])
  | 05:58:55,648 INFO  [ProfileServiceImpl] Loaded profile: 
profilei...@98ebea{key=org.jboss.profileservice.spi.profilekey@664cb3f[domain=default,server=default,name=standard]}
  | 05:59:00,242 INFO  [WebService] Using RMI server codebase: 
http://localhost:8083/
  | 05:59:26,914 INFO  [NativeServerConfig] JBoss Web Services - Stack Native 
Core
  | 05:59:26,914 INFO  [NativeServerConfig] 3.0.5.GA
  | 05:59:45,898 INFO  [Ejb3DependenciesDeployer] Encountered deployment 
abstractvfsdeploymentcont...@17541938{vfsfile:/C:/jboss-5.0.1.GA/server/standard/deploy/MyTestApplication.ear/MyTestEJB.jar/}
  | 05:59:45,898 INFO  [Ejb3DependenciesDeployer] Encountered deployment 
abstractvfsdeploymentcont...@17541938{vfsfile:/C:/jboss-5.0.1.GA/server/standard/deploy/MyTestApplication.ear/MyTestEJB.jar/}
  | 05:59:45,898 INFO  [Ejb3DependenciesDeployer] Encountered deployment 
abstractvfsdeploymentcont...@17541938{vfsfile:/C:/jboss-5.0.1.GA/server/standard/deploy/MyTestApplication.ear/MyTestEJB.jar/}
  | 05:59:51,570 INFO  [CorbaNamingService] CORBA Naming Started
  | 05:59:55,773 INFO  [MailService] Mail Service bound to java:/Mail
  | 06:00:00,164 WARN  [JBossASSecurityMetadataStore] WARNING! POTENTIAL 
SECURITY RISK. It has been detected that the MessageSucker component which 
su

[jboss-user] [Installation, Configuration & DEPLOYMENT] - ServletContextListener invoked before ejb JNDI binding

2009-05-19 Thread arthurchn
It seems that ear file are deployed in below sequence:
...
1. EjbDeployer: install ejb but doesn't bind it to JNDI tree.
2. TomcatDeployment -> Initial servlet context and call listener: deploy war 
file and invoke servlet config listener
3. EjbModule -> BaseLocalProxyFactory: Bould EJB LocalHome to jndi tree.
...

The problem here is if we want to invoke ejb method in 
ServletContextListener.contextInitialized() , it will fail due to the fact that 
jndi name is not bound.

Any suggestion/work around to solve this issue would be highly appreciated.

Best regards,
Arthur

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

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4232096
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user