ejb3 « JBoss « Java Enterprise Q&A





1. JBoss: What does the warning EJBTHREE-1246 from the InterceptorRegistry mean?    stackoverflow.com

I am currently developing an EJB 3.0 based application on the JBoss AS 5.0.0.GA and just recently the following warning showed up in the server log:

09:50:19,735 WARN  [InterceptorsFactory] EJBTHREE-1246: Do ...

2. Calling a Remote Bean vs Local Bean in App Server    stackoverflow.com

Is there a noticeable amount of performance overhead in using Remote Bean Interface over using a Local Bean Interface? I would like to have every Client application connect to remote ...

3. Can Java Code tell if it is in an App Server?    stackoverflow.com

Is there something I can call from a POJO to see if the code is currently in an App Server or outside of an App Server? Something like this (In rough PseudoCode):

System.getRunningEnvironment().equals(Environment.Glassfish)
or
System.getRunningEnvironment().equals(Environment.ApplicationServer)
or
System.getRunningEnvironment().equals(Environment.JavaSE)
...

4. How to configure startup sequence of JBoss services (JmsActivation)    stackoverflow.com

When I deploy my application on JBoss 5 the EJBs are created before the QueueService is started. Creation of Message Driven beans now fails miserably because the queues are not yet ...

5. Configuring an MDB in JBOSS    stackoverflow.com

How maxMessages property affects the MDB? For example:

@ActivationConfigProperty(propertyName = "maxMessages", propertyValue="5").
How would this value affect if maxSessions is 10?

6. JBoss/EJB - location of custom configuration file    stackoverflow.com

I'm implementing an EJB-based system in JBoss. One of my message driven beans will be responsible for sending emails. I want the email template to be stored externally (probably as XML) ...

7. Oracle Broken Sequence    stackoverflow.com

I am using EJB3, JBoss AS 4.2.1 and Oracle 10g. The thing is every time i deploy to the AS the sequence is broken. Ex: when i am looking to the ...

8. JAAS and JBOSS 5 problem with principal    stackoverflow.com

I am working with a piece of code implementing JAAS LoginModule and in the commit method I set the principal with user UUID:

subject.getPrincipals().add(new SimplePrincipal(userUUID)
But for some reason when I access ...

9. scheduling tasks on JBoss with clustering    stackoverflow.com

I need to be able to run some scheduled tasks (reports) for an EJB application running on JBoss 4.2. In my initial implementation I am using a servlet in an ...





10. JBoss ignores @RemoteBinding annotation    stackoverflow.com

I would like to specify JNDI name for an EJB3 bean using annotation, but JBoss 5.1.0 GA seems to ignore the annotation completely. Bean's annotations are:

@Remote(Foobar.class)
@Stateless(name = "Foobar")
@TransactionManagement(TransactionManagementType.BEAN)
@RemoteBinding(jndiBinding="ejb/Foobar")
public class FoobarBean implements ...

11. JBoss transaction timeout setting?    stackoverflow.com

We have a timer service triggered task in JBoss 5.1.0.GA application and the problem is that we cannot change the transaction time out. This long Lucene indexing can take longer than ...

12. Calling business logic methods at JBoss Server Startup    stackoverflow.com

I have an EJB project communicating with a Swing client over RPC. I would like to know how to call EJB or utility class methods on the business logic at server ...

13. Jboss Error-Cannot process metadata    stackoverflow.com

I'm trying to implement stateless session bean ejb3 in jboss5 using netbeans6.8 as a editor. When I tried deploying my application, I'm getting the following error. What is the issue with ...

14. using jboss and getting following exception    stackoverflow.com

javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: (no security manager: RMI class loader disabled)]

15. Remote lookup of slsb failing from jar file, although very similar lookup from a jar file being called from same place works    stackoverflow.com

I have a a number of jar files that perform rmi. These are all working except one, the problematic one attempts to look up a remote slsb in a different ...

16. JBoss6 AS EJB3StandaloneBootstrap & EJB3StandaloneDeployer    stackoverflow.com

currently i'am migrating a JBoss 4 project to JBoss 6. I do miss substitutes for the EJB3StandaloneDeployer and EJB3StandaloneBootstrap. Are there any new sources which deliver the functionality of this two classes? THX ...





17. Error while accessing a ServicePOJO in JBOSS 5.0.1    stackoverflow.com

I have a Webapplication with EJBs and ServicePOJOs. When i try to access one of those POJOS, i get the following error:

