I am in the process of converting a large J2EE app (called AeApp below) from EJB 2 to EJB 3 (all stateless session beans, using glassfish 2.1.1), and running out of ideas.
The first EJB I converted (let's call it Foo) ran without major problems (it was the only one in its ejb-module and I could completely replace the deployment descript...
I'm getting a java.lang.ClassNotFoundException: javax.ejb.EJBObject error when I'm running my application as a JAR file. When running it in Eclipse everything is working fine.
The application properly access the main class and the main method. But when it tries to load the application context it cannot resolve a reference to an EJB bean...
Hi.
I am trying to replace standard logger initialization by some injection
1-st.
I was trying to use weld weld logging in stateless bean/webservices
@Stateless
@WebService
public class EchoSSL {
@Inject
private Logger log;
public EchoSSL() {
}
public String echo(String msg) {
log.debug("Log test");
...
Hi all,
I'm building an application that is a kind of registry. Think about the dictionary: you lookup for a word and it return something if the word is found. Now, that registry is going to store valuable informations about companies, and some could be tempted to get the complete listing. My application use EJB 3.0 that replies to W...
I'm having some problems with the global JNDI names of my EJB resources which is (or at least will) cause my JNDI look ups to fail. The project is being developed on Netbeans and is a standard Maven Web Application. When my application is deployed to GF3.0 the application name is set to something like:
com.example_myapp_war_1.0-SNAPSHOT...
I am looking at this question from someone with a Microsoft background. If I wanted to get to know the EJB world, who are the leading players in terms of implementations?
...
Hello
I never used stateful EJBs.
I understand that a stateful EJB can be useful with a java client.
But i wonder: in which case to use them on a web application? And how?
Should we put these stateful beans in Session (because of stateless http)?
Is it a good practice?
(without debating too much about stateful vs stateless)
...
Hello,
Each time I try to deploy my server side code, the build fails. If I try to restart my machine, the build is successful but fails later when I try to build the subsequent times. I get the following Severe messages when I attempt to build:
SEVERE: "IOP00410216: (COMM_FAILURE) Unable to create IIOP listener on the specified host/p...
My Entity bean has 2 list:
@Entity
@Table(name = "TABLE_INTERNAL")
public class Internal implements java.io.Serializable {
...SOME GETTERS AND SETTERS...
private List<Match> matchs;
private List<Regional> regionals;
}
mapped one FetchType.LAZY and one FetchType.EAGER:
@OneToMany(fetch = FetchType.LAZY,mappedBy = "interna...
Hi All,
I need some direction with JMX and J2EE.
I am aware (after few weeks of research) that the JMX specification is missing as far as deployment is concerned. There are few vendor specific implementations for what I am looking for but none are cross vendor. I would like to automate the deployment of MBeans and registration with the...
I'm experimenting with EJB3
I would like to inject a stateful session bean into a servlet, so that each user that hits the servlet would obtain a new bean.
Obviously, I can't let the bean be an instance variable for the servlet, as that will be shared. And apparantly injecting local variables isn't allowed.
I can use the new operator...
i have a client thats sending a message to the ejbserver using UDP, i want the server(stateless bean) to echo back this message to the client but i cant seem to do this.
or can i implement the same logic by using JMS?
please help and enlighten. this is just a test, in the end i want a midp to be sending the message to the ejb using dat...
I'm trying to use JNDI to obtain a new Stateful Session Bean in a servlet (as a local variable). My doGet() method has the following:
Bean bean = (Bean) new InitialContext().lookup("beanName");
I've tried including java:comp/env but all of my attempts have led to naming exceptions.
I'm attempting to bind the bean in the @Stateful an...
Hi
Ejb timer service can start some process in desired time intervals.
Also we can do the same thing with cron (min 1 minute) interval.
But doing it with cron we have more power on controlling, monitoring and changing the intervals.
Also we can restart if needed the cron very easily by command line. Also we can add or remove lines i...
I want to call ejb from servlet via remote interface. Maybe it is a RTFM question but i cannot find solution via Google or documentation. What configuration steps I need to do than ejb be accessible for webapps
I use Jboss 4.2, Java 1.6
Thanks for your answer!
...
I have been reading about JPA and EJB3 and would like to confirm that my understanding of their relationship is correct. Here's what I think I know...
JPA is a specification that has been implemented by a number of vendors including:
JBoss/Hibernate
Oracle/TopLink Essentials (now EclipseLink)
Apache/OpenJPA
EJB3 is a specificat...
Hi,
I'm new to Java Annotation. I know how to create custom annotation but I don't know how to process that Annotation to generate the dynamic code just like ejb 3.0 and hibernate does.
I read some articles based on APT but no one gives the details about how to process the Annotation.
Are there any tutorials with sample code for process...
Hi,
I have a stateless session bean and a standalone-java-program acting as a client. The bean method executes just fine when the interface is marked @Remote. However,when I mark that interface with @Local instead of @Remote, I get the following Exception.
[java] javax.naming.NamingException: Could not dereference object [Root except...
Disclaimer: I'm completely new to JEE/EJB and all that, so bear with me.
I have a simple EJB that I can successfully deploy using JDeveloper 11g's integrated WebLogic server and a remote database connection (JDBC). I have a DataSource named "PGY2" defined in WebLogic, and I can test it successfully from the admin console.
Here's the co...
Hello,
Does anybody know whether I can use multiple data sources in a single stateless session bean in EJB3?
I want to develop a session bean to aggregate a lot data and return, but these data comes from 2 data sources, is this possible?
Can someone provide a sample on this?
Thanks very much !
...