How to disable updates for a field of an Entity EJB?

If you need to select which columns need update when executing a CMP statement you can use the “updatable” attribute on the @Column annotation. Setting “updatable” = false will assume that the column is not always included in the SQL update statement. Here is an example: import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import … Read more

How to return Collections and other Types in EJB QL ?

In this tutorial we will learn how to create new Type safe instances of an Objects simply using the EJB QL in your Query. By default, the select clause picks which objects and properties to return in the query result set. Check this example: select mate from Cat as cat inner join cat.mate as mate … Read more

Securing EJBs with Elytron

This tutorial will demonstrate how you can configure Authentication/Authorization for your EJBs on WildFly using Elytron Security Framework. Two core authentication factories are provided as part of Elytron security framework: HTTP Authentication Factory which is obviously used for Web applications performing HTTP Authentication SASL Authentication Factory which is used for other network protocols, including standard … Read more

How to use conditional statements in WildFly CLI

WildFly Command Line Interface is not a real programming language with complex structures. Nevertheless it’s possible to execute conditional logic in it and this short tutorial will show how to do it. WildFly Command Line Interface contains the “if” keywords which can be used to build conditional logic. here is the synopsys of the command: … Read more

Categories CLI

Activiti faqs

The following article contains a list of FAQs about Activiti BPMN engine that will guide you through some of most common development challenges.

Read more

How to deploy temporarily an application on JBoss ?

The current version of WildFly / JBoss EAP does not provide a way to deploy temporarily your application, so that it is automatically removed when you shut down the server. As an alternative, you can use add a file named <application>.skipdeploy in the deployments folder. This marker file disables auto-deploy of an application while present. … Read more

How do you configure your .war to be deployed after your EJB ?

This tutorial has been written for an old version of JBoss which is now deprecated. We recommend checking this resource to learn how to configure the order of deployment between applications: Simple way to configure JBoss / WildFly deployment order Deployment order configuration for JBoss AS 5 A common requirement for some web application is … Read more

Using Ajax with JBoss RichFaces

Important notice: Richfaces framework reached End of Life in 2016. Therefore, you cannot expect fixes or enhancements unless you fork the project and upgrade yourself the framework. We recommend reading these guidelines, if you want to modernize your Richfaces application: How to migrate Richfaces Web applications to another Web UI Richfaces is a rich Java … Read more

How to paginate your Entity data

Returning large sets of data from your queries is an issue for many applications. It is virtually impossible to display a huge entire result in a single page so applications should be able to display a range of aresult set and provide users with the ability to control the range of data that they are … Read more

How to monitor WildFly resources using the DMR API

It is recommended that you check first the following article which will show you how to configure the management native interface on WildFly or JBoss EAP 7: How to use WildFly management API programmatically

This is a short article that discuses how to query WildFly resources using short do-it-yourself guide that will teach you how to monitor your WildFly / JBoss EAP 7 server resources using EJB 3 Timers and the JBoss DMR API.

Read more