Hi community,
I'm deploying an EJB which should set a timer and be triggered by it every 24 hours. But where should I set the timer? @PostConstruct does not help -- this is a session bean, so post-construct method will be invoked when the actual instance is created (this never happens as the sole purpose of this bean is to track timer)....
Hi, I have resource local datasource (Oracle9i) deployed at JBoss 5.1.0:
<datasources>
<local-tx-datasource>
<jndi-name>OracleDS</jndi-name>
<connection-url>jdbc:oracle:thin:@IP_ADDRESS:1521:inv9i</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>***</user-name>
<password>***<...
I'm using jbossIDE Eclipse 1.6. when deploying my .ear app, I get a java.rmi.MarshalException.
what's surprising is that just a few min ago, everything was OK.
I feel like this jbossIDE Eclipse thing is really useless. it's crashing all the time.
java.rmi.MarshalException: Failed to communicate. Problem during
marsh...
When trying to access an ejb from a client , I get this exception :
java.rmi.ServerException: RuntimeException; nested exception is:
java.lang.NullPointerException
at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:421)
at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)
I can't figure f...
I have 2 Hibernate objects :
Dero and Motif.
a Dero has a set of Motif.
I load a Dero object from the DB fine. but when I try to access its set of Motif :
assertEquals(dero.getMotifRefus(),deroFromDB.getMotifRefus());
I get an exception :
org.hibernate.LazyInitializationException: failed to lazily initialize a collection
of rol...
whenever I try to call my ejb from a client, I get this error :
java.rmi.MarshalException: Failed to communicate.
Problem during marshalling/unmarshalling; nested exception is:
java.io.InvalidClassException: com.afrikbrain.util.message.MessageInfo;
local class incompatible:
stream classdesc serialVersionUI...
I'm working on modifying an existing application implemented as a 2.1 stateless EJB. I'd like to put in some kind of generic, detailed, logging of all calls made to the EJB.
Stuff I'd like to log:
Name of method being called
Serialized copy of all passed parameters
Serialized copy of return value
I implemented something like that fo...
I keep getting this "suggestion" from many fellow developers over and over again. In my experience I've found that EJBExceptions are well-suited for "end of the world" from the bean instance perspective (like when something is so wrong that the bean instance cannot recover by itself). If an instance can recover, I think it's better to th...
I've got a fairly boring stateful session bean called MyEJB, and I'm using Glassfish 2.1 and javaws. Everything works fine, except method calls which return a lot of data are taking an inordinately long time. Wireshark tells me the network communication is over pretty quickly, so the problem is on the client side...in the stub. Using a n...
Here's my Java class
import endpoint.NewSessionRemote;
import javax.naming.Context;
import javax.naming.InitialContext;
public class HelloClient {
public static void main(String[] args) {
try {
Context ctx = new InitialContext();
NewSessionRemote hello = (NewSessionRemote) ctx.lookup("endpoint.NewSe...
we have a J2EE app on which we're still working. It runs on Oracle DB. and the business tier is coded with EJB 2.0 with a rich client interface.
now, the application is going to be deployed on multiple sites. and each site will be creating new items (new contracts, etc.).
what we want to realize is to duplicate all new items added to a...
I'm using Weblogic 9.2 with a lot of MDBs. These MDBs access JDBC DataSources and write to both locally and externally managed JMS Destinations using local and foreign XAConnectionFactorys, respectively. Each MDB demarcates a container-managed JTA transaction that should be distributed amongst all of these resources.
Below is an excerpt...
I have an old EJB (2.1) project that uses xdoclet (1.2.3) to generate the EJB interfaces. Unfortunately xdoclet makes it impossible to use generics in the method signatures.
Is there a substitute or other way to to allow generics in the parameters?
Here is the minimum type of generics use I'm looking for:
public Object ejbMethod(Coll...
Using JDeveloper as my IDE, I have a web application which calls services provided by annotated EJB 3.0 beans packaged in third party jar. How do a configure the web application project to deploy the beans to the embedded OC4J container when I run the application? The jar file is reference by the project, and I have a META-INF/applicat...
Is it possible to call in some way an EJB deployed on JBoss from a Business Service deployed on BEA AquaLogic Service Bus?
Just to precise, I'm not going to call it through Web Service, but through normal EJB call. I would appreciate if anyone has a succesful experience in this matter.
...
I had this doubt for sometime now, some people say that there's no such thing called entity beans in EJB 3.0. Is there any possibility to say so, EJB 3.0 uses JPA to persist the data and there's no enhancement to the entity beans from the previous version (EJB 2.1) it's just brought back.Another fact is EJB 2.1 uses abstract POJOs and EJ...
For tests of some small JBoss enterprise apps I would like to use JUnit, and the Maven Cargo plugin. (I know that there is also JSFUnit but first I would like to take a closer look at Cargo.)
Is there a simple example available online which I could use as a reference for running a JUnit test which invokes a EJB operation using JBoss (4....
Hi there,
suppose I have an entity "Employee", and an entity "Address". An employee has an address associated to him/her. In a relational database sense, the Address table would be considered a weak entity, since an employee address cannot exist if there is no corresponding Employee in the database. Thus, suppose I want to model the fol...
When building my EJB project with maven, maven expects the ejb-jar.xml to be in META-INF/. However; I need to be able to put it in directoryA/META-INF.
maven-ejb-plugin doesn't seem to provide a parameter for specifying where ejb-jar.xml is.
Can you point me in the right direction?
...
I'm using Hibernate Validator in an application with EJB and Spring MVC. I'm using JBoss 5, Hibernate 3 and Spring MVC version 3.
I'd like to try and catch validation exceptions at Spring Exception Resolver level and generate an error message based on the InvalidStateException message. I don't want to put exception handling logic in t...