Hi Guys, I am very new to EJB 3.0
I have deployed a EAR in WebLogic 10.3 g which have two ejb modules called
ServicesDump
MessageDump
In ServicesDump i have a session bean which doing the database updates, After i have deployed, When i called these remote session-bean from out side of container to test the functionalites it working...
Transaction semantics and state-fullness are considered implementation details in EJB3.
An implementation can decide whether to use bean or container managed transactions.
It can decide the type of of container managed transaction.
It can decide whether it's state-full or stateless.
However, logically, these are important interface deta...
Hi,
I have a rather unusual idea. I want to run a single instance of a JEE application client inside app server, in a similar way that JMS provider is run/embedded "within" the app server, so that it is started and stopped with the app server. Why? To ease deployment and maintenance of a complex distributed JEE system which has applicat...
I want to study EJB 3.0, but I don't have any idea which I book should buy. Could anyone please tell me the name of any good for EJB 3.0 study?
...
I'm having problems calling EJB3 stateless bean outside the container.
Code for getting the object reference:
Context envCtx = (Context) context.lookup("ejb");
MyObject o = (MyObject) envCtx.lookup(MyObject);
The second row results in exception:
java.lang.ClassCastException: javax.naming.Reference
I use JBoss.org 5.1.0 GA.
Based ...
Dear all,
I do the following steps with eclipse 3.5 ,JBoss 4.2 ,EJB3 but I face class not found exception
1.compiling this code to foo.jar file
package mypackage.foo;
import myejbpackage.ejb.fooInterface;
class foo implements fooInterface{
@override
void helloWorld(){System.out.print("HelloWorld");}
}
Note that fooInterface ...
I've got a NullPointerException using EJB3 in a J2SE environment (without EJB3 container)
Briefly, I've got a stateless bean implementing an interface.
When I call it in another class like in a main, a NullPointerException is triggered.
Sample:
@stateless
@Local(IMyInterface.class)
public class myBean implements IMyInterface{...}
pu...
Hi!
I am trying to perform a JNDI-lookup from within the GWT devmode.
I have a local glassfishv3 running the EJBs I want to look up. If i deploy the GWT-Webapp into said glassfish everything works as expected. But if I try to look up the EJBs from within devmode I get this Exception:
javax.naming.NamingException: Lookup failed for 'my...
I would like to specify JNDI name for an EJB3 bean using annotation, but JBoss 5.1.0 GA seems to ignore the annotation completely. Bean's annotations are:
@Remote(Foobar.class)
@Stateless(name = "Foobar")
@TransactionManagement(TransactionManagementType.BEAN)
@RemoteBinding(jndiBinding="ejb/Foobar")
public class FoobarBean implements Fo...
Hi,
While deploying a mavenized application consisting of a parent project, ejb jar project and a web project I have following stack trace in Jboss As ,5.1.0.GA.
I checked that I have the dependency for jboss-el-1.0_02.CR4.jar and the library also contains the class org/jboss/el/util/ReflectionUtil.
Any ideas ? If required, I will ...
Hi, I am using MyEclipse and I use an Enterprise Application Project (EAP) that automattically deploys my Web and EJB Projects.
These projects use some other projects that are just POJOs, "simple" java projects. Like a library kind of thing.
The problem is that when I change something in on of the "simple" java projects I have to rede...
We have a timer service triggered task in JBoss 5.1.0.GA application and the problem is that we cannot change the transaction time out. This long Lucene indexing can take longer than the default 300 second limit.
The question is how to change the timeout value, adding @TransactionTimeout(1800) to the worker method or the class did not ...
Hello,
I have two ears, ear1 contains an ejb project and client, containing the interfaces (local). Ear2 contains a war that needs to call the ejb3 service. When I call the ejb service I am getting a classcastexception, I think because there are two classloaders involved here. Is there a clean way to achieve this?
I'm working in RAD75 ...
There are few applications that use java persistence. Each application has its own set of entities that represents the same tables in DB. For instance, application A has entities for Table1, Table2, etc; at the same time, application B also has entities for Table1, Table2, etc. Instead of that I want to create a new EJB module with 1 b...
Hi All,
I'm building a J2SE application with EJB3 and an Oracle Express Edition DB.
My problem is like that - I set an EntityBean in my project which matches a table in the DB. The table contains a column which is not nullable and has a default value. All I want is that when persisting a new data to this table using the EJB, the column...
I'm new to JPA so forgive me if not being clear.
Basically I want to prevent concurrent modifications by using Optimistic Locking.
I've added the @Version attribute to my entity class.
I need to know if this algorithm on handling OptimisticLockException is sound.
I'm going to use the Execute Around Idiom like so:
interface UpdateUnitO...
Hello. I have a stateless EJB (3) that uses internal cache which is refreshed automatically every 24 hours. I would like to expose a MBean method to be able to force cache expiration or even cache reload on this EJB via JMX console on Jboss 4.2.
Can someone share an example on how to code this scenario? I'm totally new to JMX when it co...
Is it possible to get the year or month out from a date filed with ejbql like this pseudo code
select year(createdDate), name from table group by year(createdDate) ?
Best regards Anders Olme
...
Hi Guys,
I'm playing aroud with Grails and am finding the ORM stuff tedious because I don't fully understand what I'm doing when it comes to domain classes. I'm hoping someone can put me back on track
Consdier the the following
Test Job One:Many Hardware Used on Job Many:One Physical Hardware
...this is analogous to the cla...
Our EJB3 application can run on top of Oracle AS or JBoss AS. Is there a way to find out type of AS during runtime?
...