ejb

JBoss Seam: components injected into POJOs, but not Session Beans

I have a Seam component that handles login, with the name "authenticator": @Name("authenticator") public class AuthenticatorAction implements Authenticator { @PersistenceContext private EntityManager em; @In(required=false) @Out(required=false, scope = SESSION) private User user; public boolean authenticate...

how to run simple ejb program ?

I use myeclipse and jboss5.0.1 server.mysql is the database that i use. I want to run simple ejb program on myeclipse. ...

JSF2 - backed by EJB or ManagedBean?

As I am learning JSF2, I realized I am not sure what the backing components should be. From design point of view, what is the difference between EJBs and @ManagedBeans? In the end I am going to use JPA, so EJB is a natural choice for business layer. Is it a good practice to use EJB directly from JSF (as explained here)? At the moment I...

Conceptually how does load-balancing on the EJB tier work in Glassfish/any ejb container

I am wondering conceptually how load-balancing works on the EJB-level (not web session replication) with Java EE containers like Glassfish. From what I have gleaned your remote interface is a proxy that delegates your call to one of many servers you may have in an environment. If things fail are they supposed to be able to "finish" o...

spring framework why is better

What is better spring framework or ejb? ...

JMS - common uses

What is common and useful uses of JMS and Message Driven Beans? ...

EJB web services transactions

We have a few products that communicate using various forms of web services. Some use straight XML passed through http requests (HttpClient). Others make remote EJB calls and some use EJB 3 web services on EJB session bean methods. In the HttpClient versions we have problems where the remote end takes 10+ minutes to complete a databas...

Difference between Java Bean and Enterprise Java Beans?

Are they different or they are used interchangeably? If they are Different, then what made them different from each other? ...

UnmarshalException: Method not found Exception in EJB

Hi all, I have added a method to my stateless sessionBean (getFNEdetails) with one String parameter. But I am getting this error when I try to test in weblogic10 server java.rmi.UnmarshalException: Could not unmarshal method ID; nested exception is: java.rmi.UnmarshalException: Method not found: 'getFNEdetails(ILjava.lang.String;) ...

Which is better: JNP or Corba?

Hello. I've try with EJB 3.0 and swing client and i've tried with glassfish and jboss as application server when i did use glassfish, the comunication is via corba. when i did use jboss, the comunication is via JNP. in my tests the JNP was faster than corba who has some like this?, and who could tell me which is better: JNP or Corba?...

How to handle dynamic role or username changes in JSF?

I have a JSF application running on glassfish 2.1 with a EJB 3 backend. For authentication I use a custom realm. The user authenticates using the e-mail-address and password he specified on registration. Everything is working quite well. Now I have two related problems: 1) The user can edit his profile and -- naturally -- he can also c...

Lookup of remote interface is not getting recognised in JBoss

The following code is used by IPMBaseBean.class for accessing remote interface . Object obj = iniCtx.lookup("java:/comp/env/ejb/ODIControllerSessionEJB"); In jboss-web.xml jndi-name is refered as below <ejb-ref-name>ejb/ODIControllerSessionEJB</ejb-ref-name> <jndi-name>jnp://vwhq5275.whq.ual.com:6200/ODIControllerSessionEJB</jndi-na...

Controlling the security Principle passed on a EJB call

Hello, I am working on a large existing EJB 1.1 application that current does its own sercurity and has no EJB managed security. I am trying to move to a more standard solution in small steps, and so I want to start controlling the security Principle being passed to the EJB. I am not going to be able to change the current login or secu...

Short survey on Enterprise JavaBeans usage

Hello, I would be very appreciative if anyone who has any experience with using Enterprise JavaBeans, or who considered, but rejected the use of EJBs would respond to a short survey. The survey consists of eleven (11) questions, and should take five (5) minutes or less to complete. I am collecting this data for a class that I am takin...

jvm version for Websphere 6.1.0.23on Solaris

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 EnterpriseBe...

MVC architecture example using JSF 2.0 and EJB 3?

Somebody knows an example of this? an application made with JSF 2.0 and EJB 3? directory structure, etc, those kind of things, I’m trying to approach the best way to create a Java EE app using those technologies. ...

Am I allowed to declare a lifecycle interceptor on an interceptor?

I have my business bean defined thus: @Local @Interceptors(BusinessInterceptor.class}) public class MyBean implements SomeBean { ... } And then I want my BusinessInterceptor to be configured with Spring's SpringBeanAutowiringInterceptor: @Interceptors(SpringBeanAutowiringInterceptor.class) public class BusinessInterceptor { @Auto...

problem injecting Sessionscoped bean in Managed bean

I have a Session scoped bean @SessionScoped public class UserData implements Serializable { private String uid; public String getUid() { return uid; } public void setUid(final String uid) { this.uid = uid; } I'm setting a value in a SessionScoped bean in my stateless session bean public void setOperator(final Operator oper...

is it right to call ejb bean from thread by ThreadPoolExecutor?

I trying to call some ejb bean method from tread. and getting error : (as is glassfish v3) Log Level SEVERE Logger javax.enterprise.system.std.com.sun.enterprise.v3.services.impl Name-Value Pairs {_ThreadName=Thread-1, _ThreadID=42} Record Number 928 Message ID java.lang.NullPointerException at ua.co.rufous.server...

JavaEE in netbeans giving BUILD FAILED error upon deployment

When I try to run my Java EE program in Netbeans consisting of servlets (java pages), JSP's, beans(java pages) and HTML pages I get this error in the output: In-place deployment at C:\Users\Derek\Documents\NetBeansProjects\EJBProject\EJBProject-war\build\web Initializing... deploy?path=C:\Users\Derek\Documents\NetBeansProjects\EJBProjec...