= Global Concurrency Management
:index-group: Tips and Tricks
:jbake-date: 2018-12-05
:jbake-type: page
:jbake-status: published


If for whatever reason you want to define the global default concurrency
add this to your `META-INF/ejb-jar.xml`:

[source,xml]
----
<?xml version="1.0"?>
<ejb-jar
    xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd"
    version="3.1">

    <enterprise-beans>
        <session>
            <ejb-name>*</ejb-name>
            <concurrency-management-type>Bean</concurrency-management-type>
        </session>
    <enterprise-beans>
</ejb-jar>
----

You may need to create the file if it does not exist.

[source,java]
----
src/main/resources/META-INF/ejb-jar.xml
----
