Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
160 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
tests/src/test/java/org/jboss/weld/tests/ejb/mdb/Control.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package org.jboss.weld.tests.ejb.mdb; | ||
|
||
import javax.enterprise.context.ApplicationScoped; | ||
|
||
@ApplicationScoped | ||
public class Control | ||
{ | ||
|
||
private volatile boolean messageDelivered; | ||
|
||
public boolean isMessageDelivered() | ||
{ | ||
return messageDelivered; | ||
} | ||
|
||
public void setMessageDelivered(boolean messageDelivered) | ||
{ | ||
this.messageDelivered = messageDelivered; | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
tests/src/test/java/org/jboss/weld/tests/ejb/mdb/dummy/EJBTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source | ||
* Copyright 2010, Red Hat, Inc., and individual contributors | ||
* by the @authors tag. See the copyright.txt in the distribution for a | ||
* full listing of individual contributors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.jboss.weld.tests.ejb.mdb.dummy; | ||
|
||
import org.jboss.testharness.impl.packaging.Artifact; | ||
import org.jboss.testharness.impl.packaging.IntegrationTest; | ||
import org.jboss.testharness.impl.packaging.Packaging; | ||
import org.jboss.testharness.impl.packaging.PackagingType; | ||
import org.jboss.weld.test.AbstractWeldTest; | ||
import org.testng.annotations.Test; | ||
|
||
@Artifact | ||
@Packaging(PackagingType.EAR) | ||
@IntegrationTest | ||
public class EJBTest extends AbstractWeldTest | ||
{ | ||
|
||
public static final String MESSAGE = "Hello!"; | ||
|
||
@Test | ||
public void testMdbDeploys() | ||
{ | ||
} | ||
|
||
} |
37 changes: 37 additions & 0 deletions
37
tests/src/test/java/org/jboss/weld/tests/ejb/mdb/dummy/MilkMan.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* JBoss, Home of Professional Open Source | ||
* Copyright 2010, Red Hat, Inc., and individual contributors | ||
* by the @authors tag. See the copyright.txt in the distribution for a | ||
* full listing of individual contributors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.jboss.weld.tests.ejb.mdb.dummy; | ||
|
||
import javax.ejb.ActivationConfigProperty; | ||
import javax.ejb.MessageDriven; | ||
import javax.jms.Message; | ||
import javax.jms.MessageListener; | ||
|
||
@MessageDriven(activationConfig={ | ||
@ActivationConfigProperty(propertyName="destinationType", propertyValue="javax.jms.Queue"), | ||
@ActivationConfigProperty(propertyName="destination", propertyValue="queue/DLQ") | ||
}) | ||
public class MilkMan implements MessageListener | ||
{ | ||
|
||
|
||
public void onMessage(Message message) | ||
{ | ||
|
||
} | ||
|
||
} |
17 changes: 17 additions & 0 deletions
17
tests/src/test/resources/org/jboss/weld/tests/ejb/mdb/test-destinations-service.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<server> | ||
<mbean code="org.jboss.mq.server.jmx.Topic" | ||
name="jboss.mq.destination:service=Topic,name=testTopic"> | ||
<depends optional-attribute-name="ServerPeer"> | ||
jboss.messaging:service=ServerPeer | ||
</depends> | ||
<depends>jboss.messaging:service=PostOffice</depends> | ||
</mbean> | ||
|
||
<mbean code="org.jboss.mq.server.jmx.Queue" | ||
name="jboss.mq.destination:service=Queue,name=testQueue"> | ||
<depends optional-attribute-name="ServerPeer"> | ||
jboss.messaging:service=ServerPeer | ||
</depends> | ||
<depends>jboss.messaging:service=PostOffice</depends> | ||
</mbean> | ||
</server> |