jboss « ejb « Java Enterprise Q&A





1. JBoss 4.23 and EJB 2 support    stackoverflow.com

Does anyone know if the JBoss 4.2.3 release that is compiled for Java 6 still supports EJB 2? I'm having issues where it can't cast a class to a certain ...

2. How do I look up an ejb in jBoss 4.2?    stackoverflow.com

I have a simple j2ee application:

foo.ear
 - foo.war
 - foo.jar (ejb3 jar)
I am deploying into jBoss 4.2.2, which is J2EE 1.4 compliant, with an ejb3 jar deployer. Thus, at present it ...

3. How do I start with EJB3 and JBoss?    stackoverflow.com

I'd like to get into ejb3 to gain some practice in writing for it. I searched for tutorials and how-to's but could find some scarce unhelpful information. I'm looking for a tutorial or ...

4. java.lang.NoSuchMethodException: javax.ejb.EJBHome.getHomeHandle()    stackoverflow.com

I'm trying to figure out why I'm getting the following exception when a client app is connecting to JBoss. I happens on startup, when the client attempts to connect to ...

5. EJB Spec Violation    stackoverflow.com

I created an EJB 2 named EvenementBean for test. I then deleted it. and whenever trying to deploy my .ear project now, I get these errors :

    WARN ...

6. Is it possible to call in some way an EJB deployed on JBoss from a Business Service deployed on BEA AquaLogic Service Bus?    stackoverflow.com

Is it possible to call in some way an EJB deployed on JBoss from a Business Service deployed on BEA AquaLogic Service Bus? Just to precise, I'm not going to call it ...

7. JBoss automatically undeploys EJBs    stackoverflow.com

we have a situation at office. JBoss automatically unloads all deployed EJB's without us knowing why. here's the log we got :

2009-11-09 15:59:51,375 INFO  [org.jboss.system.server.Server] JBoss (MX MicroKernel)    ...

8. How to get SessionContext in JBOSS    stackoverflow.com

I tried several ways in the session bean, like:

@Resource
private SessionContext ctx;
OR
private SessionContext ctx;

@Resource
private void setSessionContext(SessionContext ctx) {
  this.sctx = ctx;
}
OR
InitialContext ic = new InitialContext();
SessionContext ctx = (SessionContext) ic.lookup("java:comp/env/sessionContext");
None of them ...

9. JBoss Bean Statistics in Web-Console    stackoverflow.com

I would like to use the JBoss web-console to view bean statistics. I read in a book ("JBoss: A Developer's Notebook") that bean invocation statistics are visible when drilling down ...





10. Locking problems using SimpleReadWriteEJBLock    stackoverflow.com

First of all, I am using Oracle and JBoss 4.0.4 and I'm pretty much a newbie on JBoss matters. Our distributed application uses CMP beans with SimpleReadWrite... etc locking policy, which I'm ...

11. How to preload EJB instances on JBOss    stackoverflow.com

Is there a way to pre-load EJB instances (stateless) in JBoss 4.2.0? I know there isn't any configuration option for this, but could I write my own MBean or something ...

12. Issues Migrating Ejb 2.0 from jboss 4 to jboss 5.1    stackoverflow.com

Deploying an EAR application in jboss 5.1 throws an error. Below is the error

The content of element type "message-driven" must match "(description?,display-name?,small- icon?,large-icon?,ejb-name,ejb-class,transaction-type,message-selector?,acknowledge- mode?,message-driven-destination?,env-entry*,ejb-ref*,ejb-local-ref*,security-identity?,resource- ...

13. How to change web service URL in JBoss 5.1    stackoverflow.com

Environment: Windows 2003 JBoss 5.1 Code:

@WebService
@Stateless
@SOAPBinding(style = Style.RPC)
public class MyWebService {
public String sayHello() {
return "Hello";
}
}
wsdl is deployed in: http://localhost:8080/ear-project-ejb-project/MyWebService?wsdl I would like to define another path for this webservice, something like: http://localhost:8080/MyApplication/MyWebService?wsdl How to ...

14. Eager / auto loading of EJB / load EJB on startup (on JBoss)    stackoverflow.com

EJBs seem to be loaded lazily - whenever accessed. However, I want to initialize them eagerly - i.e. whenever the container starts-up. How is this achieved (in JBoss in particular) This ...

15. Problem calling web service from within JBOSS EJB Service    stackoverflow.com

I have a simple web service sitting on our internal network. I used SOAPUI to do a bit of testing, generated the service classes from the WSDL , and ...

16. How to use ejb in webapplication    stackoverflow.com

I want to call ejb from servlet via remote interface. Maybe it is a RTFM question but i cannot find solution via Google or documentation. What configuration steps I need to ...





17. "ejb not bound" -- What could be the problem?    stackoverflow.com

When I'm running my program, I get the following error:

... nested exception is javax.naming.NameNotFoundException: ejb not bound
The error occurs at the start up when Java wants to ...

18. Call method in EJB on JBoss startup    stackoverflow.com

