[EJB 3.0] - How to use "SecurityManager attribute" on EJB 3.0 MDB
by 10takashi
Hello there,
My name is Takashi. Currently I'm searching the solution for the title.
In conclusion, I want to know the way how to define Anotation for this attribute.
(@ActivationConfigProperty(propertyName)
First I'm describing my environment.
--------------
The host that has queue(remotehost)
Name: Remotehost
Server: Linux(SUSE 9.3)
JDK Version: 1.5.0_14
JBoss Version: 4.2.2-AS
The host that has MDB tries to listen to remotehost's MQ(localhost)
Name: localhost
Server: Linux(SUSE 9.3)
JDK Version: 1.5.0_14
JBoss Version: 4.2.2-AS
--------------
In Remotehost, I defined queue/remotetest with Security Manager like this
in remotehost-ds.xml file and deployed in Remotehost's /default/deploy/jms folder.
--------------
<depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager
<depends optional-attribute-name="ExpiryDestination">
jboss.mq.destination:service=Queue,name=expiredTest
<depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager
<depends optional-attribute-name="SecurityManager">jboss.mq:service=SecurityManager
<depends optional-attribute name="SecurityManager">
jboss.mq:service=SecurityManager
--------------
The above show the "Security Manager attribute".
In localhost, I created a EJB 3.0 MDB tries to listen to Remotehost's MQ through RemoteJMSProvider like this,
--------------
@MessageDriven(activationConfig =
{
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"),
@ActivationConfigProperty(propertyName="destination", propertyValue="queue/remotetest"),
@ActivationConfigProperty(propertyName="providerAdapterJNDI", propertyValue="java:/RemoteJMSProvider")
})
--------------
When I execute this code, I got this error,
--------------
org.jboss.deployment.DeploymentException: Error for ActivationSpec class
--------------
In EJB2.0, in jboss.xml file, I defined mdb-user and mdb-passwd like this
--------------
<message-driven>
<ejb-name>Remotetest</ejb-name>
<destination-jndi-name>queue/remotetest</destination-jndi-name>
<mdb-user>test</mdb-user>
<mdb-passwd>test</mdb-passwd>
<resource-ref>
</resource-ref>
</message-driven>
--------------
However, I couldn't find any doccument how can I define in EJB 3.0 MDB corresponding to the red characters part above....
If anyone gives me good suggestion, I'm really appriciated.
Best regards
Takashi
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124506#4124506
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124506
18 years, 2 months
[JBoss Seam] - Re: Seam 2.0.1.CR2 seam-gen does not create a deployable pro
by jsimone
yes, I ran seam setup. It all looks ok to me. Here it is ...
#Generated by seam setup
#Fri Jan 25 11:38:24 EST 2008
hibernate.connection.password=kramerica
workspace.home=/dev/ws/seam
model.package=com.e2msystems.model
driver.jar=/opt/jboss-4.2.2.GA/server/default/lib/mysql-connector-java-5.0.8-bin.jar
action.package=com.e2msystems.action
test.package=com.e2msystems.test
database.type=mysql
richfaces.skin=blueSky
hibernate.default_catalog.null=
hibernate.default_schema.null=test
database.drop=n
project.name=joe2
hibernate.connection.username=seam
hibernate.connection.driver_class=com.mysql.jdbc.Driver
hibernate.cache.provider_class=org.hibernate.cache.HashtableCacheProvider
project.type=ear
icefaces.home=
database.exists=n
jboss.home=/opt/jboss-4.2.2.GA
hibernate.dialect=org.hibernate.dialect.MySQLDialect
hibernate.connection.url=jdbc\:mysql\:///test
icefaces=n
Yes, I followed the docs as far as creating the project and then importing into eclipse. I also have the prentice hall "JBoss Seam" book. So are you saying the result of seam-gen should be a working project?
Thanks for listening!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4124505#4124505
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4124505
18 years, 2 months