• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Fail to bind javax.mail.Session object on JNDI Tree

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I was trying to create a mail session in weblogic 8.1. The jndi name must be filled with a javax.mail.Session object, and it's supposed to display in JNDI tree with purple icon, right? But when I typed in the jndi name, it came out a failure in JNDI tree (with red icon).

This was what in my j2ee config (ejb-jar.xml):
<session id="Email">
<ejb-name>Email</ejb-name>
<home>com.gtnet.workflow.enactmentService.ejb.EmailHome</home>
<remote>com.gtnet.workflow.enactmentService.ejb.Email</remote>
<ejb-class>com.gtnet.workflow.enactmentService.ejb.EmailBean</ejb-class>
<session-type>Stateless</session-type>
<transaction-type>Container</transaction-type>
<resource-ref id="ResourceRef_1">
<res-ref-name>EmailSession</res-ref-name>
<res-type>javax.mail.Session</res-type>
<res-auth>Application</res-auth>
</resource-ref>
</session>

And this was what in my weblogic j2ee config (weblogic-ejb-jar.xml):
<weblogic-enterprise-bean>
<ejb-name>Email</ejb-name>
<reference-descriptor>
<resource-description>
<res-ref-name>EmailSession</res-ref-name>
<jndi-name>java:/Mail</jndi-name>
</resource-description>
</reference-descriptor>
<jndi-name>ejb/EmailHome</jndi-name>
</weblogic-enterprise-bean>

I have tried filling everything as the jndi name, from EmailSession, Mail, ejb.EmailHome, Email, etc, but none worked.

Could anybody help me please? >_<

Thanks a lot,
Martha
 
This tiny ad is suggesting that maybe she should go play in traffic.
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic