For Enterprise JavaBeans (EJB) that programmatically set the configured task and then programmatically begin either a transaction or ActivitySession only, you can configure EJB application-managed tasks to associate requests from the bean with application profiles.
If a unit of work is not begun after the task is set, then the task is ignored. The task must not be performed for an enterprise bean that uses container-managed transactions or container-managed ActivitySessions. For more information about using tasks, see Application profiling tasks and Tasks and units of work considerations .
For a Version 6.0 client to interact with applications run under the Application Profiling 5.x Compatibility Mode, you must set the appprofileCompatibility system property to true in the client process. You can do this by specifying the -CCDappprofileCompatibility=true option when invoking the launchClient command.