Thanks for the fast response - but I am separating them - below is my 
application.xml.


  | <?xml version="1.0" encoding="UTF-8"?>
  | <application id="Application_ID" version="1.4" 
xmlns="http://java.sun.com/xml/ns/j2ee"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd";>
  |     <display-name>
  |     MyEar</display-name>
  |     <module id="WebModule_1175089155093">
  |             <web>
  |                     <web-uri>FindResourcesService.war</web-uri>
  |                     <context-root>FindResourcesService</context-root>
  |             </web>
  |     </module>
  |     <module id="EjbModule_1175102889765">
  |             <ejb>MyEjbs.jar</ejb>
  |     </module>
  | 

I just did a little research - and I'm able to get the PersistenceContext 
injected - if I access my Stateless bean with a stand-alone java client (using 
InitialContext.lookup - and such).

So I think my issue is when a stand-alone java client - calls the webservice - 
then the webservice tries to create an instance of the Stateless session 
bean... I have to look into that now.  

Do I have to add some Context persistence into my service call?  I'll continue 
searching.

my client to call the service is this:


  | FindResourcesServiceLocator locator = new FindResourcesServiceLocator();
  | FindResourcesServicePort port = locator.getFindResourcesServicePort();
  | port.findResource()
  | 

and my webservice just initializes the SampleClass and calls a method in it:

  | SampleClass sample = new SampleClass();
  | sample.findResource();
  | 



View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040662#4040662

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040662
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to