ejb

What architecture do I use for a Flex and Java application

Hi I am thinking of migrating a Java/Swing application to Flex3. The existing app architecture is as follows: Java/Swing client, JDO(Kodo) - Java Persistance engine, JMS - Messaging (for real time updates), EJBs - Business logic, Weblogic, UDB - Back-end database I am looking to reuse a lot of the java server side functionality of the ...

EJB JNDI lookup on different WebSphere servers

I have two separate installs of WebSphere. (Actually one is WebSphere Application Server V6.1 with EJB 3.0 and Web Services feature packs, and the other server is WebSphere ESB Server V6.2). However, I know that ESB is really built on top of WAS, so it has all the configuration settings that a regualr WAS server has. In my ESB server,...

Calling EJB in WAS server from another WAS server

Messages: 33 [Post New]posted Today 5:33:25 AM Quote Edit [Up] Hi, I have a EJB deployed in WAS server which I am trying to call from a POJO code running in another instance of WAS server. For security I have same custom registry in both the servers and have created and synchronized LTPA keys in both the servers. But when I try to find...

Unable to see new MBeans in JBoss 5.0

I've been going through several examples on how to add MBeans to JBoss 5.0 so they can be configured though the JMX Console, but none of these examples have ever shown up in the JMX view. I've now tried to get ehCache's JMX integration to work to no avail. I'm trying (as in the ehCache documentation) the following: CacheManager manage...

How to auto execute a session bean's method on ear deployment?

I need a way to have a session bean's method executed periodically every week at a certain time. I am thinking of using the quartz scheduler to do this. My question is, how do I start the scheduler to run from the moment the .ear file is deployed automatically? Is there any annotation that I can use on the stateless session bean calling ...

Do I need a synchronized Map in implementing the EJBHomeFactory Pattern?

When you want to call an EJBBean from the client, first you need to get hold of an EJBHome object reference through JNDI lookup. This code needs to be executed each time you need to work with the EJBBean so is gets redundant and expensive. To solve this problem, you can cache the EJBHome object references and reuse them again and again...

Combining Stateless & Stateful Connection

My application have a Stateless EJB. And Now I need to do some db operation via Stateful. Can this Stateless EJB can access the DB Utility which will open connection stateful? Will this lead to any design / performance Issue? ...

WebSphere Application Server EJB Optimization

We are working on developing a Java EE based application. Our application is Java 1.5 compatible and will be deployed to WAS ND 6.1.0.21 with EBJ 3.0 and Web Services feature packs. The configuration is currently one cell with two clusters. Each cluster will have two nodes. Our application, or our system, as I should rather say, comes i...

weblogic context lookup error : java.rmi.UnmarshalException: error unmarshalling arguments

Hi, We are facing an issue in our production env. We have searched the net high and low and we were not able to come up with any answers. This error(stacktrace below) occurs when an ejb lookup is made from managed server 1 to manager server 2. Virtual ip is used for the lookup. It occurs intermittently and at random intervals. We are no...

Difference between Javabean and EJB

Just a simple question from a relative Java newbie: what is the difference between a JavaBean and an EJB? ...

Can I have multiple EJB declarations for the same Home and Remote classes?

Can one declare multiple beans in the ejb-jar.xml (in EJB 1.1) deployment descriptor with different names but the same classes behind? For example: <session> <ejb-name>AccountFacade</ejb-name> <home>com.something.ejb.AccountFacadeHome</home> <remote>com.something.ejb.AccountFacadeRemote</remote> <ejb-class>com.something...

Writing data-accessing code in PHP

I am a frontend developer who also does some backend work. I want to write an entire web app in php. Somehow, my backend team is hell-bent on using EJB, Struts etc... Their reason for not using php is this -> "it is not advisable to write data-accessing code, that has queries etc.. in php. the backend is better written in ejb it is more...

Is there a way to detect the undeployment of an EJB?

Hi, I need to do some clean up (release open ports,etc.) before my EJB Session Bean is being undeployed, is there a way to detect this? The EJB is running on Weblogic 10.0. ...

I need EJB3 tutorial

Hi, i want to learn EJB3. Anyone pls suggest some good tutorial website for EJB3. Thank you ...

Make transactionless EJB call inside a transaction

I'll try to describe the situation. We have a web service; on each request web service starts a JTA transaction. It performs several database calls through XA datasource within that and calls some other web services (out of transaction context) and also makes a couple of remote EJB calls on other server. The problem is that container s...

How to unittest ejb 2 classes

What kind of tools and techniques exist for this purpose? ...

Proper EJB Exception handling - ClassNotFoundException from client

I have some EJBs that use Hibernate to persist data to the database. I have a thick Swing client that talks to these EJBs. The client knows nothing about the database (no driver jar). During one transaction a Hibernate ConstraintViolationException can be thrown. I catch all exceptions and wrap them in an EJBException like so: catch(Hi...

Where to find simple skeleton for ejb 2.x project with ant build file?

Where to find it? ...

What else do I need in ejb 2.x ear?

I have now ear |----test.jar |-------META-INF |-------application.xml |-------test |-------Test.class |-------TestEJB.class |-------TestHome.class |----test.war |-------WEB-INF |-------web.xml |-------test |-------TestServlet.class appli...

Why are Data Transfer Objects an anti-pattern?

I've recently overheard people saying that DTOs are an anti-pattern. Can someone please explain why? What are the alternatives? ...