Hi!
I'm new to ejb. Actually I've created one ejb and I added reference to a web application which will call the session bean simply. How to call the session bean from the jsp file?
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 datagrams.
…
Hi Guys,
I have created simple example with @Singleton, @Schedule and @Timeout annotations to try if they would solve my problem.
The scenario is this: EJB calls 'check' function every 5 secconds, and if certain conditions are met it will create single action timer that would invoke some long running process in asynchronous fashion. (it's sort…
I am using netbean 6.8 btw.
Let say that I have 4 different tables: Company, Facility, Project, and Document. So the relationship is this. A company can have multiple facilities. A facility can have multiple projects, and a project can have multiple documents.
Company:
+companyNum: PK
+facilityNum: FK
Facility:
+facilityNum: PK…
Hi I'm at big financial institute and we've an application running on Websphere 6.1. on Solaris. Due to MQ Connectivity we had to install fixpack 6.1.0.23. Unfortunately this broke an ejb (1.1) which is still there as legacy (Test missed it).
[3/23/10 11:33:18:703 CET] 00000055 EJBContainerI E WSVR0068E: Attempt to start…
I am trying to set up a Jboss 6 in a clustered environment, and use it to host clustered stateful singleton EJBs.
So far we succesfully installed a Singleton EJB within the cluster, where different entrypoints to our application (through a website deployed on each node) point to a single environment on which the EJB is…
If I want to keep track of a conversational state with each client using my web application, which is the better alternative - a Session Bean or a HTTP Session - to use?
Using HTTP Session:
//request is a variable of the class javax.servlet.http.HttpServletRequest
//UserState is a POJO
HttpSession session =…
I have 2 entities are entities meeting and meetingAgenda.
I write code entity class (EJB) from database like this.
public class Meeting implements Serializable {
......
@XmlTransient
public Collection<MeetingAgenda> getMeetingAgendaCollection() {
return meetingAgendaCollection;
}
…
Hi,
I'm porting an application with EJBs 2.1 from Weblogic9 to JBoss AS5. I have made some of the changes like adding jboss.xml descriptors to EJBs and fixing application.xml of the EAR, but there are still problems when deploying the EAR. Here is a summary of the the latest error I'm getting when the first…
I'm just starting to try to learn Websphere, and I have my ejb deployed, but I cannot look it up. Here's is what I have:
public class RemoteEJBCount {
public static Context ctx;
private static String jndiNameStateless =…
Context
I have a J2EE application running on a JBoss 4.2.3 application server. The application is reachabe through a web interface. The authentication is done with basic authentication. Inside of the EJBs I ask the…
Hi,
I'm using 2 PU in stateless EJB and each of them is invoked on one method:
@PersistenceContext(unitName="PU")
private EntityManager em;
@PersistenceContext(unitName="PU2")
private EntityManager em2;
…
ajout du chapitre : la validation des données, EJB3.1
ajout de la section Java EE 6
réécriture du chapitre les services web de type Soap
corrections et ajouts divers
Hi all.
I'm using Hibernate Entity Manager 3.4.0.GA with Spring 2.5.6 and MySql 5.1.
I have a use case where an entity called Artifact has a reflexive many-to-many relation with itself, and the join table…
While running the application i do not able to set the jndi.properties and log4j.properties
Actually i have to se the following properities but I do not know where to write these code in a file or…
I'm creating a cli tool to manage an existing application. Both the application and the tests build fine and run fine but despite that I receive a javassist failure when running my cli tool that…
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…
Hi All,
I'm using EJBs with hiberante and WAS connection pooling...
i'm not able to acess the datasouce Ojcet......
is there any sample code or help form any one...
Hello,
Is it possible to call my ejbs from Flash actionscript? If yes, can anybody give me any link or example to accomplish the same?
Also if my ejbs are returning List how will flash come to…
I'm getting an error when trying to persist a many to one entity:
Internal Exception: org.postgresql.util.PSQLException: ERROR: insert or update on table "concept" violates foreign key…
I'm getting an error when trying to persist a many to one entity:
Internal Exception: org.postgresql.util.PSQLException: ERROR: insert or update on table "concept" violates foreign key…
I have a JSF application running on glassfish 2.1 with a EJB3 backend. For authentication I use a custom realm. The user authenticates using the e-mail-address and password he specified…
Hi I'm looking for a simplified overview of EJB3 components.
I seem to understand most of the pieces of the puzzle, but can't quite get them to fit together in my brain as a full…