I'm looking for an entry point in an EJB deployed on JBoss. Servlets have the load-on-startup tag to use in its web.xml. I'm searching for similar init() functionality for an ...

19. Using an EJB inside a JAX-RS resource class in RestEasy?    stackoverflow.com

I would like to have the following kind of resource class work when deployed under RestEasy in JBoss 6:

@Path("Something")
public class Foo {

  @EJB
  private SomeService service

  @GET
  ...

20. How do I stop/start EJB Apps in JBOSS 6.0 from the command line    stackoverflow.com

If I use the web based administrative console for JBOSS, I can navigate to Applications - EJB2 JARs and see a list of deployed EJBs. By clicking on one of ...

21. EJB2 on different JBoss versions    stackoverflow.com

I need to use some EJBs which are deployed on JBoss version 4.x from another EJB deployed on JBoss version 3.2.x. Is this possible? I ask because I have a third party ...

22. @EJB in JBoss 5.1.0 GA?    stackoverflow.com

I've been struggling for this for a while now. I'm trying to gear up for EJB 3.0. I'm using JBoss 5.1.0 GA as my application server. I started with very simple ...

23. How to start and stop ejbs from outside jboss    stackoverflow.com

i am developing java ee 5 app based on jboss4.2.3, one of project milestones is to create web-admin tool to stop or restart ejb modules of the application any idea ...

24. How to manage authenticated status in EJB3?    stackoverflow.com

There is a task of managing desktop client session status:

  1. Ensure only single client is "connected".
  2. Force client logout - kill session.
  3. Kill client session on timeout due to inactivity.
Server-side is JBoss and EJB3. ...

25. How to acccess an EJB?    stackoverflow.com

I am trying to develop a Basic EJB3 application on JBOSS 4.2 in Eclipse I have created an EJB project in eclipse. The following are my remote and local interfaces.

package com.test;
import javax.ejb.Local;

@Local
public ...

26. Calling web service from another ejb on startup    stackoverflow.com

Using jboss-esb 5.1.0.GA I have a web service that an EJB that I have makes calls on when it is started. This EJB may be installed in the same JBoss instance ...

27. EJB blocking lookup    stackoverflow.com

I'm developing a little calculator using EJB technology, in particular JBoss Application Server and Eclipse as IDE.

Hashtable ht = new Hashtable();
ht.put(Context.PROVIDER_URL, "jnp://localhost:1090");
ht.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory");
Context jndiContext = new  InitialContext(ht);
calculator = (FacadeRemote) jndiContext.lookup("Facade");
This ...

28. ejb starter problem    stackoverflow.com

I am using JBoss 6.0.1M5.
Starting on EJBs. The tutorial I am reviewing is rather old(talks about 2.0) but I wanted to learn the concepts before going to latest.
Anyway I am using ...

29. Which jBoss and EJB3 features should I use for Web Crawler    stackoverflow.com

Happy New Year everybody,now I am trying to develop my own bot(web crawler) that will walk around through Internet, for search engine. I am thinking to use jboss scheduler-service ...

30. EJB3 and EntityManagerMap at Runtime    stackoverflow.com

I need to make an EJB3 stateful which creates a map of EntityManager. I want use it to manage multy database dynamically created at runtime. I define one default persistence unit in the ...

31. Add logic to Jboss startup/shutdown    stackoverflow.com

How is it possible to run some EJB logic during the server start/stop ? I am using JBoss 5 and EJB 3.0. Thanks.

32. Timertasks using cron expressions EJB3/JBoss 6    stackoverflow.com

for my EE application, i have to consider clustered timertasks in JBoss 6 Environment. The tasks must be persisted in the database. While application initialization,the tasks must be created and scheduled ...

33. Bind IP address per ejb exposed as web service - jboss    stackoverflow.com

How can I run ejbs exposed as a web services on the same jboss (version 4.2.3) using different IPs. For example: I have two web service locations (two different ejb components) and ...

34. Where and how is the EJB3 method hash calculated?    stackoverflow.com

I have two Tomcat 6 instances which both call EJBs on a remote JBoss 5 server. With the same client code deployed on both Tomcats, I get a NullPointerException from the application ...

35. JBoss 5.1.0 ejb-local-ref ClassNotFound    stackoverflow.com

I'm trying to migrate from JBoss 4.0.5 to 5.1.0. In my ejb-jar.xml (2.0) files in multiple ejb modules I have ejb-local-refs to non existing ejb interfaces. I know it's not good but ...

36. which version of jboss i should download?    stackoverflow.com

i use eclipse with tomcat 5.5 and jdk 1.6. i have 2 question 1.which version of jboss is better to download for me? 2.when i go to download page for s special version i ...

37. Endpoint for an EJB deployed on JBOSS    stackoverflow.com

I have deployed an ejb in a war file(not an ear file). I have successfully consumed an ejb deployed in an ear file previously but now I am getting javax.naming.NameNotFoundException because ...

38. Specification of an EJB's URL, How?    stackoverflow.com

I have a Glassfish based application I am now deploying to jBoss. Glassfish deploys my EJBs at http://localhost:8080/XX/YY?WSDL jBoss deploys them at http://localhost:8080/MyApp/XX/YY?WSDL How can I specify the URL to use so ...

39. CallByValue for EJB 2.1 on JBoss 5.x    stackoverflow.com

I'm migrating to JBoss EAP 5.1 from Websphere and I need (for potentially bad programming reasons) to ensure that all calls to EJBs (2.1) are called by value. I've seen ...

40. Transfering serialized objects with jboss much faster than transfering byte arrays?    stackoverflow.com

Following scenario: I have a java client with 40 threads. Each thread has its own bean instance and each thread calls its beans method 100 times. I'm confused about the results of ...

41. Pay for JBoss Hosting or?    stackoverflow.com

I am new to JBoss.I want to run my EJB application in JBoss.As I know JBoss is available for download and use for development freely. But should we register or get ...

42. Custom Principal won't be propagated to EJB SessionContext on Jboss AS    stackoverflow.com

In a EJB project, I need to replace the call princial name in "javax.ejb.SessionContext". I use Jboss AS 6.0 Final as the application server. I defined a custom UserLoginModule that extends UsernamePasswordLoginModule ...

43. EJB3 initialization code    stackoverflow.com

I've searched this for a while now, but can't seem to find an answer to this. How can I execute some code in when deploying an EJB3 jar-file to a JBoss ...

44. EJB 3.0 Update then Select is not working properly jboss5.1.0.G    stackoverflow.com

I am getting very strange problem. My problem is that this FIRST am selecting entity from the database using EJB 3.0 and jboss 5.1.0.GA

Subscriber s = (Subscriber)manager.createQuery("SELECT s FROM Subscriber ...

45. Calling EJB from JRun to JBoss    coderanch.com

46. Ejb3 Consuming Web Services over SSL-(JBoss) certificate_unknown    coderanch.com

App sever jboss-4.2.3.GA - Ejb is consuming Web services using @WebServiceRef (from another application @WebServces bean, I am not sure is it relevant). 1)I have both keystore and truststore set up in server.xml (clientauth=true) 2)Communication with Web browsers works as expected 3)Communication with java desktop application consuming web services started with -Djavax.net.ssl.keyStore ... works as expected 4)Communication works fine over HTTP. ...

