[Design of EJB 3.0] - Default JNDI naming scheme in EJB3.0 and possible conflicts
by jaikiran
The current default jndi binding scheme http://www.jboss.org/community/docs/DOC-9569 doesn't take into account the module name of the EJB. For example, if i have an ear named MyApp.ear containing 2 jar files First.jar and Second.jar and both containing a bean implementation AppManagerBean:
First.jar:
| package org.myapp.first.impl;
|
| @Stateless
| @Remote (org.myapp.first.AppManager.class)
| public class AppManagerBean implements org.myapp.first.AppManager {
|
| public String getVersion() {
| return "1.0";
| }
|
|
| }
|
Second.jar
package org.myapp.second.impl;
|
|
| @Stateless
| @Remote (org.myapp.second.AppManager.class)
| public class AppManagerBean implements org.myapp.second.AppManager {
| public String getVersion() {
| return "2.0";
| }
|
| }
|
Then as per the default JNDI naming scheme both these beans will resolve to MyApp/AppManagerBean/remote. From what i see in the current version, only one bean (the first one) gets bound to the JNDI and the other bean does not get bound:
+- MyApp (class: org.jnp.interfaces.NamingContext)
| | +- AppManagerBean (class: org.jnp.interfaces.NamingContext)
| | | +- remote (class: Proxy for: org.myapp.first.AppManager)
| | | +- remote-org.myapp.first.AppManager (class: Proxy for: org.myapp.first.AppManager)
|
Shouldn't we be logging a WARN message in the logs letting the user know of this conflict?
P.S: EJB3.1 spec seems to address this with the global jndi name scheme which results in a unique jndi name in these cases.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4183029#4183029
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4183029
16 years, 2 months
[Design of JBoss jBPM] - Re: meeting context
by alex.guizar@jboss.com
Some topics I'd like to discuss:
# Start process instances at predefined time (related to Quartz and BPMN)
# Enterprise Application Integration
* eMail: send and receive - e.g. task completion via email in red hat oracle apps
* JMS: transfer data back and forth between process variables and message properties/body
* ESB: jboss and other providers - position jBPM as the de facto "scripting" language for ESBs
* Web services: borrow and improve concepts from BPEL
* Databases: facilities for accessing external databases
* Flat files: just mentioned for completeness
# Pluggable transaction management
* Internal
* CMT
* Seam/Spring
# Rules
* Rules in event actions: have rules evaluated as process events fire, or variables change
* Rule-based decision node
* Rule-based task assignment
I already added these topics to the team meeting page.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182992#4182992
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182992
16 years, 2 months
[Design of POJO Server] - Re: JBAS-6104; slow Seam deployments
by alesj
"Jay Balunas" wrote :
| Here is the console logging related to this. You'll notice that the time goes from "08:56:37,914" to "09:06:05,790". This 10 minutes saw a large amount of disk usage and and memory consumption. I will also attach a subset of the server.log that corresponds to this time.
|
|
| 08:56:37,314 INFO [EJBContainer] STOPPED EJB: com.jboss.dvd.seam.AuthenticatorAction ejbName: AuthenticatorAction
| 08:56:37,381 INFO [SessionSpecContainer] Stopping jboss.j2ee:ear=jboss-seam-dvd.ear,jar=jboss-seam-dvd.jar,name=AcceptAction,service=EJB3
| 08:56:37,381 INFO [EJBContainer] STOPPED EJB: com.jboss.dvd.seam.AcceptAction ejbName: AcceptAction
| 08:56:37,453 INFO [PersistenceUnitDeployment] Stopping persistence unit persistence.unit:unitName=jboss-seam-dvd.ear/jboss-seam-dvd.jar#dvdDatabase
| 08:56:37,454 INFO [SessionFactoryImpl] closing
| 08:56:37,454 INFO [SchemaExport] Running hbm2ddl schema export
| 08:56:37,510 INFO [SchemaExport] exporting generated schema to database
| 08:56:37,513 INFO [SchemaExport] schema export complete
| 08:56:37,513 INFO [SessionFactoryObjectFactory] Unbinding factory from JNDI name: persistence.unit:unitName=jboss-seam-dvd.ear/jboss-seam-dvd.jar#dvdDatabase
| 08:56:37,513 INFO [NamingHelper] JNDI InitialContext properties:{}
| 08:56:37,513 INFO [SessionFactoryObjectFactory] Unbound factory from JNDI name: persistence.unit:unitName=jboss-seam-dvd.ear/jboss-seam-dvd.jar#dvdDatabase
| 08:56:37,914 WARN [HackClassloaderMetaDataDeployer] FIXME Using loader repository config: seam.jboss.org:loader=seam-dvd for vfszip:/jboss/projects/seam/2.1.0.GA/jboss-5.0.0.CR2/server/default/deploy/jboss-seam-dvd.ear use classloading metadata not loader repository config
| 09:06:05,790 WARN [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean ShowOrdersAction
| 09:06:05,790 WARN [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean AuthenticatorAction
| 09:06:05,790 WARN [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean CheckoutAction
| 09:06:05,790 WARN [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean FullTextSearchAction
| 09:06:05,791 WARN [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean EditCustomerAction
| 09:06:05,791 WARN [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean ShoppingCartBean
| 09:06:05,791 WARN [EjbMetadataJndiPolicyDecoratorDeployer] Defaulting to DefaultJndiBindingPolicy of "org.jboss.metadata.ejb.jboss.jndipolicy.plugins.BasicJndiBindingPolicy" for Session Bean AcceptAction
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182955#4182955
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182955
16 years, 2 months