[JCA/JBoss] - Re: Changinh connection state in CMP EJB
by vickyk
The required changes are attached here
https://jira.jboss.org/jira/browse/JBAS-1429
The reauthenitication mechanism with jdbc ra will work when
1) <reauthentication-support> tag is enabled in ra.xml at jboss-local-jdbc.rar/META-INF/ra.xml AND jboss-xa-jdbc.rar/META-INF/ra.xml
AND
2) The -ds.xml corresponding to the local-tx-datasource AND xa-datasource would have <reauthentication-mechanism> pointing to the appropriate reauthentication mechanism implementation.
Missing of any of the configuration would cause *misbehavior* of the JCA pooling mechanism.
We should have a way to pass the reatuthentication details to the MCF e.g
mcf.setReauthenticationTrue(true);
Should we not have reauthentication related API as a part of the MCF ?
For other RA's to support re-authentication what they need is
1) Enable the <reauthentication-support> in the vendor-specificRA.rar/META-INF/ra.xml
AND
2) provide connection-property for CF which will tell the MCF to use the reauthentication.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237580#4237580
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237580
17 years, 1 month
[JBoss Messaging] - Re: Migrating 4.2.3.GA to 5.1.0.GA - queue hierarchies not s
by kennardconsulting
destinations-service.xml:
<?xml version="1.0" encoding="UTF-8"?>
|
| <!--
| Messaging Destinations deployment descriptor.
|
| $Id: destinations-service.xml 85945 2009-03-16 19:45:12Z dimitris(a)jboss.org $
| -->
|
| <server>
|
| <!--
| The Default Dead Letter Queue. This destination is a dependency of an EJB MDB container.
| -->
|
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=DLQ"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
|
| <!--
| The Default Expiry Queue.
| -->
|
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=ExpiryQueue"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
|
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=emails"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <attribute name="JNDIName">avant-ss/emails</attribute>
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
|
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=imports1"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <attribute name="JNDIName">avant-ss/imports1</attribute>
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
|
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=imports2"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <attribute name="JNDIName">avant-ss/imports2</attribute>
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
|
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=reports1"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <attribute name="JNDIName">avant-ss/reports1</attribute>
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
|
| <mbean code="org.jboss.jms.server.destination.QueueService"
| name="jboss.messaging.destination:service=Queue,name=reports2"
| xmbean-dd="xmdesc/Queue-xmbean.xml">
| <attribute name="JNDIName">avant-ss/reports2</attribute>
| <depends optional-attribute-name="ServerPeer">jboss.messaging:service=ServerPeer</depends>
| <depends>jboss.messaging:service=PostOffice</depends>
| </mbean>
| </server>
Stack trace (for one of the queues):
18:31:23,437 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=avant-ss-app.ear,jar=avant-ss-ejb.jar,name=ReportBean,service=EJB3
| 18:31:23,437 INFO [EJBContainer] STARTED EJB: com.avant.ss.ejb.session.report.ReportBean ejbName: ReportBean
| 18:31:23,437 INFO [JndiSessionRegistrarBase] Binding the following Entries in Global JNDI:
|
|
| 18:31:23,437 WARN [JmsActivation] Failure in jms activation org.jboss.resource.adapter.jms.inflow.JmsActivationSpec@1030063(ra=org.jboss.resource.adapter.jms.JmsResourceAdapter(a)e0863a destination=queue/avant-ss/imports1 destinationType=javax.jms.Queue tx=true durable=false reconnect=10 provider=java:/DefaultJMSProvider user=null maxMessages=1 minSession=1 maxSession=3 keepAlive=60000 useDLQ=true DLQHandler=org.jboss.resource.adapter.jms.inflow.dlq.GenericDLQHandler DLQJndiName=queue/DLQ DLQUser=null DLQMaxResent=5)
| javax.naming.NameNotFoundException: avant-ss not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:399)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
| at javax.naming.InitialContext.lookup(InitialContext.java:392)
| at org.jboss.util.naming.Util.lookup(Util.java:222)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.setupDestination(JmsActivation.java:464)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation.setup(JmsActivation.java:352)
| at org.jboss.resource.adapter.jms.inflow.JmsActivation$SetupActivation.run(JmsActivation.java:729)
| at org.jboss.resource.work.WorkWrapper.execute(WorkWrapper.java:205)
| at org.jboss.util.threadpool.BasicTaskWrapper.run(BasicTaskWrapper.java:260)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
| at java.lang.Thread.run(Thread.java:619)
| 18:31:23,437 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=avant-ss-app.ear,jar=avant-ss-ejb.jar,name=CalculationVariablesBean,service=EJB3
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237579#4237579
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237579
17 years, 1 month
[JNDI/Naming/Network] - Re: Migrating 4.2.3.GA to 5.1.0.GA - JNDI missing?
by kennardconsulting
jaikiran,
Thanks again for being so helpful. Again there is rather a lot of code involved. I will try to post the relevant bits:
package com.avant.ss.ejb.session;
|
| import java.io.File;
|
| import javax.ejb.Stateful;
|
| import com.avant.ss.ejb.entity.Document;
| import com.kennardconsulting.core.ejb.session.DiskFileBean;
| import com.kennardconsulting.core.ejb.session.isession.IDiskFileBean;
| import com.kennardconsulting.core.util.EjbUtils;
|
| @Stateful
| public class DocumentBean
| extends DiskFileBean<Document>
| implements IDiskFileBean<Document>
| {
| ...lots of code...
|
package com.kennardconsulting.core.ejb.session.isession;
|
| import java.io.InputStream;
| import java.util.List;
|
| import com.kennardconsulting.core.ejb.entity.DiskFile;
| import com.kennardconsulting.core.simpletype.ListState;
|
| public interface IDiskFileBean<DF extends DiskFile>
| extends IBaseSessionBean
| {
| ...code...
|
There is nothing related to DocumentBean in either jboss.xml or ejb-jar.xml.
Regards,
Richard.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4237563#4237563
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4237563
17 years, 1 month