Seam 2.1 and JBoss 4.2.2
I have set up the first App to have the EJB in the EAR with a local interface.
the 2nd app can look up JDNI name "ear-name/ejbname/local" but fails with "NoClassDefFound".
Does the EJB .jar need to be outside of the EAR?
Is this a classloader visibility issue or Is this a JBoss version issue? or something el...
Hi,
Please consider the following table (created using a corresponding entity)
request
-------
id requestor type version items
1 a t1 1 5
2 a t1 2 3
3 b t1 1 2
4 a t2 1 4
5 a t1 3 9
The above is what I want to achieve. The version field is a c...
I have deployed a war-file, with actionclasses and a facade, and a jar-file with ejb-components (a stateless bean, a couple of entities and a persistence.xml) on glassfish3. My problem is that i cant find my remote interface to the stateless bean from my facade.
My bean and interface looks like:
@Remote
public interface RecordService {...
So,hi there.
I've created a simple EJB3 test project, the code is simple:
@Stateless
@Remote( { ISumaSimple.class })
public class SumaSimpleBean implements ISumaSimple {
/**
* Default constructor.
*/
public SumaSimpleBean() {
// TODO Auto-generated constructor stub
}
@Override
public int sumar(in...
Hi All,
Can I use newest version of hibernate 3.5 (3.5.0-3.5.2) as JPA1 provider with EJB3.0 on Glassfishv2?
I tried, but hibernate 3.5 required JPA2 spec and obviously this did not work with GFv2.
Thanks,
Anton
...
I'm running two glassfish v2 domains containing stateless session EJBs. In a few cases, an EJB in one domain has to call one in the other.
My problem is that when the called EJB aborts with an exception, the caller does not receive the message of the exception and instead reports an internal error that is not helpful at all in diagnosi...
Is it possible to run a single @WebService bean as both secure and insecure at the same time, preferably using the same URL except for the http/https protocol difference?
I am able to run the service either secure or insecure using:
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
or
<transport-guarantee>NONE</transport-guara...
I need some help in persisting data into a table that has not been mapped.
Our database has a table in which all of its columns are foreign keys so by mapping the whole database all of the tables are correctly mapped. However that table called "category" is not mapped. We browse the data by passing for the table I mentioned using the...
Limits:
JBoss AS 5.
Business logic based on stateless EJB3. Some methods very long calculate data process.
Client based on Swing.
I want to:
Various context of data storage (transactional, request, session context).
Caching the result of calling methods in EJB3 (in context). Emulate pure function of the functional programming (M...
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 picture. I've developed numerous web applications (wars) that have been deployed on Tomcat before, but not a full-fledged EE application (ear).
I would like ...
Hi,
I deployed on Tomcat Axis2 and OpenEjb and got the error.
If deploy either only axis2 or openejb, they works properly, but when deploy them together, Axis2 can't be deployed, but OpenEjb is available.
Could anybody help with this problem, please?
This is error that I got when Tomcat starts :
SEVERE: Error deploying web applicatio...
I am writing an application that's sole purpose in life is to do CRUD operations for maintaining records in database. There are relationships between some of the tables/entities. Most examples I've seen for creating session beans deals with complex business logic/operations that interact with many entities which I don't have.
Since my...
I'm using WebSphere 6.1 with the EBJ3 Feature Pack installed. Does anyone know what jar I need to include in my project from the AppServer folder of my WebSphere installation in order to be able to use the @WebService annoation? I cannot seem to find it. Thanks.
...
I have understood that if I use EJB in Spring context, I get all the same benefits as if I was using it in "pure" EJB3 environment, is this true? I have googled but can't find a definitive, clear answer.
For example, let's say I have a session bean that updates some tables in the database and it throws a System Exception. In "pure" EJB3...
I have a simple EJB application that I can deploy and test on a local WebLogic instance (v10.3.0.0) without problems. I need to deploy this on a remote WL server (v10.3.3.0), and test it from a local machine. Deployment is successful, but when I try to run any of the clients from JDeveloper, I get this error:
<2010.06.02. 16:08:36 CEST>...
I have a terrible problem that hopefully has a very simple answer. I am running out of memory when I perform a basic
If I have code like this:
MyEntity myEntity;
for (Object id: someIdList) {
myEntity = find(id);
// do something basic with myEntity
}
And the find() method is a standard EntityManager related method:
public My...
This is a cross-post to the Seam forum: http://seamframework.org/Community/DeproxyASeamComponentThatIsBeingPassedAsARemoteEJBParameter
A coworker of mine recently brought up a scenario that was a bit surprising to me, it involves 2 components and a remote EJB
He has a reference to Component B that is injected into Component A.
Compone...
What would you suggest as a good and practical but simple pattern for a soloution with:
HTML + JSP (as a view/presentation)
SERVLETS (controller, request, session-handling)
EJB (persistence, businesslogic)
MySQL DB
And is it necessary to use an own layer of DAO for persistence? I use JPA to persist objects to my DB.
Should I with...
Hi,
I get the "java.lang.ClassNotFoundException: org.jnp.interfaces.NamingContextFac
tory" error while running my packaged ejb3 swing client jar. Here's the stack trace.
G:\Courses\OSUMC\Installables\June 5\New>java -jar MetaDB-Client.jar
javax.naming.NoInitialContextException: Cannot instantiate class: org.jnp.interf
aces.NamingContex...
Hello,
I have an existing application written in SEAM that uses SEAM Security (http://docs.jboss.org/seam/2.1.1.GA/reference/en-US/html/security.html). In a stateless EJB, I might find something like this:
@In
Identity identity;
...
if(identity.hasRole("admin"))
throw new AuthException();
As far as I understand, Seam injects the...