I am trying to use generic request and repsonse classes in the a stateless session bean method exposed as a webservice.
Scenario is
1)Request object that takes a generic type. i.e. Request<T>
Now i use this object as the input parameter for a stateless session bean method.
i.e. signature of the method is
. Response<Employee> createE...
Since EJB authorization is too limited for my needs I want to use Spring Security together with EJBs. For authentication I want to use Spring Security too. The question is, if I can use the Spring Security context within an EJB.
The scenario:
user communicates with a servlet
authentication through Spring Security
servlet communicates ...
Hey guys,
I am looking to install a COTS for a business im looking to start up. I was wondering if anyone had any experience with any available marketplace website. I have only managed to stumble across www.componentsource.com but I was wondering if there was another source I could access for components to install on my Java EE platform...
I want to use Spring Security with EJB 3.1. It was told me that storing the SecurityContext with ThreadLocal doesn't work in clustered environments. What is the best way to hold a Spring SecurityContext in a clustered EJB environment?
My ideas:
A)
replace the SecurityContextHolder with a singleton EJB and hold the SecurityContext fo...
Spring Security offers many powerful security mechanisms but it doesn't fit properly into a Java EE (EJB) environment. One problem is that Spring Security stores the SecurityContext in a ThreadLocal object which is not suitable for clusters. Spring Security relies on services (AOP for example) from Spring core which are not available if ...
I am working on Eclipse and I want to create an enterprise application using Glassfish and MySQL.
I created a Enterprise Application Project, with EJB and WEB modules, named WeatherEJB and WeatherWeb.
In the WeatherEJB project I generated entities from tables, using JPA and also I created a stateless remote session bean, called Country...
I need to delete millions of rows from a table from within an EJB Timer.
The problem is that the timer has a transaction timeout of 90 seconds, so I should divide the work into bite-size chunks.
Since I don't know how many rows can be deleted in 90 seconds the algorithm should loop and delete a few at a time until the time is almost up....
I'm using a stateless EJB via the @EJB annotation... most of the time everything works as it should but it seems that from time to time what is supposed to be injected resolves to a NULL causing a null pointer exception.
What could cause this intermittent problem?
...
Is it possible to manage connection timeouts or errors in a MessageDrivenBean?
You can make the factory to retry connecting a certain number of times but... is it possible to make some actions each time that a reconnection retrial is neccesary? Is it possible to register an ExceptionListener into the MessageDrivenBean's connection someh...
I have not been able to find a solution to this problem and my post to the Seam forum has gone unanswered. I am hope someone here can help.
I am a noob working with Seam, so I am sure I am just doing something stupid. Any help anyone can give me would be greatly appreciated... I have wasted hours and gotten nowhere. I used the jboss to...
A little bit of background first:
Last year I started working at a medium-sized auto insurance company -- we're in several states, but we're not as big as GEICO or Progressive or anything like that (yet). Our primary software system is old (written in RPG) but reasonably stable. We're wanting to make our in-house applications availabl...
Guys, I HAVE tried reading tons of stuff about EJB. And I don't get it. It seems that most of the authors have a superficial knowledge on it. They basically say it's the business-logic 'stuff'. They don't show it how it interacts with the AppServer and so on, what it does, how, and why?
...
I am going through the Java EE 6 tutorial and I am trying to understand the difference between stateless and stateful session beans. If stateless session beans do not retain their state in between method calls, why is my program acting the way it is?
package mybeans;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
...
I wrote a EJB session beans and deployed it on the GlassFish application server. i can call it easily with @EJB annotation from a local JSF web application but i dont know how to call it from a JSF web application that deployed on the remote machine (another machine).
can i dot this with @EJB annotation and how ?
...
In Weblogic 10.3, how do I inject a remote EJB from one EAR into a Stateless bean of another, both EARs being deployed in the same container? Ideally I'd like to do as much as possible with annotations.
So suppose I have the following interface:
public interface HelloService {
public String hello();
}
implemented by the following E...
Hello everyone, I am trying to find a way to enumerate the EJB's and MBeans that have been deployed to a JBoss server. I was looking down the path of somehow using the JDI Context, but all I can get are the binding names and classes. Am I barking down the wrong path looking at JNDI? What should I do?
Thx!
~Bolt
...
Hi, I am forced to execute a periodic task using a timer that is invoked at a different interval as the period I'd like to execute this task.
Note that the timeout does not occur 100% accurately; i.e. timeout(javax.ejb.Timer timer) in the code below might be invoked at intervals 100, 98, 105ms etc.
So, I came up with this, which is ...
I have a JSF 2.0 application that I would like to start adding validators for. A basic overview of the architecture of the app is as follows.
I have Managed Backing Beans that contain instances of my JPA annotated classes and EJB's. The EJB's are responsible for accessing the database transactionally. The JPA annotated classes are value...
Is it possible to set a virtual host in WebLogic only ?
In my development machine, I have a WebLogic instance with two servers, listening to ports 7002 and 7003; the deployed application contains EJBs and MDBs.
I want to point a Java client outside of the container to a single url, which I know will be served by the cluster, instead of...
I have my ear-project deployed in jboss 5.1GA.
From webapp i don't have problem, the lookup of my ejb3 work fine!
es:
ShoppingCart sc= (ShoppingCart)
(new InitialContext()).lookup("idelivery-ear-1.0/ShoppingCartBean/remote");
also the iniection of my EntityManager work fine!
@PersistenceContext
private EntityManager manager;
Fr...