ejb

Persisting a Many to Many Relation in JPA

We Want to persist a many to many table with EclipseLink, we have just tried by setting the collections and persist but it returns error cause it seems that is requesting for all of the collections in the hierarchy, we are doing this cause the system did not mapped that table cause it has all of its fields as foreign keys so instead of ...

How to call a EJB session bean from PHP?

Is there any way to call an EJB session bean from PHP? Are there any specific functions to do that? ...

Call method in EJB on JBoss startup

Hello, I'm looking for an entry point in an EJB deployed on JBoss. Servlets have the load-on-startup tag to use in its web.xml. I'm searching for similar init() functionality for an EJB. ...

Deploying remote EJB and Web application

Hi, I have successfully deployed an EJB 3 module and a JSF WEB app which calls the EJB module's beans using netbeans IDE locally. Now when I try to deploy this in staging environment, i get the following error: root cause javax.servlet.ServletException: com.sun.enterprise.InjectionException: Exception attempting to inject Unresolve...

Remote EJB lookup issue with WebSphere 6.1

I've seen this question asked before, but I've tried various solutions proposed, to no avail. Essentially, I have two EJB enterprise applications, that need to communicate with one another. The first is a web application, the second is a search server - they are located on different development servers, not in the same node, cell, or JV...

EJB and asynchronous processing

I need to execute some stuff asynchronously after a EJB method is called. This need seems to be fulfilled in EJB 3.1 but unfortunately we're not there yet and have to use 3.0 version. What would you suggest as the simplest way and are there caveats? I can think of the following approaches: JMS (maybe overkill) TimerService (looks sim...

Use external jars in EJB (JBoss)

I want to use two external jars from EJB: jar #1 - all interfaces of the EJB (home, remote etc) jar #2 - some types which I use inside my EJB What should I do to achieve this? If I put this jars inside ear it doesn't work, and JBoss throws NoClassFoundException ...

Business Logics on the client side

Why do people say that business logics should be implemented on the server side code (e.g. EJB) and not on the client application code? The example that I have in mind is a business object validation on a EJB based architecture. Does it really have to be delegated to the EJB or is it ok to run it on the client before the object is sent...

EJB failure to update datamodel

Here my EJB @Entity @Table(name = "modelos") @NamedQueries({ @NamedQuery(name = "Modelos.findAll", query = "SELECT m FROM Modelos m"), @NamedQuery(name = "Modelos.findById", query = "SELECT m FROM Modelos m WHERE m.id = :id"), @NamedQuery(name = "Modelos.findByDescripcion", query = "SELECT m FROM Modelos m WHERE m.descripcio...

EJB container managed threading model

Any good source/links or concise explaination about it? Thanks a lot! ...

Jsf validation error (shown by h:message) while updating Model, why?

List.xhtml: <h:selectOneMenu value="#{produtosController.selected.codigo}"> <f:selectItems value="#{produtosController.itemsAvailableSelectOne}"/> </h:selectOneMenu> <h:commandButton action="#{produtosController.createByCodigos}" value="Buscar" /> Controller Class method: public String createByCodigos(){ items = new Lis...

Returning Handmade XML from a Simple EJB

I've create an EJB in Eclipse with a method that returns String. The String is an XML fragment made from a DOM Document. When I invoke the EJB as a web service, the String is correct, but it gets CDATA tags added around it. How can I avoid this and get the raw XML in there, directly, instead? Thank you @WebService(serviceName = "XSe...

How do I stop/start EJB Apps in JBOSS 6.0 from the command line

If I use the web based administrative console for JBOSS, I can navigate to Applications - EJB2 JARs and see a list of deployed EJBs. By clicking on one of these, I get a page that allows me to start and stop the selected EJB. However, I cannot find a command line equivalent. Is there a way to start/stop EJB apps in JBOSS via the comma...

MVC architecture EJB funcionallity

HI would like to understand how do ejbs work in an MVC architecture, what i do not get is: When the web app starts, the system creates an ejb for each record in every table of db or an ejb with all the records of all tables? Thank you very much ...

What would be a correct implemantation of JSF Converter if I need to get an Integer to run a query? (should I use another interface)

HI here's my code: List.xhmtl <h:selectOneMenu value="#{produtosController.items}"> <f:selectItems value="#{produtosController.itemsAvailableSelectOne}"/> </h:selectOneMenu> <h:commandButton action="#{produtosController.createByCodigos}" value="Buscar" /> My Controller Class with innner Converter implemantation @ManagedBean (nam...

Refresh data in stateless EJB

Is there a function which is called every time an EJB is looked up? I need to refresh some data before any method is called. ...

Can't call method in EJB bean

Hi. I'm getting crazy over an error I'm currently experiencing. nde Argumente der invocation 14:45:08,492 ERROR [BusinessControllerInterceptor] object is not an instance of declaring class [ERRID: 0845] org.springframework.aop.AopInvocationException: AOP configuration seems to be invalid: tried calling method [publi...

EJB Dependency Version Conflict in Sun Application Server

To summarize the issue I'm encountering, I have an EJB which uses version A of a library (let's call it dep-vA.jar). dep-vA.jar is packaged in the root of the EJB's jar file. The domain lib folder in the application server contains version B of the same library (let's call it dep-vB.jar). When calling the EJB, I get an error due to dep-v...

EJB2 on different JBoss versions

I need to use some EJBs which are deployed on JBoss version 4.x from another EJB deployed on JBoss version 3.2.x. Is this possible? I ask because I have a third party application which uses some strange bridge's to do that and don't know why (though I haven't try to do this on my own). ...

Which JBoss 5.1 libraries I need for a standalone EJB client?

Hi, I'm migrating from JBossAS 4.05 to JBoss 5.1, and I have doubt about wich libraries I need to change in my EJB standalone clients. From JBossAS 4.0.5, I have a straight list of libraries that I need to deploy within all clients. But, in 5.1 version, some libraries was changed or supressed. Anybody have a straight list just for ac...