java.lang.NullPointerException
 at com.sonydadc.MyAPP.pa.server.PA_Bean.getServername(PA_Bean.java:539)
 at org.apache.jsp.templates.start_jsp._jspService(start_jsp.java:104)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
 at ...

18. Resolution should not happen via injection container error    stackoverflow.com

I have an EJB3 project to be deployed on JBoss 5.1.0 GA. I have Stateless EJBs being injected into other Stateless beans and Servlets. I'm using the @EJB annotation without ...

19. Long Polling with Java and JBoss    stackoverflow.com

I'm looking for an example, how to implement a longpoling mechanism in java. I would love to use a stateless EJB. I know that something like that would work:

@WebService(serviceName="mywebservice")
@Stateless
public class MyWebService {
 ...

20. Error while in deploying project into jBoss    stackoverflow.com

I am using EJB3.0 and jBoss 5.0.1 My project is successfully deployed but when I run Jboss server I got the following error DEPLOYMENTS MISSING DEPENDENCIES: Deployment "jboss.j2ee:ear=cccrmapp.ear,jar=cccrmapp.jar,name=CustomerFacade,service=EJB3" is missing the ...

21. Specify Loader Repository in a JBoss @Service    stackoverflow.com

If you use the @Service JBoss extension for EJB it deploys the EJB as an MBean and by default uses the global repository and shares all libs of the application. It's possible ...

22. Architecture advice about managing UDP calls    stackoverflow.com

I would like to have an advice for this issue: I am using Jbos 5.1.0, EJB3.0 I have system, which sending requests via UDP'S to remote modems, and suppose to wait for an ...

23. JBoss 5 - Deciphering Stack Trace    stackoverflow.com

In my deployment on JBoss 5.1.0GA with JavaEE-5 I have beans of the general form

public interface Foo {
   void baz ();
}

@Stateless
public class FooBean implements Foo {
   void ...

24. Increasing MDB'S instances    stackoverflow.com

I am using jboss 5.1.x I am trying to increase my mdb's instances. but no success. some code:

@MessageDriven(activationConfig = 
{ @ActivationConfigProperty(propertyName = "destinationType", propertyValue =  
"javax.jms.Queue"), 
 @ActivationConfigProperty(propertyName = ...

25. Destroying asnync proxy of SLSB by JBoss    stackoverflow.com

In my application based on EJB3.0 and JBoss5 I use async proxy from JBoss AsyncUtils. Stateful bean ComputerBean dispatches work to stateless pooled ProcessorBean(s). I built counter into ProcessorBeans to print out ...

26. Schedule a task    stackoverflow.com

Iam using jboss5.1.x, EJB3.0 I need to schedule a task in my application. which way would you recommend me to do it according to version I am using below? I heard about SAR, but ...

27. Service not registered on startup    stackoverflow.com

I am using JBoss5.1.x AS, EJB3.0. I am trying to add a job (using Quartz) to my deployment. I am registering a new Service, so it will init the scheduler on ...

28. Dynamic time scheduling advice    stackoverflow.com

I am using Jboss5.1.x, EJB3.0, Quartz 1.8 I have System which is being activated at specific time(surrounding that time). The system should work once in a day. I am setting value in a database ...

29. Embeddable Container in Jboss 6.0.0.Final    stackoverflow.com

I'm trying develop unit tests for EJB 3.1 session beans, and I can't find anything definitive as to whether or not this is supported/included.

  • Has anyone had success using this?
  • Which ...

30. J2EE 5 EAR structure for jboss 5.x    stackoverflow.com

I am looking for EAR file structure and sample ejb-jar.xml My current structure is as follow

MainApp
  |
  |--META-INF
      |
      ...

31. How to include external jar in ejb-jar    stackoverflow.com

How can I include external jar file in my ejb3 jar file? There is one external jar project with all helper classes and manifest.mf file. Now I have this jar in ...

32. JBOSS deployement Error    stackoverflow.com

I am trying to put in the classpath of getting the following error

17:07:00,550 ERROR [AbstractKernelController] Error installing to Create: 
name=jboss.jacc:id="vfsfile:/usr/apps/tools/build-server/jboss-5.0.1.GA-jdk6/temp/jboss-5.0.1.GA/server/default/deploy/management/console-mgr.sar/web-console.war/",parent="console-mgr.sar",service=jacc
 state=Configured mode=Manual requiredState=Create
java.lang.RuntimeException: java.lang.ClassNotFoundException: JACC:Error 
PolicyConfigurationFactory : cannot find class : ...

33. Jboss 6 Cluster Singleton Clustered    stackoverflow.com

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

34. Does the JBoss embeddable/modular server still exists?    stackoverflow.com

While following along some examples about EJB 3.0 given in the book "Java Persistence with Hibernate" from 2007 I was told to Go to http://jboss.com/products/ejb3, download the modular embeddable server But all ...

35. JBoss ignoring context path in application.xml when using @WebService and @Stateless in war file    stackoverflow.com

I have an ear file that consists of a war file together with a number of jar files. The application.xml with the following contents:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE application PUBLIC
   ...

36. JBoss RuntimeException: Could not resolve beanClass method for proxy call    stackoverflow.com

I'm working with EJB 3.0 and when I call the method to be executed, I get the error below:

java.lang.RuntimeException: Could not resolve beanClass method from proxy call
    at ...

37. Error during undeploy - while closing EJBContainer with "JBoss 6.0 Final" release    stackoverflow.com

I am trying to test my EJBs from JUnit framework as part of ant build. I am using "JBoss EJB 3.1 Embeddable". I have followed all the instructions specified in

38. How to set up a kind of multi-tenant application with JBoss 5.1 EAP and separate databases for each tenant?    stackoverflow.com

what do you think would be the best way to set up a kind of multi-tenant application with JBoss 5.1 EAP and separate databases for each tenant? Our scenario is as ...

39. MANIFEST file processing in JBoss 6    stackoverflow.com

I have an .ear file that contains:

  • a jar file a.jar with some EJBs whose manifest file refers to jar b.jar in its class-path.
  • a jar file b.jar with other EJBs.
This deploys correctly ...

40. @MessageDriven doesn't work in JBoss AS 5    stackoverflow.com

The code as given below throws a javax.naming.NameNotFoundException. I think that it might be some kind of problem with JBoss AS 5.

package web;
import java.util.Properties;
import javax.jms.Queue;
import javax.jms.QueueConnection;
import javax.jms.QueueConnectionFactory;
import javax.jms.QueueSender;
import javax.jms.QueueSession;
import javax.jms.TextMessage;
import javax.naming.InitialContext;

import ...

41. JBoss POJO Object pooling    stackoverflow.com

I am using a POJO (Non-EJB) class inside my JBoss server and creating multiple instances of it. Will JBoss create an object pool and manage this resource or will it simple ...

42. When does the disposer execute?    stackoverflow.com

I have a pojo producer which produces MyResourceManager.

@TraderResouceManager @RequestScoped public MyResourceManager(){ ... ... }
MyResourceManger is injected into SLSB
@inject @TraderDB private MyResourceManager rm;
The disposer is a follows
...

43. NoClassDefFoundError on JBoss5    stackoverflow.com

Recently have been experiencing a strange problem on our JBoss5. After running our app for a while, the clients who call the EJB's start Throwing NoClassDefFoundError on some classes. After a ...

44. Java EE, JBoss: @Asynchronous does not allow method overloading    stackoverflow.com

Does anybody has an idea why method overloading in combination with the @Asynchronous annotation does not work (I tested only on JBoss 6.0). Example:

@Stateless
@LocalBean
public interface AsyncBean {

    @Asynchronous
  ...

45. Working MDB example in JBoss 7.0.1?    stackoverflow.com

Here's an EJB3 MDB that used to work for me in JBoss 5.1:

@TransactionAttribute( TransactionAttributeType.NOT_SUPPORTED )
@org.jboss.ejb3.annotation.Depends("jboss.messaging.destination:service=Topic,name=IncomingArticleNotifications")
@MessageDriven(
    activationConfig = {
        @ActivationConfigProperty( propertyName="destinationType", propertyValue="javax.jms.Topic"),
 ...

46. Remote binding with JBoss AS 7    stackoverflow.com

I am trying to create a SessionBean with IIOP invocation possibility (EJB over IIOP). But it seems not to work with JBoss AS 6.
The issue (

47. Jboss 6 Deployment, missing dependancy issue    stackoverflow.com

I'm in the process of learning EJB and am trying to deploy an example onto JBoss 6 for 5 days without much luck. The Maven build can downloaded here

48. JBoss 6 Unable to create activation spec    stackoverflow.com

As part of a learning process, I am deploying this example project http://db.tt/d5AbCNYH on JBoss 6 Final and getting the following error

17:04:53,758 INFO  [org.jboss.ejb3.EJBContainer] STARTED EJB: com.nodemo.musicstore.OrderProcessor ejbName: ...