47. Jboss Native - EJB based Webservice top down approach    coderanch.com

Hello, I was trying top down approach for generating EJB based webservice, using Jboss Native stack. Generated the stubs using wsconsume command. created EJB and web project in eclipse (copied the stubs and defined HelloServiceImpl) and structure as follows EAR - EJB - src HelloServiceImpl HelloServicePort - META-INF wsdl HelloService.wsdl - WEB - WebContent META-INF wsdl HelloService.wsdl WEB-INF web.xml (defined servlet ...

48. Using @EJB with JBoss RESTEasy    coderanch.com

49. Problem with deploing EJB 2.1 to JBOSS 4.2.1 GA    java-forums.org

Hello. I'm trying to deploy Entity Bean, but I have a strange error: Bean : BaseObject Section: 12.2.11 Warning: The Entity bean's local home interface must extend the javax.ejb.EJBLocalHome interface. 2009-08-27 01:53:29,372 WARN [org.jboss.ejb.EJBDeployer.verifier] EJB spec violation: Bean : BaseObject Method : public abstract Class value() Section: 12.2.11 Warning: Each local home method must match a method defined in the entity ...

50. EJB2.0 Inheritance in JBoss    java-forums.org

hi, We are trying to migrate an ejb 2.0 project from Websphere Application Server 6.1 to Jboss 4.2.3. Our project has used Entity Bean inheritance using Websphere application server. While we are deploying it in jboss the inheritance entites showing sql exceptions as follows. Is the entity bean inheritance in ejb 2.0 is supported by jboss application server 4.2?.Please respond as ...

51. JBoss Bean redeploy    java-forums.org

Hi all, I'm currently developing a JSF project to learn a bit more about J2EE. Every time I change a Java Class file (a Bean) to preview my changes I have to restart my JBoss server. My question is, is there a way to bypass server restart after some code change? I mean for xhtml and jsp pages a refresh is ...

52. OutOfMemory in Jboss 4 in Linux Platform    java-forums.org

Hi I have deployed an application in Linux Environment. Both web and app servers are in the same server but seperate instances. I application is connecting to MYSql DB. When i run my application iam getting outofmemory error. due to unspecified error. I tried some combinations with heap size min and max. nothing worked out. The server has 2 gb ram. ...

53. ejb3.0 - jboss 4    forums.oracle.com

eg1: if my client, make any service request for customization of my product. he will make (Service request No.) SR no against me n my product. and that SR no and details. sent to my mobile no. eg2: take an another real time example.if your salary is created means. you got a message. you salary is credited. and its amount. eg3: ...