ejb-3.0

lift with enterprise java beans

Hi, I have troubles with deploying lift application with uses enterprise java beans. There's a simple example: @Stateless class TestEJB { def a = "hello" } object TestApi extends XMLApiHelper{ @EJB private var bean:TestEJB = _ def createTag(a:NodeSeq) = def dispatch: LiftRules.DispatchPF = { case Req("test" :: Nil, "", GetReque...

Entity Manager / persistance file structure

hi all, The title isnt clear as i couldnt think of one but, i have an EJB project and am trying to play with JPA. To create the entity manager i am injecting it in via anotations @PersistenceContext(unitName="testConnection") private EntityManager em; when i run a test qurey which i belive to be fine Query userQuery = em.cr...

Maven ignoring provided scope

I have a EAR with a number of EJB dependencies. 2 of these have a provided scope dependency to the glassfish-embedded-all jar. However when I do a mvn install on my local machine or when the application is build through maven on hudson the ear always contains the glassfish-embedded-all jar. e.g. DataAccess-ejb with provided dependency ...

Another tool like Ireport (JasperReport) that support ejbql connections

Hi, i'm been using ireport (jasperReport) for a lot of time, and everything goes fine until i begin to use ejbql connection, for this type of connection the ireport was not the best tool, And i Wanna know if there are another tool for reports based in java technology like ireport and also opensource. Thanks ...

Error deploying ear to Glassfish

Hi, We have a EAR with 3 EJB modules. I am trying to deploy to glassfish but am hitting an error I can't explain or work out how best to identify. [#|2010-08-03T14:39:15.570+0100|INFO|glassfish3.0.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=28;_ThreadName=Thread-1;|[AutoDeploy] Selecting file /e...

How should we use clientId and subscriptionName in annotations for multiple durable subscriber MDBs?

We are implementing an events framework within our application using a JMS topic with multiple durable subscribers as MDBs (EJB 3.0). Each subscriber will use message selectors to determine which messages it is interested in. How should we specify clientId and subscriptionName values in @ActivationConfigProperty annotations? My current ...

How to inject some specific client side code in the interface of a session bean ?

My need is to hide some specific code to the client. The fact is that I have a SessionBean using RemoteInputStream. To use this SessionBean, the client needs to use the rmiio API to generate a compliant RemoteInputStream. What I want to do it something like replacing the SessionBean interface with an abstract class to include in this ...

entitymanager persist

I have a problem when trying to update foreign keys. Using the merge function I always get a out of memory error, or I get a timeout Fakultaet and Standort are foreign keys in the Raum table (many to one, and lazy fetching) Raum does eager fetching for the Fakultaet and Standort @Stateless @Local (IRaumHomeLocal.class) @Remote (IRaumHo...

Documenting use of EJB3 annotations within a code base

Hey, We have a large code base and I want to generate specific reports on the usage of EJB3 annotations within the code base. The simplest use case is to generate a HTML/PDF report with details of all classes/methods that use the EJB3 security annotations. The goal of this document is to allow non developers to simply review which inter...

EJB 3 timer or quartz how to automate my ejb method

Ive been looking online for a while and i cant seem to find a simple solution to my problem. I have an enterprise ejb 3.0 application that deploys on weblogic 10. I have no front end just back end. I need to setup quartz/timer at startup to schedule a job via cron trigger, this job is a method invoked on one of my stateless session beans...

How to bind an entity to a specific persistence-unit

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, in the deployment time? I have two persistence-unit in persistence.xml, and one datasource (including two "local-tx-datasource") xml file un...

How to provide an anonymous access to EJB3 session bean?

I would like to provide an anonymous access to EJB3 Session Bean. So that independently of other beans (secure they or not) I could access my bean simply with: InitialContext ctx = new InitialContext(props); MyBean myBean = (MyBean) ctx.lookup("MyBean"); without any LoginContext and security handlers. Is it possible? I imagine that s...

Glassfish timer service: what am I doing wrong?

Hey guys, I'm trying to set a timer for a Stateless EJB in Glassfish 2.1: @Stateless(mappedName = "ServiceEJB") public class ServiceEJB implements ServiceEJBRemote { // other methods ... // defining the timer @Schedule(second="*/15", minute="*", hour="*") public void test(){ System.out.println("++++++++ timer!!! ++++++++...

Integrating EJB3 with Spring

Hello All, I'm building application with EJB and Spring 3. I have three maven modules - Spring jars, EJB jar and web part. In the web part I want to call my EJB session bean. Here comes the code of it: @Controller public class IndexController { @EJB PaymentRemote paymentRemote; } I have also an application context file, with the c...

How to manage authenticated status in EJB3?

There is a task of managing desktop client session status: Ensure only single client is "connected". Force client logout - kill session. Kill client session on timeout due to inactivity. Server-side is JBoss and EJB3. How to achieve such task? ...

How is it to return a very long list from ejb3 session bean?

I have a ejb3 session bean and a servlet. The bean have access to a database with some big table. The servlet should retrieve the table's content from the bean and send data through ServletOutputStream. How I can transfer big data between ejb3 bean and servlet? I can't return a list with all rows at once because it doesn't fit in memory....

EJB3 RMI client

Hello Everybody! I'm currently working with on a fat client application using a self written RMI server (10 years ago). The server sends EJB1.1/2.0 beans to the client who has full access to these remote objects. After commiting a transaction, all dirty beans are persisted by the server. The plan is to replace the server by a JBoss5 & ...

Are there any built-in method for obtaining a list of existing EJB3 Sessions?

I use JBoss 5. I would like to destroy sessions manually. Are there any way to query container for sessions of particular type, for particular authenticated user. Or at least, query for all managed sessions? ...

Documenting EJB3 Web Services

I have a simple web service as below /** * Test web service */ @Stateless @WebService public class HelloWorldWebService { /** * Greets the user by appending 'Hello' before the name */ @WebMethod public String doWork(String name){ return "Hello " + name + " !"; } } Is there a way (using annotations or otherwise) ...

WSDL location changed when EJB Web Service was deployed in WAR

When I deploy my EJB Web service in a WAR file the context of the Service changes. i.e. --http://localhost:8080/ServiceName/EJBName?wsdl Now, it has the web application context-> --http://localhost:8080/WebAppName/ServiceName?wsdl Why did this change and how do I control the URL of the Web service I'm using Glassfish3/Java6 and this is ...