FWD: Re: - no subject (01IB7Q2B9LQW0098V8) -
The tech notes are now available on Forte's Home page at
http://www.forte.com/.
On the home page, select " technical information". From there, there is a
selection of "technical notes". Before you can access it, you will need
to call Forte's technical support at 510-451-5400 and have a user ID and
password assigned.
Hope this helps.
Regards,
Peggy Adrian
Eli Lilly & Co.
[email protected]
I saved some previous comments that may help you.
The first is from John Jamison and says:
Simple, easy answer - yes and no. You can't do multiple selection in the
standard way ("shift click"). But you can develop "select-act" user
interactions where the action takes place on multiple "selected" items.
The typical suggested workarounds are to embed checkboxes as attributes in
the outline or array field, and use the checkbox to delineate "selected"
rows from "unselected" ones.
Another mechanism for array fields is to change the row color. How to do
this is detailed in a tech note (it is not easy). Basically you'd
maintain an internal variable reflecting the current row color, toggle the
row color via a click ("shift click" is not possible still). When you
take an action on the selected list, you then loop through the array and
act on ones with the selection color toggle on.
Its too bad that it is this way. Multiple selection is such a fundamental
user interaction on all platforms. The above work arounds do "work" but
they are minimalist. You could, after all, build functional user
interfaces without buttons.
The second is a technote from a Forte technote:
Technote #10684
Often times it is desirable to put FieldWidgets in OutlineFields to give
the user an ability to click on them as they would in other parts of the
window. However, because OutlineFields are built upon the DisplayNode
class, you cannot define a FieldWidget in the DisplayNode. You can
however define an ImageData attribute for the DisplayNode, and assign any
PictureGraphic to the ImageData attribute.
Regards,
Peggy Adrian
[email protected]
Similar Messages
-
Re: FWD: - no subject (01IB7Q2B9LQW0098V8) -
Peggy,
You CAN trap a SHIFT-CLICK for multiple selection on array fields. We use Express.
ArrayWidget is an attribute in the ExpressArrayWindow class of type ArrayDesc. If you
don't use Express then trap the childClick event on the ArrayField(I think).
when ArrayWidget.Field.ChildClick(modf = modifier) do
if ( modf = KM_SHIFT) then // Shift Key was pressed
Regards,
____ \ / ____ CrossKeys Systems Corporation
___ \ X / ___
\ X X / Crosskeys Centre Peter Kelly
X X X 350 Terry Fox Drive Software Designer
___/ X X \___ Kanata, Ontario
____/ X \____ Canada K2K 2W5 [email protected]
_____/ \_____ (613) 591-1600 Ext. 8247
ADRIAN PEGGY LYNN wrote:
>
I saved some previous comments that may help you.
The first is from John Jamison and says:
Simple, easy answer - yes and no. You can't do multiple selection in the
standard way ("shift click"). But you can develop "select-act" user
interactions where the action takes place on multiple "selected" items.
The typical suggested workarounds are to embed checkboxes as attributes in
the outline or array field, and use the checkbox to delineate "selected"
rows from "unselected" ones.
Another mechanism for array fields is to change the row color. How to do
this is detailed in a tech note (it is not easy). Basically you'd
maintain an internal variable reflecting the current row color, toggle the
row color via a click ("shift click" is not possible still). When you
take an action on the selected list, you then loop through the array and
act on ones with the selection color toggle on.
Its too bad that it is this way. Multiple selection is such a fundamental
user interaction on all platforms. The above work arounds do "work" but
they are minimalist. You could, after all, build functional user
interfaces without buttons.
The second is a technote from a Forte technote:
Technote #10684
Often times it is desirable to put FieldWidgets in OutlineFields to give
the user an ability to click on them as they would in other parts of the
window. However, because OutlineFields are built upon the DisplayNode
class, you cannot define a FieldWidget in the DisplayNode. You can
however define an ImageData attribute for the DisplayNode, and assign any
PictureGraphic to the ImageData attribute.
Regards,
Peggy Adrian
[email protected]
Subject: - no subject (01IB7Q2B9LQW0098V8) -
From: Ronald Celis <[email protected]>
To: 'Forte Users Group' <[email protected]>
Hi guys :
Can somebody help me ?
I want to highlite an array element in my window, but when i try to do
this the only way highliting all the column. How can i make this ?
Regards
Ronald Celis B.
Forte developer
[email protected]
RFC-822-headers:
Received: from pebble.Sagesoln.com by INET.D48.LILLY.COM (PMDF V5.0-6 #15017)
id <[email protected]>; Tue,
29 Oct 1996 11:51:50 -0500 (EST)
Received: (from sync@localhost) by pebble.Sagesoln.com (8.6.10/8.6.9)
id IAA21474 for forte-users-outgoing; Tue, 29 Oct 1996 08:06:04 -0800
Received: (from uucp@localhost) by pebble.Sagesoln.com (8.6.10/8.6.9)
id IAA21468 for <[email protected]>; Tue, 29 Oct 1996 08:06:02 -0800
Received: from unknown(200.0.107.178) by pebble.sagesoln.com via smap (V1.3)
id sma021460; Tue Oct 29 08:05:24 1996
Received: by firegmd.gmd.com.pe id <18434>; Tue, 29 Oct 1996 11:05:46 -0500
Date: Tue, 29 Oct 1996 11:02:23 -0500
From: Ronald Celis <[email protected]>
Subject: - no subject (01IB7Q2B9LQW0098V8) -
Sender: [email protected]
To: 'Forte Users Group' <[email protected]>
Reply-to: Ronald Celis <[email protected]>
Message-id: <[email protected]>
X-Mailer: Microsoft Exchange Server Internet Mail Connector Version 4.0.993.5
Precedence: bulk--I saved some previous comments that may help you.
The first is from John Jamison and says:
Simple, easy answer - yes and no. You can't do multiple selection in the
standard way ("shift click"). But you can develop "select-act" user
interactions where the action takes place on multiple "selected" items.
The typical suggested workarounds are to embed checkboxes as attributes in
the outline or array field, and use the checkbox to delineate "selected"
rows from "unselected" ones.
Another mechanism for array fields is to change the row color. How to do
this is detailed in a tech note (it is not easy). Basically you'd
maintain an internal variable reflecting the current row color, toggle the
row color via a click ("shift click" is not possible still). When you
take an action on the selected list, you then loop through the array and
act on ones with the selection color toggle on.
Its too bad that it is this way. Multiple selection is such a fundamental
user interaction on all platforms. The above work arounds do "work" but
they are minimalist. You could, after all, build functional user
interfaces without buttons.
The second is a technote from a Forte technote:
Technote #10684
Often times it is desirable to put FieldWidgets in OutlineFields to give
the user an ability to click on them as they would in other parts of the
window. However, because OutlineFields are built upon the DisplayNode
class, you cannot define a FieldWidget in the DisplayNode. You can
however define an ImageData attribute for the DisplayNode, and assign any
PictureGraphic to the ImageData attribute.
Regards,
Peggy Adrian
[email protected] -
Re: and Fwd: in Email Subject
Is there any way to prevent the Re: and Fwd: from being added in front of the text in an email subject when an email is reply to or forwarded?
Solved!
Go to Solution.No, it is automatically added and can be edited out if you choose.
But there is not an option to not have it.
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code -
Edit subject of incoming mails
I would like to be able to edit the subject of an incoming post, and then save the edited version so that I can find it easier in future.
The subject often bears no relation to a mail's contents, and can be a duplicate or fwd with a subject which is completely off-topic.
Editing the subject and then saving it is possible with Eudora, but is it possible with Mail?
If not, how can I suggest to the Leopard team to include it as an option.
I don't care whether it is a regular feature or some kind of Applescript fix.
Grateful for any ideas . . .
Message was edited by: tksalvoNo, not in a parallel universe. Checking google for 'eudora edit subject' there are many discussion posts from 1994 to 2005 eg
'I did miss the ability to change the subject when I moved from Eudora to Apple Mail. Too many people use non-descriptive or missing subject lines.'
from styrafome in 2005 on
http://forums.macosxhints.com/archive/index.php/t-38615.html -
Editing the subject of incoming emails
I would like to be able to edit the subject of an incoming post, and then save the edited version so that I can find it easier in future.
The subject often bears no relation to a mail's contents, and can be a duplicate or fwd with a subject which is completely off-topic.
Editing the subject and then saving it is possible with Eudora (I believe), but is it possible with Mail?
If not, how can I suggest to the Leopard team to include it as an option.
I don't care whether it is a regular feature or some kind of Applescript fix.
Grateful for any ideas . . .I swear that someday the lawyers will destroy everything that is logical in this country. I've been using Eudora for years and I can edit the subject line to reflect the e-mail's content to be relevant for ME, THE USER. The content can't be edited, so that should take care of any witch hunt that MIGHT occur someday.
I switched to Mail to use it with my iPhone, but this single bone-headed "feature" renders Mail useless for me. I'm afraid to use Entourage because who knows how long MS will sell & support that product? I don't want webmail, because I want my e-mail stored on my Mac.
What other options are out there that will work easily with the iPhone and fly under the lawers' radar?
Thanks in advance,
Rick
TiBook 867 MHz Mac OS X (10.4.10) -
How to send a mail as an attachment in a mail with AppleScript?
Hi,
I want to manage my spam using the advices found in support.apple website :
OS X Mail
Open the message and choose “Forward as Attachment” from the Message menu.
Forward the message to iCloud [email protected].
Forward the message again to abuse@domain, replacing domain with the part of the sender's email address after the @ symbol. For example, if the sender's email address is [email protected], forward the message to [email protected].
I don't know how to make a message as an attachment...
set theAttachment to theMessage
make new attachment with properties {file name:theAttachment} at after last paragraph
Here is my whole script, if it runs, it could be useful :
tell application "Mail"
-- envoi les messages sélectionnés en PJ à [email protected]
set theMessages to the selection
repeat with theMessage in theMessages
set theAttachment to theMessage
set newMessage to make new outgoing message at end of outgoing messages
tell newMessage
set subject to "Fwd: " & theMessage's subject
make new to recipient with properties {address:"[email protected]"}
tell content of theMessage
make new attachment with properties {file name:theAttachment} at after last paragraph
end tell
end tell
send newMessage
end repeat
-- envoi les messages sélectionnés en PJ à abuse@<domaine du spammeur>
set theMessages to the selection
repeat with theMessage in theMessages
set theAttachment to theMessage
set newMessage to make new outgoing message at end of outgoing messages
tell newMessage
set subject to "Fwd: " & theMessage's subject
set theSpamAddress to theMessage's sender
set AppleScript's text item delimiters to {"@"}
set spamerDomainName to text item 2 of theSpamAddress
set theNewSpamAddress to "abuse@" & spamerDomainName
make new to recipient with properties {address:theNewSpamAddress}
tell content of theMessage
make new attachment with properties {file name:theAttachment} at after last paragraph
end tell
end tell
send newMessage
end repeat
end tell
Thank you!Perfect!
You clearly give me the way. Actually I have used the AppleScript Language Guide from https://developer.apple.com to finalize my AppleScript.
You just need to select the spam message(s) in "Mail" application, then run the script.
As I mentionned previously, it just do this automatically :
OS X Mail
Open the message and choose “Forward as Attachment” from the Message menu.
Forward the message to iCloud [email protected].
Forward the message again to abuse@domain, replacing domain with the part of the sender's email address after the @ symbol. For example, if the sender's email address is [email protected], forward the message to [email protected].
Here is the entire working script :
-- Ce script permet de lutter contre le spam.
-- Je me suis appuyé sur les conseils sur http://support.apple.com/kb/TS4019?viewlocale=fr_FR
tell application "Mail"
set theMessages to the selection
repeat with theMessage in theMessages
-- enregistre le message dans un fichier pour le mettre en PJ ensuite
set msgContent to source of theMessage
set tmpFile to ((path to desktop) as rich text) & "ForwardedMessage"
set referenceNumber to open for access tmpFile with write permission
write msgContent to referenceNumber
close access referenceNumber
-- envoi le message sélectionné en PJ à [email protected]
set newMessage to make new outgoing message at end of outgoing messages
tell newMessage
set subject to "Fwd: " & theMessage's subject
make new to recipient with properties {address:"[email protected]"}
tell content of newMessage
make new attachment with properties {file name:tmpFile} at after last paragraph
end tell
end tell
send newMessage
-- envoi le message sélectionné en PJ à abuse@<domaine du spammeur>
set newMessage to make new outgoing message at end of outgoing messages
tell newMessage
set subject to "Fwd: " & theMessage's subject
set theSpamAddress to theMessage's sender
set AppleScript's text item delimiters to {"@"}
set theSpamAddress to text item 2 of theSpamAddress
set AppleScript's text item delimiters to {">"}
set spamerDomainName to text item 1 of theSpamAddress
set theNewSpamAddress to "abuse@" & spamerDomainName
make new to recipient with properties {address:theNewSpamAddress}
tell content of newMessage
make new attachment with properties {file name:tmpFile} at after last paragraph
end tell
end tell
send newMessage
end repeat
end tell -
I am actually posting this for my mom... She switched from PC to Macbook late last year. Ever since then, when she opens Mail, which is setup for her AOL account, several messages keep resending themselves until she Quits Mail (does not have to force quit). It is not the same emails that keep resending, but whatever is most recent; and it does this with more than 1 email, usually forwards (as it keeps adding "fwd" to the subject). She will get the resent messages in both Mail and on aol.com. She contacted the store she purchased it at and they did not know why this was happening. She later had to trade in this MacBook for a Pro (for another issue) and after using Time Machine to transfer data, it is doing the same thing. I use AOL on my MacBook and do not have any trouble with it. I am assuming there is something "stuck," but can't figure it out. We deleted her account in mail & re-entered it, but it kept doing the same thing
Sorrted
-
Removing BCC with Apple Script when automatically BCC myself is set in pref
I have "Automatically Bcc myself" set in the Mail Composing preferences, which I like because I get a copy of email that I send. I also have an apple script that forwards messages to an email address. When I used this apple script on Tiger, the BCC option was never added (it might have been a bug with Mail in Tiger); however, now on Leopard, the BCC option is always added when I used the apple script.
I've tried setting the BCC field to Null and Blank, but that doesn't seem to work. I suspect that the field is set upon send or the "make new" directive. Does anyone know a way to tell Mail to not Bcc automatically in an Apple Script?
Here is the forward apple script program:
(* Cf. http://www.macosxhints.com/article.php?story=20060219014940761 *)
(* RS 31st July 2006 *)
set theAuthority to "person AT here"
tell application "Mail"
set theMessages to the selection
repeat with thisMessage in theMessages
set newMessage to make new outgoing message at end of outgoing messages
tell newMessage
set visible to true (* comment out whole line to stop 'blinking' windows *)
set content to thisMessage's source
set subject to "Fwd: " & thisMessage's subject
set bcc to null (* my attempt to set bcc to null or blank *)
make new to recipient with properties {address:theAuthority}
end tell
send newMessage
set read status of thisMessage to true
set was forwarded of thisMessage to true
set junk mail status of thisMessage to true
end repeat
end tellThanks for that reply!
After more google searching, I found this on http://www.macosxhints.com/article.php?story=20040425063255443
One of the responses said that you can add the lines:
delete bcc recipients
delete cc recipients
"in that order" to the new message tell and get rid of the recipients. I had tried the delete before, but I thought I had to get the recipients before I deleted them. I'm not a very good apple script person. Here is my final script
(* Cf. http://www.macosxhints.com/article.php?story=20060219014940761 *)
(* RS 31st July 2006 *)
set theAuthority to "email address here"
(* or your personal Knujon address *)
tell application "Mail"
set theMessages to the selection
repeat with thisMessage in theMessages
set newMessage to make new outgoing message at end of outgoing messages
tell newMessage
set visible to false (* comment out whole line to stop 'blinking' windows *)
set content to thisMessage's source
set subject to "Fwd: " & thisMessage's subject
make new to recipient with properties {address:theAuthority}
delete bcc recipients
delete cc recipients
end tell
send newMessage
set read status of thisMessage to true
set was forwarded of thisMessage to true
set junk mail status of thisMessage to true
end repeat
end tell -
Someone was using my computer recently and sent an email from my email address without my consent. Can anyone tell me what the little arrow means in the first column of the sent folder. It is the column where the blue ball is when an email is marked as unread. I noticed that most emails do not have that arrow but this one did. It is also the column that shows a curved back arrow when you have replied to an email. Would really appreciate some feedback.
I thought that is what it meant but it doesn't have Fwd: before the subject. It has Re: which is what it has when I have replied to an email. I know I seem to be being a pain but I'm trying to get to the bottom of this because the person has denied sending it and the email was a reply to an email that had been sent to him on his email address. Have you got any other suggestions?
-
Need help from ecperienced sup (mail client) users
Hi there.
I'm just trying to set up an encrypted mailing list on my Raspberry Pi. Therefore, i wanted to use sup. The scenario is the following:
I register an E-mail adress with some Provider (e.g. gmail, doesn't matter, since all emails will be encrypted). I then install sup on my raspberry pi. I configure sup to get new mail every minute or so. Now here's the difficult part:
The E-Mail received will be encrypted, with the gmail adress' public pgp key. I want sup to decrypt the message, then forward it to several persons after reencrypting the mail with their public keys. I know that this is not the intention of sup, but so far, sup is the best suited program i found. If anyone could tell me how to configure sup so it does what i described, or if anyone knew a program or set of programs, that are more suited for this, i would be very grateful if you told me!
Cheers,
Gasp0de
PS: I think i probably need to use those hooks that sup has, i'm still reading about that stuff.
Last edited by Gasp0de (2013-12-20 15:34:46)Well, sup does work well with pgp. I've seen tutorials for using PGP with it, also including per-recipient rules (but haven't had the time to read them yet). So the main thing i'm asking for is how to create some rule to automatically forward incoming email to a list of recipients (preferably without adding anything like FWD in the subject, and/or email headers in the content). Decrypting/Encrypting incoming/outgoing mail shouldn't be too difficult.
Gasp0de
PS: Before anyone expresses security concerns, i am aware that this scenario is not a practical solution for any hosted services, as the email will at some time be available in cleartext on the server, but as i'm running the Raspberry Pi at home, and all listmembers trust me (as i will also be on the list) this shouldn't be a problem. I'd be interested in additional security concerns with my scenario! -
Discarded Print Job Junk/Virus --- Seems to be a regular problem
Bought a new HP Photosmart 7510 e-All-in-One Printer - C311. Love it so far. Registered for e-print, set-up a custom e-mail address and everything works fine from my g-mail account.
My wife tried sending a couple of different pictures, (at different times, in separate e-mails), and they never printed. She tried from her yahoo account and then again from her gmail account. I logged in to check the status, and all of them were discarded as junk/virus.
They are *.jpg files of just over 2MB in size. Searched through help and seemed to be an issue based on size or resolution.
Just to be sure, I had her send the file to me, I deleted the "FWD" from the subject line and her e-mail info from the body of the e-mail and send the very same photo from my gmail account... AND IT PRINTED FINE!!!
I've got the service setup to accept print jobs from anyone that knows the e-mail address, so there is NO REASON for the job to be rejected from her gmail or yahoo accounts...
What gives?OK...
Read through a few more posts and trying a few more things.
Sent a regular e-mail with "Test" in the Subject and "Test" in the body.
It worked, but the email with the attachment got discarded as spam/virus again!
:-O
OH Crap! I just realized she had to use a new e-mail client from her phone due to issues with the installed client on her Android OS phone. It's called K-9...
The regular e-mail printed but anything with attachments gets dropped as spam/virus.
They're still yahoo.com and a gmail.com email addresses. so I don't know why it would be a problem, but I do remember seeing something about only certain e-mail clients being supported...
I'll need to get her to download the ePrint app for her phone... I can't use the app on my phone because there isn't enough resident memory and the app won't allow me to move it to the SD card...
Anyhow, at least she can forward regular e-mails.
Thanks -
Fwd'ing to security newsgroup
-------- Original Message --------
Subject: Client accessing MBeanHome for more than one domain receives
SecurityException
Date: 4 Mar 2004 07:27:33 -0800
From: Dinesh Bhat <[email protected]>
Reply-To: Dinesh Bhat <[email protected]>
Organization: BEA NEWS SITE
Newsgroups: weblogic.developer.interest.management
Hi,
When a client accesses MBeans of more than one domains (Weblogic 8.1)
that have
different passwords, it receives a SecurityException. This occurs when
the MBeanHome
for each domain is looked up at initialization and reused for each
request ( to
access MBeans ). The security exception does not occur if the MBeanHome
for each
domain is looked up for each request. On initial review, this behavoir
seems inconsistent.
Looking up the MBeanHome for each request may introduce a significant
overhead.
I am not sure if concurrent lookups would also cause the same problem.
I have read on another post that we can work around this problem by
establishing
a trust relationship between the servers, but this may not be feasible
when one
is monitoring a lot of servers and the overhead of configuration may be
an issue.
I have attached code that can reproduce the problem.
Please advise on the correct approach.
Thanks
Dinesh Bhat
Panacya Inc.
import java.util.ArrayList;
import java.util.Set;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Hashtable;
import javax.management.MBeanServer;
import javax.naming.Context;
import weblogic.jndi.Environment;
import weblogic.management.MBeanHome;
* This class reproduces the Security Exception that is caused when a client tries to access
* MBeans of more than one domain with different weblogic passwords. Here is the stacktrace of the
* exception
* java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
at weblogic.rjvm.BasicOutboundRequest.sendReceive(BasicOutboundRequest.java:108)
at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:138)
at weblogic.management.internal.AdminMBeanHomeImpl_811_WLStub.getDomainName(Unknown Source)
at WLSecurityTest.getWeblogicInfo(WLSecurityTest.java:140)
at WLSecurityTest.runTest(WLSecurityTest.java:75)
at WLSecurityTest.<init>(WLSecurityTest.java:66)
at WLSecurityTest.main(WLSecurityTest.java:51)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at com.intellij.rt.execution.application.AppMain.main(Unknown Source)
Caused by: java.lang.SecurityException: [Security:090398]Invalid Subject: principals=[weblogic, Administrators]
at weblogic.security.service.SecurityServiceManager.seal(SecurityServiceManager.java:682)
at weblogic.rjvm.MsgAbbrevInputStream.getSubject(MsgAbbrevInputStream.java:181)
at weblogic.rmi.internal.BasicServerRef.acceptRequest(BasicServerRef.java:814)
at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:299)
at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:920)
at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:841)
at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:222)
at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:794)
at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:570)
at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:105)
at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:32)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
* Note: the exception is caused only when the MBeanHome for each domain is cached and used for subsequent
* transactions. The exception does not occur if the MBeanHome for each domain is looked up for each transaction. This
* would significant overhead in practice. Also the transactions across the various domains occurs serially, hence
* the effect of concurrent lookups has to be tested.
* Usage:
* This class has been tested with weblogic 8.1
* The class needs weblogic.jar in its classpath
* One can specify the weblogic details as System properties. The properties need to be specified in
* the following format:
* wls.host.n, wls.userId.n, wls.password.n where n is the weblogix instance number. Also specify
* the boolean system property reconnect.each.iteration to toggle between reconnecting or not reconnecting
* for each iteration. When not reconnecting for each iteration, the MBeanHome is reused and the Security Exception
* occurs.
* Following is the example of system properties
* -Dwls.host.0=localhost:7001 -Dwls.userId.0=weblogic -Dwls.password.0=weblogic
* -Dwls.host.1=localhost:7011 -Dwls.userId.1=weblogic -Dwls.password.1=weblogic1
* -Dwls.host.2=localhost:7021 -Dwls.userId.2=weblogic -Dwls.password.2=weblogic2
* -Dreconnect.each.iteration=false
public class WLSecurityTest
ArrayList wlsDetailsList = new ArrayList();
HashMap connectionMap = new HashMap();
public static void main(String[] args)
try
WLSecurityTest wlSecurityTest = new WLSecurityTest();
catch (Exception e)
e.printStackTrace();
* Constructor
* @throws Exception
public WLSecurityTest() throws Exception
int noOfTries = 10;
getWLSDetails();
for( int i=0; i <= noOfTries; i++)
runTest();
* Runs the test
private void runTest()
for (int i = 0; i < wlsDetailsList.size(); i++)
WLSDetails wlsDetails = (WLSDetails) wlsDetailsList.get(i);
getWeblogicInfo(wlsDetails);
* Get Weblogic details from System properties
* @throws Exception
private void getWLSDetails() throws Exception
wlsDetailsList = new ArrayList();
String hostKeyTmpl = "wls.host";
String userIdKeyTmpl = "wls.userId";
String passwordKeyTmpl = "wls.password";
boolean done = false;
for (int i = 0; !done; i++)
WLSDetails wlsDetails = new WLSDetails();
String hostKey = hostKeyTmpl + "." + Integer.toString(i);
String userIdKey = userIdKeyTmpl + "." + Integer.toString(i);
String passwordKey = passwordKeyTmpl + "." + Integer.toString(i);
wlsDetails.hostName = System.getProperty(hostKey);
done = (wlsDetails.hostName == null) || (wlsDetails.hostName.length() == 0);
if (!done)
wlsDetails.userId = System.getProperty(userIdKey);
wlsDetails.password = System.getProperty(passwordKey);
connect(wlsDetails);
wlsDetailsList.add(wlsDetails);
* Lookup the MBeanHome for the specified weblogic server
* @param wlsDetails
* @throws Exception
public synchronized void connect(WLSecurityTest.WLSDetails wlsDetails) throws Exception
Context ctx = null;
MBeanHome mbHomeLocal = null;
try
Environment env = new Environment();
env.setProviderUrl("t3://" + wlsDetails.hostName);
env.setSecurityPrincipal(wlsDetails.userId);
env.setSecurityCredentials(wlsDetails.password);
Hashtable hashtable = env.getProperties();
System.out.println(hashtable.toString());
ctx = env.getInitialContext();
wlsDetails._mBeanHome = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
catch (Exception e)
e.printStackTrace();
* Gets weblogic information using MBeans
* @param wlsDetails
public synchronized void getWeblogicInfo(WLSDetails wlsDetails)
try
boolean reconnectEachIteration =
Boolean.getBoolean("reconnect.each.iteration");
if( (reconnectEachIteration) || ((wlsDetails._mBeanHome == null) && (!reconnectEachIteration) ))
connect(wlsDetails);
MBeanHome mbHomeLocal = wlsDetails._mBeanHome;
String domainName = mbHomeLocal.getDomainName();
Set allMBeans = mbHomeLocal.getAllMBeans();
System.out.println("Size: " + allMBeans.size());
Set clusterMBeans = mbHomeLocal.getMBeansByType("Cluster", domainName);
System.out.println(clusterMBeans);
MBeanServer mBeanServer = mbHomeLocal.getMBeanServer();
catch (Exception ex)
ex.printStackTrace();
* Class that holds weblogic server details
class WLSDetails
String hostName = "";
String userId = "";
String password = "";
MBeanHome _mBeanHome = null;If Server version is 61.
Make user "system" password of all weblogic servers same.
If Server version above 61(70,81)
In the Security Advanced Settings un check generated credential and specify a common credentail for all the weblogic servers(domains). -
RE: (forte-users) (Fwd) ODBC & Dynamically Choosing aDatabase Ve ndor
The error you are getting is saying that the data source is not correctly
specified. Make sure the data source(or the name of the ODBC driver you
created) is correctly specified in your code.
ka
-----Original Message-----
From: Duncan Kinnear [mailto:[email protected]]
Sent: Sunday, December 19, 1999 6:26 PM
To: [email protected]
Subject: (forte-users) (Fwd) ODBC & Dynamically Choosing a Database
Vendor
I am trying to dynamically create a DBSession to connect to the
Microsft SQL Server ODBC Driver on a Forte Server Node.
I have tested the ODBC connection on the Local Machine and it works fine.
I have connected to the SQL Server on that machine with a Static
DBSession Object and that works fine.
I have used the same code to create a DBSession to Informix on Unix
and that worked fine.
The error I get is a converted ODBC one:
SYSTEM ERROR: Attempt to load partition named TestWinProject_cl0_Part1
failed.
Class: qqsp_ResourceException
Error #: [1001, 4]
Detected at: qqrt_ForteExecAgent::LoadPartition at 2
Error Time: Mon Dec 20 12:05:37
Distributed method called: qqrt_ForteExecAgentProxy.LoadPartition!7
(object name Unnamed) from partition "Node Manager", (partitionId =
40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11c, taskId =
[40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11c.38]) in application
"System
Manager", pid 250 on node ALLY in environment testenv
Exception occurred (remotely) on partition "Forte_Executor",
(partitionId
= 40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e, taskId =
[40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e.22]) in application
"TestWinProject_cl0", pid 235 on node ALLY in environment TestEnv.
SYSTEM ERROR: Failed to create service object TestDataProject.TestService.
Class: qqsp_ResourceException
Last TOOL statement: method TestServiceMgr.
Error Time: Mon Dec 20 12:05:37
Exception occurred (remotely) on partition "Forte_Executor",
(partitionId
= 40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e, taskId =
[40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e.22]) in application
"TestWinProject_cl0", pid 235 on node ALLY in environment TestEnv.
USER ERROR: (This error was converted)
Failed to connect to database: ForteSQLServer , username: justin .
[Microsoft][ODBC Driver Manager] Data source name not found and no
default
driver specified
Class: qqdb_RemoteAccessException with ReasonCode:
DB_ER_DBMSCONNECTION
DBMS SQLSTATE: IM002
Class: qqsp_ErrorDescriptor
Detected at: qqdb_OdbcVendorInfo::DoSQLConnect at 10
Last TOOL statement: method ServiceMgr.SetDBSession
Error Time: Mon Dec 20 12:05:37
Exception occurred (remotely) on partition "Forte_Executor",
(partitionId
= 40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e, taskId =
[40114BC0-B0FC-11D3-B4D6-E87D6941AA77:0x11e.22]) in application
"TestWinProject_cl0", pid 235 on node ALLY in environment TestEnv.
Versions:
SQL SERVER 6.5
ODBC Driver SQL Server 2.65.0240
ODBC Manager 3.0.28.22
NT 4 sp4
Forte 3.0.J.1
The code I'm using is almost identical to that given in the "Dynamically
Choosing a Database Vendor" section of the "Making a Database
Connection" chapter of the "Accessing Databases" manual.
Any suggestions would be greatly appreciated
Thanks in advance.
Cheers,
Duncan Kinnear,
McCarthy and Associates, Email:
[email protected]
PO Box 764, McLean Towers, Phone: +64 6 834 3360
Shakespeare Road, Napier, New Zealand. Fax: +64 6 834 3369
Providing Integrated Software to the Meat Processing Industry for over 10
years
For the archives, go to: http://lists.sageit.com/forte-users and use
the login: forte and the password: archive. To unsubscribe, send in a new
email the word: 'Unsubscribe' to: [email protected] -
Re: Re: [Fwd: FindSO?]
Geoff,
Sean Brown mentioned that 3J has removed these limitations. To remove the
limitations manually in any other 3.x prior to 3J, set the CFG:DO:17 flag.
-Dustin
From: Geoff Puterbaugh <[email protected]>
Date: Thu, 17 Dec 1998 15:31:58 -0500
Subject: Re: [Fwd: FindSO?]
Sameer,
You said that we can use the ObjectLocationMgr with
Service Objects. That has not been my experience.
In fact, I feel that the whole documentation section
for the ObjectLocationMgr is missing the following:
WARNING: This service may NOT be used to publish or
find objects created by Forte. These all reside in
the reserved name-space "/forte". This service may
only be used to publish and find user-defined objects.
But I am only speaking from one afternoon's experience
a month or so back.
All my best,
Geoff
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>Geoff,
Sean Brown mentioned that 3J has removed these limitations. To remove the
limitations manually in any other 3.x prior to 3J, set the CFG:DO:17 flag.
-Dustin
From: Geoff Puterbaugh <[email protected]>
Date: Thu, 17 Dec 1998 15:31:58 -0500
Subject: Re: [Fwd: FindSO?]
Sameer,
You said that we can use the ObjectLocationMgr with
Service Objects. That has not been my experience.
In fact, I feel that the whole documentation section
for the ObjectLocationMgr is missing the following:
WARNING: This service may NOT be used to publish or
find objects created by Forte. These all reside in
the reserved name-space "/forte". This service may
only be used to publish and find user-defined objects.
But I am only speaking from one afternoon's experience
a month or so back.
All my best,
Geoff
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
Re: [Fwd: FindSO?]
Hi Rick,
You can use the Forte ObjectLocationMgr to dynamically register and bind
to named, anchored objects (which may be service objects). The SCAFFOLDS
2.0 RouteManager (Custom Router) uses this mechanism to determine the
ExecutionManager (typically a service object) to route to, at run time.
However, there are some issues that you need to consider before going
with this approach. The primary disadvantage of not directly using a
ServiceObject reference in Forte is that Forte failover only kicks in
when you directly call out to a ServiceObject that is absent from the
current environment. A direct call to the ServiceObject is also required
at application startup of deployed applications if you do not pre-start
your server partitions.
The SCAFFOLDS custom routing mechanism accounts for all these issues
while still providing you with the dynamic ServiceObject determination
that you are looking for. You can provide the routing rules by either
using one of the RouteModules out of the box, or by writing your own
RouteModule.
If you give some more details about your scenario, I will be happy to
make further recommendations.
Is there a way to get an object reference to a service object by
name/string ?
In a connectorHandler, I'm trying to dynamically connect to the partition
of a Service Object wihtout having to hardcode a huge case statement and
know a compile time all possible SO's. Thanks in advance.
Rick Vaillancourt
Novalis Corporation
Sameer Vaidya
SCAFFOLDS Engineer
Sage IT Partners
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>As of release 3J there is an easier way to do this that used to be hidden.
I am hoping that the uncovering of this functionality was on purpose and not
by accident meaning it may go away later!? But, it is now possible to use
the name service to look up a service object directly. This used to require
setting an unsupported configuration flag but appears to no longer require
this.
You use bindobject as you would with a named anchored object but supply the
path to your service object. The path is in the form:
'site/ServerProjectName_cl#/ApplicationName_cl#-ServiceName'
Using this method, fail-over and load balancing will worked as advertised!
This is not the case when you bind to a named anchored object.
One catch is that the service can only be found under the name above when it
has actually been deployed. The path is different when you are running from
the workshops. I am assuming that direct binding will work in that
circumstance as well as long as you provide the correct path. However, I
have not tested it.
Hope this helps!
Sean
Cornice Consulting Inc.
mailto:[email protected]
-----Original Message-----
From: [email protected]
[<a href="mailto:[email protected]">mailto:[email protected]]On</a> Behalf Of Sameer Vaidya
Sent: Thursday, December 17, 1998 12:02 PM
To: [email protected]
Cc: Tim E. Hall; [email protected]; [email protected]
Subject: Re: [Fwd: FindSO?]
Hi Rick,
You can use the Forte ObjectLocationMgr to dynamically register and bind
to named, anchored objects (which may be service objects). The SCAFFOLDS
2.0 RouteManager (Custom Router) uses this mechanism to determine the
ExecutionManager (typically a service object) to route to, at run time.
However, there are some issues that you need to consider before going
with this approach. The primary disadvantage of not directly using a
ServiceObject reference in Forte is that Forte failover only kicks in
when you directly call out to a ServiceObject that is absent from the
current environment. A direct call to the ServiceObject is also required
at application startup of deployed applications if you do not pre-start
your server partitions.
The SCAFFOLDS custom routing mechanism accounts for all these issues
while still providing you with the dynamic ServiceObject determination
that you are looking for. You can provide the routing rules by either
using one of the RouteModules out of the box, or by writing your own
RouteModule.
If you give some more details about your scenario, I will be happy to
make further recommendations.
Is there a way to get an object reference to a service object by
name/string ?
In a connectorHandler, I'm trying to dynamically connect to thepartition
of a Service Object wihtout having to hardcode a huge case statement and
know a compile time all possible SO's. Thanks in advance.
Rick Vaillancourt
Novalis Corporation
Sameer Vaidya
SCAFFOLDS Engineer
Sage IT Partners
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:<a href=
"http://pinehurst.sageit.com/listarchive/">http://pinehurst.sageit.com/listarchive/</a>>
Maybe you are looking for
-
Rejeição por erro 539 Duplicidade de NF-e, com diferença na Chave de Acesso
Senhores, Todo o processo de NFE está funcionando perfeitamente, porem existem algumas notas, que aleatoriamente apresentam o seguinte erro: http://img814.imageshack.us/img814/6417/screenhunter02jan260836.jpg Se notarmos ele traz status 539 e um símb
-
How to embed Windows video files in iweb
I uploaded several videos to a web site using iweb for a fortune 500 company only to find out the wmv videos I put in didn't load because iweb uses a quicktime container for all videos dropped on the page. After spending a lot of time on this site (h
-
Looking for a way to add a forum to IWeb
I am creating a neighborhood site for the community I live in. One of the other people helping me organize it had a great idea about adding a community forum/message board for people to communicate on. Does anyone know if this can be done? Any exampl
-
'Date and Time' messing up big time!
Under 'Date and Time' settings, it says that it's January 2, 2581 BE, and it won't let be set it back to the present date. Whenever I do, it puts every other month, date, and year so that I can't select it. Another problem I'm having is that one aler
-
How to I locate and start using AirDrop?
I got a new Macbook Pro, iphone 5S and iPad Air. i want to move files from my iPhone 4S to the other devices and i wiould like to share files among all devices. However, i cannot seem to be able to locate the Airdrop icon on the laptop where it is vi