[Design of JBossXB] - Re: JBossSessionBeanMetaData / using embedded Java bean prop
by wolfc
I don't have a model group here.
I got:
<?xml version="1.0"?>
| <jboss
| xmlns="http://www.jboss.com/xml/ns/javaee"
| xmlns:jee="http://java.sun.com/xml/ns/javaee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://www.jboss.com/xml/ns/javaee
| http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
| version="3.0">
| <enterprise-beans>
| <service>
| <ejb-name>ServiceSix</ejb-name>
| <ejb-class>org.jboss.ejb3.test.service.ServiceSix</ejb-class>
| <local>org.jboss.ejb3.test.service.ServiceSixLocal</local>
| <remote>org.jboss.ejb3.test.service.ServiceSixRemote</remote>
| <management>org.jboss.ejb3.test.service.ServiceSixManagement</management>
| <jndi-name>serviceSix/remote</jndi-name>
| <local-jndi-name>serviceSix/local</local-jndi-name>
| <ejb-ref>
| <ejb-ref-name>ejb/StatelessBean</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <remote>org.jboss.ejb3.test.service.StatelessRemote</remote>
| <ejb-link>StatelessBean</ejb-link>
| <injection-target>
| <injection-target-class>org.jboss.ejb3.test.service.ServiceSix</injection-target-class>
| <injection-target-name>stateless</injection-target-name>
| </injection-target>
| <jndi-name>StatelessBean/remote</jndi-name>
| </ejb-ref>
| <ejb-local-ref>
| <ejb-ref-name>ejb/StatelessLocal</ejb-ref-name>
| <ejb-ref-type>Session</ejb-ref-type>
| <local>org.jboss.ejb3.test.service.StatelessLocal</local>
| <ejb-link>StatelessBean</ejb-link>
| <injection-target>
| <injection-target-class>org.jboss.ejb3.test.service.ServiceSix</injection-target-class>
| <injection-target-name>setStatelessLocal</injection-target-name>
| </injection-target>
| <jndi-name>StatelessBean/local</jndi-name>
| </ejb-local-ref>
| <resource-ref>
| <res-ref-name>testDatasource</res-ref-name>
| <res-type>javax.sql.DataSource</res-type>
| <res-auth>Container</res-auth>
| <res-sharing-scope>Shareable</res-sharing-scope>
| <mapped-name>java:/DefaultDS</mapped-name>
| <injection-target>
| <injection-target-class>org.jboss.ejb3.test.service.ServiceSix</injection-target-class>
| <injection-target-name>testDatasource</injection-target-name>
| </injection-target>
| </resource-ref>
| <resource-env-ref>
| <jee:description>A test of the resource-env-ref tag</jee:description>
| <resource-env-ref-name>res/aQueue</resource-env-ref-name>
| <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
| <jndi-name>queue/mdbtest</jndi-name>
| </resource-env-ref>
| </service>
| </enterprise-beans>
| </jboss>
So this is a combined JBossSessionBeanMeta and SessionBeanMetaData rolled into 1. Since I'm part of JBossEnterpriseBeansMetaData I must extend JBossSessionBeanMetaData. So:
@XmlType(name="jboss-service-beanType")
| public class JBossServiceBeanMetaData extends JBossSessionBeanMetaData
| {
| public void setSessionBeanMetaData(SessionBeanMetaData embedded)
| {
| ...
| }
| }
Now what annotations do I need to add?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095665#4095665
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095665
18 years, 5 months
[Design of POJO Server] - What supplies the destination ActivationConfigProperty?
by scott.stark@jboss.org
Running the org.jboss.test.cts.test.MDBUnitTestCase fails with:
anonymous wrote :
| 07:27:25,359 ERROR [AbstractKernelController] Error installing to Start: name=jb
| oss.j2ee:binding=message-driven-bean,jndiName=local/SubclassMDB@25504895,plugin=
| invoker,service=EJB state=Create mode=Manual requiredState=Installed
| org.jboss.deployment.DeploymentException: Required config property RequiredConfi
| gPropertyMetaData@e5e569[name=destination descriptions=[DescriptionMetaData@1cfd
| e49[language=en]]] for messagingType 'javax.jms.MessageListener' not found in ac
| tivation config [ActivationConfigProperty(maxMessages=1), ActivationConfigProper
| ty(DLQMaxResent=10), ActivationConfigProperty(DLQJNDIName=queue/DLQ), Activation
| ConfigProperty(useDLQ=true), ActivationConfigProperty(keepAlive=30000), Activati
| onConfigProperty(providerAdapterJNDI=DefaultJMSProvider), ActivationConfigProper
| ty(maxSession=15), ActivationConfigProperty(minSession=1)] ra=jboss.jca:service=
| RARDeployment,name='jms-ra.rar'
| at org.jboss.resource.deployment.ActivationSpecFactory.createActivationS
| pec(ActivationSpecFactory.java:95)
| at org.jboss.resource.deployers.RARDeployment.createActivationSpec(RARDe
| ployment.java:312)
| at org.jboss.resource.deployers.RARDeployment.internalInvoke(RARDeployme
| nt.java:276)
|
Some metadata is not getting mapped correctly. Where should this be happening at?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4095656#4095656
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4095656
18 years, 5 months