[Design of EJB 3.0] - EJBTHREE-1290, MCDependencyPolicy interface
by scott.stark@jboss.org
As part of EJBTHREE-1290 where we want to change the dependency on the ejb container name to be based on demand/supply of the ejb container jndi name, I want to make MCDependencyPolicy a proper interface:
| public interface DependencyPolicy
| {
| public void addDependency(String dependency);
| public void addDatasource(String jndiName);
| }
| public interface MCDependencyPolicy extends DependencyPolicy
| {
| public void addDemand(DemandMetaData dependency);
| public Set<DemandMetaData> getDemands();
| public void addSupply(SupplyMetaData smd);
| }
|
I want to drop a number of methods from the current MCDependencyPolicy class.
- addDependency(Class businessInterface) addDependency(String ejbLink, businessInterface), addSupply(businessInterface) as this is something that should have been resolved to a container by the deployment resolver.
- addJNDIName(String name) which creates a dependency on an ejb mapped name also becomes redundant and should be dropped.
The current casting to JBoss5DependencyPolicy would be a reliance on the extended MCDependencyPolicy interface instead which would allow for alternate implementations in jbossas vs standalone.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144435#4144435
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144435
16 years, 5 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Noise at undeployment
by adrian@jboss.org
I can't even get JBoss trunk to boot
| 11:45:19,882 ERROR [ExceptionUtil] ServerPeer[0] startService
| java.sql.SQLException: Table not found in statement [SELECT CNTR, ID FROM JBM_ID_CACHE WHERE NODE_ID = ?]
| at org.hsqldb.jdbc.Util.throwError(Unknown Source)
| at org.hsqldb.jdbc.jdbcPreparedStatement.<init>(Unknown Source)
| at org.hsqldb.jdbc.jdbcConnection.prepareStatement(Unknown Source)
| at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.doPrepareStatement(BaseWrapperManagedConnection.java:454)
|
with original cause being
| 2008-04-16 11:45:19,816 DEBUG [org.jboss.messaging.core.impl.JDBCSupport] (main) Failed to execute: CREATE TABLE JBM_ID_CACHE (NODE_ID INTEGER, CNTR INTEGER, JBM_ID VA
| RCHAR(255), PRIMARY KEY(NODEID, CNTR))
| java.sql.SQLException: Column not found: NODEID in statement [CREATE TABLE JBM_ID_CACHE (NODE_ID INTEGER, CNTR INTEGER, JBM_ID VARCHAR(255), PRIMARY KEY(NODEID, CNTR)]
| at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
|
| |
| | NODEID != NODE_ID :-)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4144428#4144428
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4144428
16 years, 5 months