Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Not sure whether this will help in weblogic, as I work with websphere atm, but I'd imagine would work in weblogic as well:</p> <p>set-up your username and password in your spring context as such:</p> <pre><code>&lt;bean id="mailSender" class="org.springframework.mail.javamail.JavaMailSenderImpl"&gt; &lt;property name="session" ref="mailSession"/&gt; &lt;property name="username"&gt; &lt;jee:jndi-lookup jndi-name="config/mail/username" resource-ref="true"/&gt; &lt;/property&gt; &lt;property name="password"&gt; &lt;jee:jndi-lookup jndi-name="config/mail/password" resource-ref="true"/&gt; &lt;/property&gt; </code></pre> <p></p> <p>and add the following in your web.xml:</p> <pre><code>&lt;env-entry&gt; &lt;env-entry-name&gt;config/mail/username&lt;/env-entry-name&gt; &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt; &lt;env-entry-value&gt;&lt;/env-entry-value&gt; &lt;/env-entry&gt; &lt;env-entry&gt; &lt;env-entry-name&gt;config/mail/password&lt;/env-entry-name&gt; &lt;env-entry-type&gt;java.lang.String&lt;/env-entry-type&gt; &lt;env-entry-value&gt;&lt;/env-entry-value&gt; &lt;/env-entry&gt; </code></pre> <p>Spring will lookup the values for username and password from the web-application environment. The weblogic admin console should allow you to configure the environment entries and therefore the username and password. Note, you'll probably have to restart the application in order for the changes to take effect as they'll only be loaded when the spring context starts, however, the settings for the mail server changing are a pretty major change, so a restart wouldn't be that amiss.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload