Newsgroup: it.comp.java
Titolo: Jboss versione 3.1.2 Eclipse versione 3.2.2 con plug-in Lomboz









Utilizzo i programmi in oggetto . 


Ho provato a seguire le istruzioni seguite qui 

http://www.tusc.com.au/tutorial/html/chap1.html
 per fare un semplice session Bean ma quando faccio il 
deplooy  : 


 


Warning: The Bean Provider must 
specify the fully-qualified name of the Java class that implements the 
enterprise bean's business methods in the <ejb-class> 
element.




Info : Class not found: 
au.com.tusc.MySessionSession


Eppure la classe 
au.com.tusc.MySessionSession 

esiste ed estende la classe 
au.com.tusc.MySessionBean 



 


/*


* Generated by XDoclet - Do not edit!


*/


package
 au.com.tusc;


/**


*
 
Session
 
layer
 
for
 
MySession.


*
 
@lomboz
 
generated


*/


public
 
class
 
MySessionSession

extends
 au.com.tusc.MySessionBean


implements
 javax.ejb.SessionBean


{


public
 
void
 ejbActivate() 


{


}


public
 
void
 ejbPassivate() 


{


}


public
 
void
 setSessionContext(javax.ejb.SessionContext ctx) 



{


}


public
 
void
 unsetSessionContext() 


{


}


public
 
void
 ejbRemove() 


{


}


public
 
void
 ejbCreate() 
throws
 
javax.ejb.CreateException


{


}


}


 


/*


* Created on 29-nov-03


*


* To change the template for this generated file go 
to


* Window&gt;Preferences&gt;Java&gt;Code 
Generation&gt;Code and Comments


*/


package
 au.com.tusc;


import
 
javax.ejb.SessionBean;


/**


*
 
@ejb.bean
 
name="MySession"


*
 
jndi
-
name="MySessionBean"


*
 
type="Stateless"
 


**/


public
 
abstract
 
class
 MySessionBean 
implements
 SessionBean 
{


/**


*
 
@ejb.interface
-
method


*
 
tview
-
type="remote"
 


**/


public
 
String learnJ2EE(String messg){ 


return
 
"Me too! "
;


}


}


I file   ejb-jar.xml e jboss.xml 
generati da  lomboz sono  :


<?xml version="1.0" 
encoding="UTF-8"?>


<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, 
Inc.//DTD Enterprise JavaBeans 2.0//EN" 
"
http://java.sun.com/dtd/ejb-jar_2_0.dtd
">


<ejb-jar >


<description><![CDATA[No 
Description.]]></description>


<display-name>Generated by 
XDoclet</display-name>


<enterprise-beans>


<!-- Session Beans -->


<session >


<description><![CDATA[]]></description>


<ejb-name>MySession</ejb-name>


<home>au.com.tusc.MySessionHome</home>


<remote>au.com.tusc.MySession</remote>


<local-home>au.com.tusc.MySessionLocalHome</local-home>


<local>au.com.tusc.MySessionLocal</local>


<ejb-class>au.com.tusc.MySessionSession</ejb-class>


<session-type>Stateless</session-type>


<transaction-type>Container</transaction-type>


</session>


<!--


To add session beans that you have deployment 
descriptor info for, add


a file to your XDoclet merge directory called 
session-beans.xml that contains


the <session></session> markup for those 
beans.


-->


<!-- Entity Beans -->


<!--


To add entity beans that you have deployment 
descriptor info for, add


a file to your XDoclet merge directory called 
entity-beans.xml that contains


the <entity></entity> markup for those 
beans.


-->


<!-- Message Driven Beans -->


<!--


To add message driven beans that you have deployment 
descriptor info for, add


a file to your XDoclet merge directory called 
message-driven-beans.xml that contains


the <message-driven></message-driven> 
markup for those beans.


-->


</enterprise-beans>


<!-- Relationships -->


<!-- Assembly Descriptor -->


<assembly-descriptor >


<!--


To add additional assembly descriptor info here, add 
a file to your


XDoclet merge directory called 
assembly-descriptor.xml that contains


the 
<assembly-descriptor></assembly-descriptor> markup.


-->


<!-- finder permissions -->


<!-- transactions -->


<!-- finder transactions -->


</assembly-descriptor>


</ejb-jar>


 


Qualcuno mi sa aiutare ?




 


Ciao Matteo


 




 


---
Outgoing mail is certified Virus 
Free.
Checked by AVG anti-virus system (
http://www.grisoft.com
).
Version: 6.0.545 / 
Virus Database: 339 - Release Date: 
27/11/2003



 ha 
  scritto nel messaggio 
news:WGCyb.31305$AX1.1...@news1.tin.it
...


