Questions tagged [ejb-3.2]

the ejb 3.2 api belongs to the java enterprise edition 7.0 standard. It brings non-persistent timer service and asynchronous beans into the EJB-lite profile and transactional lifecycle callbacks for stateful session beans. It also makes a number of pre EJB 2.1 standards optional such as CMP/BMP beans and the EJBQL, rpc webservice endpoints are also made optional.

92 questions
0
votes
1 answer

What is the equivalent implementation of service POJOs (jBoss services in jboss 6 AS) of EJB 3.0 in EJB - 3.2

Service POJOs are available which is used to define as jBoss services (in Jboss AS 6) in EJB 3.0 and the tutorial is http://docs.jboss.org/ejb3/app-server/tutorial/service/service.html and below are the related annotations. import…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
1 answer

@LocalBinding(jndiBinding="sample/student") of EJB 3.0 not present in EJB 3.2

@LocalBinding(jndiBinding="sample/student") in EJB 3.0 is used to give preferred JNDI name to EJB bean. And to lookup using defined JNDI name, the code used is Context c = new InitialContext(); studentBean = (studentlBean)…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
1 answer

How to deploy EJB 3.0 application in Wildfly 8 application server

I am migrating EJB 3.0 application from jboss AS 6 to wildfly AS 8. Is it possible to deploy EJB 3.0 application to wildfly as ease in wildfly? After updating the EJB spec as per wildfly EJB modules in pom.xml, I am getting compilation error that…
sridhar
  • 1,117
  • 5
  • 31
  • 59
0
votes
1 answer

How to create a Remote EJB Bean using Glassfish 4?

I am creating a new EJB project with beans that are used in another simple project. I am using NetBeans 7.4 with Glassfish 4.0. Here are my Interface and implementation for the EJB project : DbBeanInt.java package com.ejb; import…
Arnold
  • 321
  • 1
  • 3
  • 5
0
votes
0 answers

Ejb 3 what is the type of bean, stateless or statefull

I am trying to migrate ejb 2.1 to ejb 3.2. In ejb 2.1 EJBMetaData object has isStateless() function. So i can check the type of bean(stateless or stateful) with ejb home interface's metadata object. In ejb 3 we don't have EJBHome and EJBMEtaData…
0
votes
3 answers

Persistense @OneToMany - @ManyToOne

I'm having trouble persists the following entities: @Entity @Table(name="entityOne") public class EntityOne implements Serializable { @Id @Column(name = "id", nullable = false) private Integer id; @OneToMany(fetch = FetchType.LAZY,…
Mamga
  • 121
  • 2
  • 12
0
votes
2 answers

Correct Configuration for JSF EJB application using remote interface

I'm creating a java class library and EJB module as a user authentication application which can be used by stand alone clients by calling the remote interface EJB and its implementation class (session bean). I'm Using Netbeans 8 and Glassfish 4.0.…
jay tai
  • 419
  • 1
  • 17
  • 35
0
votes
1 answer

EJB3: Right way to insert initial data when application starts like Grails Bootstrap?

Similar to Bootstrap.groovy in Grails, how to add some initial data when an app starts? Since in @PostContstruct method, the EntityManager is not available in Stateless session beans (or am I doing something wrong?), so what should be the right way…
0
votes
2 answers

glassfish 4 EJB 3 standalone client jndi lookup

I have problem with calling remote ejb. I have successfully deployed remote EJB: public interface IHelloWordlHome extends EJBHome { mybeans.IHelloWordl create() throws RemoteException, javax.ejb.CreateException; } public interface IHelloWordl…
Srneczek
  • 2,143
  • 1
  • 22
  • 26
0
votes
1 answer

how to embed ejb3 in java application?

I am having an java desktop Application, based on the necessary configuration I want to start the ejb container. Is there a embed EJB container I can use? How can I use only the jboss ejb3 container? As I don't require web container.
Njax3SmmM2x2a0Zf7Hpd
  • 1,354
  • 4
  • 22
  • 44
0
votes
1 answer

EntityManager in SSB null

I am trying to update a small alpha version of a enterprise application originally written in Java6. Now I want to use: Java 7 JSF latest Maven EJB 3.2 with Glassfish So far I can deploy my EAR file on Glassfish without problems. My webapp can be…
Arquillian
  • 125
  • 2
  • 16
0
votes
2 answers

Why when I create an EJB an interface is created too?

I am starting to learn about EJB, despite I know they handle the business logic, I don't understand why an EJB has to implement an interface. I know that the interface is a list of the methods and is used by the client to access them, but what if I…
0
votes
2 answers

ejb3 endpoint webservice jboss 7 throws illegalstateexception

I have a Web service defined as such: @WebService(endpointInterface = "com.example.Test", serviceName = "TestWS") @Stateless public class TestWS implements Test { public final String basic(final int number) { return…
coderatchet
  • 8,120
  • 17
  • 69
  • 125
0
votes
1 answer

How to use/configure JAX-RS 2.0, SpringSecurity 3.1.+, EJB 3.2 all together

I am currently trying to setup a project with these main technologies: Java EE 7 EJB 3.2 JAX-RS (Jersey) 2.0 Glassfish 4 Spring Security 3.1.5 I saw that it is possible to write something like that @Stateless @Path("apath") public class…
Laurent
  • 156
  • 2
  • 11
0
votes
1 answer

What can I use instead of an entity bean?

I would like to write a Java EE app for online learning. I'm thinking of this data representation: @Entity public class Course { private String name; private String[] instructors; private String[] teachingAssistants; private…
tbodt
  • 16,609
  • 6
  • 58
  • 83