Archive For The “Java EE” Category

LocalDateTime and JPA

By |

Today I saw some SQL warnings in our developement server logs: 10:09:23,432 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (EE-ManagedExecutorService-default-Thread-10) SQL Warning Code: 1292, SQLState: 22007 10:09:23,432 WARN [org.hibernate.engine.jdbc.spi.SqlExceptionHelper] (EE-ManagedExecutorService-default-Thread-10) Incorrect datetime value: ‘\xAC\xED\x00\x05sr\x00\x0Djava.time.Ser\x95]\x84\xBA\x1B”H\xB2\x0C\x00\x00xpw\x0E \x05\x00\x00\x07\xE0\x04\x04\x0A\x09\x17\x19s\x’ for column ‘valid_time’ at row 1 In our case this warning was caused by the missing support of the new java 8 java.time API in JPA…

Read more »

Creating a custom weld-se context

By |

Some weeks ago I introduced weld-se in a standalone java application to get the advantages of CDI to reduce the dependencies between components. At one point it was necessary to have more control over the lifecycle of the instantiated objects. The way to do this was creating a custom cdi context, a good example resource…

Read more »

Discover ejb3.x transactions programmatically

By |

Sometimes it’s necessary to optimize the transaction bounds in existing ejb systems. Especially if the system provides long running services or a large composition of service calls. In this case avoiding transactions may improve the service performance. If there are a large number of services implemented by other developers than logging the current transaction status…

Read more »

spring mvc and ejb3 integration with JBoss 7

By |

In this article I’ll demonstrate the interoperability between spring MVC and ejb3 SLSB with JBoss as 7, independent from the discussion about pros and cons of both technologies. I know about companies that they plan to replace in their systems the spring service layer by an ejb service layer but they want to use furthermore…

Read more »

retabel – JaveEE integration testing with maven

By |

In this article I will describe the JavaEE integration test in our open source project retabel.  First let me do a short description about retabel itself. retabel is a document generation and printing system based on JavaEE 6 and REST. Currently JBoss AS 7 and Glassfish 3.1 are supported, but we plan also runnable versions…

Read more »

JBoss 7 – maximum number of request parameters

By |

Bei sehr großen Formularen kann es vorkommen, dass jbossweb an das Limit der Request Parameter stößt, dies resultiert dann in folgender Fehlermeldung: java.lang.IllegalStateException: More than the maximum number of request parameters (GET plus POST) for a single request ([512]) were detected. Any parameters beyond this limit have been ignored. To change this limit, set the…

Read more »

Echo Service mit Websocket und Glassfish

By |

Kürzlich stand ich im Bahnhofskiosk und überflog kurz das Javamagazin 05/2012 zum Thema Websockets. Grund genug, selbst zu recherchieren und auszuprobieren was Java, speziell Application Server hinsichtlich Websockets zu bieten haben. Was ist ein Websocket? Das WebSocket Protokoll, beschrieben in RFC 6455, ermöglicht eine bidirektionale Kommunikation zwischen einem Server und einer Webanwendung. Die Verbindung zum…

Read more »