[Messaging, JMS & JBossMQ] - My problem about JMS & MDB !
by catania
Hi all!
I read about JMS and MDB inside "Mastering. EJB.4th.Edtion" (chapter 7). I use anonymous wrote : jboss-4.0.5.GA and EJB 3.0
I writed a Message Driver Bean, look like:
| public class LogBean implements MessageListener {
| public LogBean() {
| System.out.println("LogBean created");
| }
| public void onMessage(Message msg) {
| if (msg instanceof TextMessage) {
| TextMessage tm = (TextMessage) msg;
| try {
| String text = tm.getText();
| System.out.println("Received new message : " + text);
| } catch (JMSException e) {
| e.printStackTrace();
| }
| }
| }
|
| public void remove() {
| System.out.println("LogBean destroyed.");
| }
| }
And, I have ejb-jar.xml:
...
| <enterprise-beans>
| <message-driven>
| <ejb-name>LogBean</ejb-name>
| <ejb-class>mdb.com.LogBean</ejb-class>
| <messaging-type>javax.jms.MessageListener</messaging-type>
| <transaction-type>Bean</transaction-type>
| <message-destination-type>javax.jms.Topic</message-destination-type>
|
| <activation-config>
| <activation-config-property>
| <activation-config-property-name>destinationType</activation-config-property-name>
| <activation-config-property-value>javax.jms.Topic</activation-config-property-value>
| </activation-config-property>
| </activation-config>
| </message-driven>
| </enterprise-beans>
But when I deploy it on JBoss server, I received some errors:
org.jboss.deployment.DeploymentException: Required configproperty RequiredConfigPropertyMetaData@19238ad[name=destination descriptions=[DescriptionMetaData@147ff11[language=en]]] for messagingType 'javax.jms.MessageListener' not found in activation config [ActivationConfigProperty(destinationType=javax.jms.Topic)] ra=jboss.jca:service=RARDeployment,name='jms-ra.rar'
| ....
I think that I must configure JBoss but I don't know where I do this ? Please guide to me or show me some documents about this problem.
Thanks very much.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084897#4084897
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084897
18 years, 9 months
[JBoss Seam] - security.drl not being enforced
by terryb
Security rules in security.drl are ignored, or not activated. It logs me in even if I look for non-existing rule.
Do anything need to be done activate a specific rule? please see my configs below:
components.xml:
<drools:rule-base name="securityRules">
<rools:rule-files>/security.drl</drools:rule-files>
</drools:rule-base>
<security:identity authenticate-method="#{authenticator.authenticate}" security-rules="#{securityRules}" emember-me="true"/>
security.drl:
package Permissions;
import java.security.Principal;
import org.jboss.seam.security.PermissionCheck;
import org.jboss.seam.security.Role;
rule EditOrganisation
when
c: PermissionCheck(name == "/OrganisationEdit.xhtml", action="render")
Role(name == "system_adminX")
then
c.grant();
end;
OrganisationEdit.page.xml:
<page no-conversation-view-id="/OrganisationList.xhtml">
...
...
However, security works fine if I put following in OrganisationEdit.page.xml.
#{s:hasRole('system_adminX')}
Please provide any clues.
Thanks,
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084891#4084891
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084891
18 years, 9 months
[EJB/JBoss] - Re: Jar is not deployed onJBOSS
by xps2nini
when i run this command jar -tf EILMT.jar.I got following output
nidhi:/root/jboss-3.2.5/server/default/deploy # jar -tf EILMT.jar
META-INF/
META-INF/MANIFEST.MF
alt/
alt/ALTBean.class
alt/ALTHomeLocal.class
alt/ALTHomeRemote.class
alt/ALTLocal.class
alt/ALTRemote.class
alt/ALT_Debug.class
alt/Debug.class
pp/
pp/DFA_EngHin.class
pp/DFA_Patterns.class
pp/PreProcessingBean.class
pp/PreProcessingHomeLocal.class
pp/PreProcessingHomeRemote.class
pp/PreProcessingLocal.class
pp/PreProcessingRemote.class
seq/
seq/InputCat.class
seq/LexicalInfo.class
seq/RuleDatabase$Rule.class
seq/RuleDatabase.class
seq/SeqBean.class
seq/SeqDebugImpl.class
seq/SeqHomeLocal.class
seq/SeqHomeRemote.class
seq/SeqLocal.class
seq/SeqRemote.class
seq/SequenceElement.class
seq/SynonymFeature.class
seq/Token.class
tr/
tr/SentenceStatus.class
tr/SentenceStatusImpl.class
tr/TextStatus.class
tr/TextStatusImpl.class
tr/TrBean.class
tr/TrHomeRemote.class
tr/TrRemote.class
meta-inf/
meta-inf/ejb-jar.xml
meta-inf/jboss.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4084889#4084889
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4084889
18 years, 9 months