File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes How to configure the ejb-jar.xml session bean id in the WSAD? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "How to configure the ejb-jar.xml session bean id in the WSAD?" Watch "How to configure the ejb-jar.xml session bean id in the WSAD?" New topic
Author

How to configure the ejb-jar.xml session bean id in the WSAD?

Yufan Wang
Greenhorn

Joined: May 19, 2011
Posts: 3
Hello

I configured a new EE project in WSAD, but I found different type of session-id for session beans.

[Old product, EJB 2.0, jdk 1.4.2, WSAD]

1. This is my configured ejb-jar.xml with the WSAD deployment descriptor:
//...
<session id="SSOEJB">
<ejb-name>SSOEJB</ejb-name>
<home>com.my.SSOEJBHome</home>
<remote>com.my.SSOEJB</remote>
<ejb-class>com.my.SSOEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
//...

2.Same project in the different workspace, which can run perfectly on local PC.

//...
<session id="Session_1189683792621">
<ejb-name>SSOEJB</ejb-name>
<home>com.my.SSOEJBHome</home>
<remote>com.my.SSOEJB</remote>
<ejb-class>com.my.SSOEJBBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
</session>
//...

What is the difference of <session id="Session_1189683792621"> and <session id="SSOEJB">

(After configured ejb-jar.xml, I tried to right click EJB project > Generate > Deployment and RMIC code, is it correct?)
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30502
    
150

yufan wang wrote:What is the difference of <session id="Session_1189683792621"> and <session id="SSOEJB">

They are different ids. The id maps to the binding files.

yufan wang wrote:(After configured ejb-jar.xml, I tried to right click EJB project > Generate > Deployment and RMIC code, is it correct?)

Sounds familiar. It's been a long time since I used WSAD. IBM stopped supporting it many years ago.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to configure the ejb-jar.xml session bean id in the WSAD?