ejb-3.0 Questions

7

Solved

The title is self explanatory. I would be glad to hear solutions, thanks.
Corner asked 4/10, 2011 at 11:58

5

I added the following annotation to enable cache to one of my EJB3 entities, to test caching with ehCache, where I use Hibernate as the persistence provider: .... import org.hibernate.annotations....
Filch asked 23/10, 2009 at 14:46

1

On wildfly 10 server startup we get slsb-strict-max-pool as 64 2017-08-24 12:51:09,164 INFO [org.jboss.as.ejb3] (MSC service thread 1-5) WFLYEJB0481: Strict pool slsb-strict-max-pool is using a m...
Therrien asked 24/8, 2017 at 7:47

4

Solved

I would like to return a List of Integers from a javax.persistence.EntityManager.createNativeQuery call Why is the following incorrect? entityManager.createNativeQuery("Select P.AppID From P", ...
Aloud asked 21/1, 2010 at 16:18

4

Solved

I'm trying to understand how the JAAS principal propagates to the Business/EJB tier from web tier. I've read that the if the roles/realm is configured in login-config & security-context of web...
Argil asked 25/8, 2011 at 20:23

4

The EJB 3.0 specification does not allow a business method of a stateless session bean to create new threads. Why is that? What is wrong with creating additional worker threads that only do raw com...
Cavil asked 28/9, 2010 at 19:22

8

The Java EE 6 Tutorial says: To improve performance, you might choose a stateless session bean if it has any of these traits: The bean’s state has no data for a specific client. In a singl...
Scrubber asked 6/1, 2010 at 15:27

2

Solved

what is the difference between TransactionManagementType.CONTAINER and TransactionManagementType.BEAN as Im using TransactionManagementType.CONTAINER in all of my EJBs and when ever the multiple i...

6

Solved

I am new to EJB 3 . I use the following code to start endless EJB 3 timer then deploying it on JBOSS 4.2.3 @Stateless public class SimpleBean implements SimpleBeanRemote,TimerService { @Resource...
Reiche asked 21/1, 2010 at 19:27

2

Solved

I have an application running on jboss 6.1 that defines a lot of dinamyc timers at the startup (e.g doSomething every minute) based on informations already persisted on the database. The timers are...
Wether asked 21/1, 2013 at 15:1

3

Solved

In a web application using struts2 ejb hibernate, is it possible to tell the application to find or create an entity for a specific persistence-unit name, which is written in persistence.xml file, ...
Phonemics asked 5/8, 2010 at 14:26

4

Solved

I'm new to the @Schedule annotations in J2EE6 I want to run a job using EJB 3.x with Glassfish 3.1. The javax.ejb.Schedule seems to be a good choice for us, so we could think of our custom time a...
Missile asked 12/4, 2013 at 14:14

2

Solved

I'm trying to figure out the options that I have for the architecture of my API project. I would like to create an API using JAX-RS version 1.0. This API consumes Remote EJBs (EJB 3.0) from a bigg...
Belkisbelknap asked 2/9, 2016 at 1:55

3

Solved

I am using JMS Queue, and MDB which listen to it. I have a retry mechanism, so when exception is being thrown a rollback to the transaction will occur and the operation will re-executed/ I would ...
Nunciature asked 18/1, 2011 at 12:6

2

Solved

I'm trying to setup the Jboss server "client" (version 5.1.0) to use remote EJBs from another Jboss server (10.90.0.91), but I can't do this using a jndi.properties file on the Jboss clie...
Eaglet asked 19/8, 2016 at 14:39

3

Solved

I used EJB3/JPA when persisting my entities and I am happy on how it is able to manage my DB related task. My only concern is on the exception handling. My sample code when saving entity always com...
Accompanyist asked 3/10, 2011 at 6:36

3

Solved

For some reasons, I would like to deploy my application as two separate artifacts: Users-ejb.jar and Users-war.war, not packaged in the same ear (but still, deployed in the same JBoss AS 7.1 instan...
Exuberate asked 13/8, 2012 at 12:10

4

According to clean code by Robert C. Martin methods should have a small signature. The best case would be a method with no parameters at all. Instead it is recommended to use state variables. This ...
Degrade asked 24/4, 2012 at 14:3

3

I have 2 session beans, OrderBean and InventoryBean which are deployed at different weblogic servers. The OrderBean needs to access the InventoryBean to check if the supply is sufficient. Curren...
Covington asked 13/10, 2009 at 13:39

7

overview : This my first tutorial by Websphere 7 Server & JPA 1.0 & EJB & Derby Database. First : My data source name is EJB3BANK & my target database is SHOP . Second : This t...
Dekameter asked 4/6, 2011 at 14:31

3

Solved

I want to create a timer EJB3 when a stateless bean is created in the pool. But if I use @PostConstruct I get the exception: java.lang.IllegalStateException: [EJB:010193]Illegal call to EJBContext...
Quadrumanous asked 15/8, 2010 at 19:35

2

I am new to ejbs and I want to know whether a stateful session bean will be destroyed or not. I injected a stateful session bean in my servlet. Even after 30min I see that the bean is active. I am ...
Overcritical asked 30/1, 2014 at 14:54

6

Solved

I am currently developing an EJB 3.0 based application on the JBoss AS 5.0.0.GA and just recently the following warning showed up in the server log: 09:50:19,735 WARN [InterceptorsFactory] EJBTHR...
Lapith asked 29/1, 2009 at 9:30

3

Solved

I have a REST endpoint in my application that is protected with EJB security. @Path("/somepath") @Produces(MediaType.APPLICATION_JSON) @Stateless @SecurityDomain("mydomain") @RolesAllowed({"user"}...
Accrete asked 4/2, 2016 at 12:54

3

Solved

Using Wildfly 8.1 I have several beans which I try to inject several EJB into each other. Lets say I have 3 beans: @Stateless public class A{ @Inject private B b; } @Stateless public class B{ ...
Chimene asked 20/10, 2014 at 14:5

© 2022 - 2024 — McMap. All rights reserved.