How to instantiate more than one of a sessionbean
Hi,
I'm looking for a way to instantiate a stateful sessionbean ten times at the same time.
for(int i=0; i<= 10; i++){
MySessionBean bean = MySessionBeanHome.create();
bean.doSomethingWith(i);
That doesn't work, because it'll waiting for the return of doSomethingWith(). But I have to start the Bean without waiting for the return...
Any ideas??
Stefan
Hello, you can use Threads in there, now you may decide if you want to use the Thread in the server or client.
For exemple, if you want to create a Thread on the Server the doSomethingWith() creates the Thread and returns.
If you want create the Thread on the client you must create a Thread object on the client who will create the Object and execute the method.
Hope this helps.
Similar Messages
-
How to show more than one record at a form-like style report?
Hi All,
I developed a form-like style report
I want it to show more than one record at once (At the same page)
I tried that by setting the value to "Maximum records per page" property for the repeating frame to 10
but when I close the property palete and open it agian the value is returned to 1 !!!
how to show more than one record at the same page?????
Thank uHi,
there's perhaps another property like "page protect". If than 2 records didn't fit at one page there's a page break. Or is there any object inside the repeating frame with page-break properties? Sorry .. it's like looking into a chrystal ball ...
Regards
Rainer -
Dear All
Can anyone give me simple instructions on how to use more than one ipod on the same computer with itunes. My daughters have a different generation 'nano' each & my wife a 'shuffle'?
Many thanksClick here for options.
(69081) -
How to select more than one slide on Keynote?
Please, someone knows how to select more than one slide on keynote for IPad?
// Allow selection to span one contiguous set of rows, visible columns, or block of cells
table.setSelectionMode(ListSelectionModel.SINGLE_INTERVAL_SELECTION);
// Allow multiple selections of rows, visible columns, or cell blocks
table.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION); -
How to display more than one documents on windows 8 desktop?
how to display more than one documents on windows 8 desktop?
Adobe Reader Touch doesn't show more than one file on screen and doesn't show them on the desktop. Apparently these are very old fashioned things that Microsoft doesn't think we'll want to do any more and calls them "legacy" to make them sound antiquated.
If you want to do these things use the legacy Adobe Reader, a much more powerful and flexible app (and not obsolete in the slightest). http://get.adobe.com/reader . There are no legacy apps in the Windows App Store. -
How to make more than one partition on Airport Time Capsule?
how to make more than one partition on Airport Time Capsule?
Only for the very brave......
Open up the Time Capsule (voids the warranty)
Pull the hard drive
Place the hard drive in a separate enclosure
Connect the enclosure directly to your Mac
Use Disk Utility to partition the hard drive
Reinstall the hard drive back in the Time Capsule
For the rest of us.....
The next best thing might be to set up one or more disk images on the Time Capsule, which will allow you reserve a given amount of space for each disk image.
Open up Macintosh HD > Applications > Utilities > Disk Utility
Click on the New Image tab
Navigate to the Time Capsule
Set up the disk image by naming it and specifying how much space you want to reserve -
How to attach more than one picture on an email
How to attach more than one picture on an email?
Tap the square with arrow on top right and select pictures you want to send (max 5 pictures)
http://i1224.photobucket.com/albums/ee374/Diavonex/f0bd7d73.jpg -
How to sync more than one iphone to a macbook?..
How to sync more than one iphone to a macbook?..
Open itunes, connect iphone, select what you want to sync, sync
Do the same for each iphone. -
How to add more than one tabular region in a page?...
How to add more than one tabular region in a page?
i have a page, that page contain form and tabular region. when i trying to add another tabular region it showing error
1 error has occurred
Updatable SQL Query already exists on page 2. You can only add one updatable SQL query per page. Select a different page.
but i have to add the tabular in that page.
Is it possible?
pls help...
Thanks and regards,
skudhi,
even i am searching for some thing similar.
i want to have 3 calendars in one page.
getting same message calendar already exists on page 2. You can only add one calander per page. Select a different page.
pls help. -
I have an HP Photosmart C4180 all-in-one, printer, scanner and copier. I can't figure out how to scan more than one page? It will only let me do one page at a time and then I have difficulty sending pages 1, 2 and 3 as one docuement. Any ideas??
Thank you, JetteskiHello Jetteski,
Hello Jetteski, Thanks for the post.
Since you are running a MAC, check the below links for some excellent information on scanning. Good Luck!
http://goo.gl/M8Cl2
http://goo.gl/cufK6
http://goo.gl/OTQoR
I work for HP but my posts and replies are my own....Thank you! -
I can't figure out how to open more than one website at a time like explorer does on a pc. would like to know if it Is possible or not.
Tabbed browsing is the way. Go to Safari's View menu:
and click "Show Tab Bar." When you see a link on another site you wish to open without closing the first site, simply right-click and select "Open Link in New Tab." -
How to share more than one Time Machine folder
Hi,
With Snow Leo Server I found how to find how to share more than one Time Machine Folder but I can't see how to do the same with Lion Server, could you help me with that ?
The goal of that is to offer one TM folder per user which is located on a dedicated partition in order to limit the size of TM backups per user (150Gig).
In Lion, in can only share one TM folder for everybody and I didn'tfind if I can set a limit size per user...
Thank you in advance,I have figured out a way to enable multiple backup targets.
However, it's one of these things I wouldn't want to describe to anyone except true programmer types, because everyone else has a 90%+ chance of messing up their system if they do something wrong.
It involves turning off file sharing, and then editing the plist files in /private/var/db/dslocal/nodes/Default/sharepoints/
The gist of it is this:
a) first create all the share points you later want to use for TimeMachine, and set them up for afp-only file sharing, also create one TM target, which you can either use later, or have there so the system has one entry it knows how to handle. I just made a bogus one that I'm not actively using.
b) turn off file sharing in Server.app
c) turn off TimeMachine in Server.app
d) now you can edit the files, the easiest is with Xcode, so you may want to install that first
e) for each sharpoint you made in a) there will be a corresponding .plist file in the location indicated, these are the files that need to be edited.
f) for each of these files
1) the item0 string property in the timeMachineBackup array must be switched from 0 to 1
2) a new key of type array with the name timeMachineBackupUUID must be created
3) in the newly created array an item of type string must be placed with the value of a UUID, which can be created with the shell command uuidgen
g) make sure all the edited plist files are saved
h) turn on TimeMachine in the Server.app again
If all went well, you now should be able to go to one of your networked client computers and see all the time machine share points just created as options for being a time machine target.
Anyway, if you go that route: be careful, don't blame me if you muck things up... -
How to pass more than one value for one column in procedure
hi
select id, name from col_tab where dept_name in ('ECE','CIVIL');
when i was running this it is working well.
CREATE OR REPLACE PACKAGE pack_str
AS
TYPE type_refcur IS REF CURSOR;
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
END pack_str;
CREATE OR REPLACE PACKAGE BODY pack_str
AS
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
IS
BEGIN
OPEN ans FOR
select id,name from col_tab where dept_name in char_in ;
END str;
END pack_str;
the package was created.
my doubt is
1.how to pass more than one value for char_in (e.g ('ECE','CIVIL'))
2. when i was storing the value in string like val = 'ECE,CIVIL' ,
how to get the id,name for ECE and CIVIL.
plz help meHi Rebekh ,
I am recreating your packages for the desired output.
CREATE OR REPLACE PACKAGE pack_str
AS
TYPE type_refcur IS REF CURSOR;
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur);
END pack_str;
CREATE OR REPLACE PACKAGE BODY pack_str
AS
PROCEDURE str(char_in VARCHAR2,ans OUT type_refcur)
IS
lv_t varchar2(200);
BEGIN
lv_t := REPLACE(char_in,',',''',''');
lv_t := 'select id,name from col_tab where dept_name in (''' || lv_t || ''')' ;
OPEN ans FOR lv_t;
END str;
END pack_str;
Note:-
Input Parameter char_in is a comma seperated value for dept_name
-Debamalya -
How to emai more than one person
hi, can someone please post some code on how to send more than one person the same email, i tried what's below but get an error:
// Send message out as email via JavaMail
// Emails for group 1
String namesOne[] = {"[email protected], [email protected]"};
// Vector to store names
Vector namesInGroup = new Vector();
// Add names to vector
for(int i=0; i<namesOne.length; i++) {
namesInGroup.add(namesOne);
Properties props = new Properties();
props.put("mail.smtp.host", "???");
Session s = Session.getInstance(props);
MimeMessage message = new MimeMessage(s);
InternetAddress from = new InternetAddress("[email protected]");
message.setFrom(from);
InternetAddress[] to = new InternetAddress[namesInGroup.size()];
String emailOfPerson;
for(int i=0; i<namesInGroup.size(); i++) {
emailOfPerson = (String)namesInGroup.elementAt(i);
to[i] = new InternetAddress(emailOfPerson);
message.setRecipients(Message.RecipientType.CC, to);
message.setSubject(subjectOfMessage);
String text = mailText.toString();
MimeMultipart mm = new MimeMultipart();
MimeBodyPart mbp = new MimeBodyPart();
mbp.setContent(text,"text/html");
mm.addBodyPart(mbp);
message.setContent(mm);
Transport.send(message);
// End of JavaMail code
the host is fine, ???, just didn't want to write it there, i've been able to email one person but can't get this to work, i get the following error:
[05/Sep/2002:15:27:03] failure (10730): Internal error: exception thrown from the servlet service function (uri=/WriteAndEmail.jsp): javax.servlet.ServletException: Illegal address, stack: javax.servlet.ServletException: Illegal address
at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:384)
at WriteAndEmailjsp._jspService(_WriteAndEmail_jsp.java:291)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:533)
, root cause: javax.mail.internet.AddressException: Illegal address in string ``[email protected], [email protected]''
at javax.mail.internet.InternetAddress.<init>(InternetAddress.java:66)
at WriteAndEmailjsp._jspService(_WriteAndEmail_jsp.java:243)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
at com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.java:533)
both emails are valid.
Thank you.soni29 wrote:
hi, can someone please post some code on how to send
more than one person the same email, i tried what's
below but get an error:
// Send message out as email via JavaMail
// Emails for group 1
String namesOne[] = {"[email protected],
[email protected]"};
// Vector to store names
Vector namesInGroup = new Vector();
// Add names to vector
for(int i=0; i<namesOne.length; i++) {
namesInGroup.addElement(namesOne);
Properties props = new Properties();
props.put("mail.smtp.host", "???");
Session s = Session.getInstance(props);
MimeMessage message = new MimeMessage(s);
InternetAddress from = new
InternetAddress("[email protected]");
message.setFrom(from);
InternetAddress[] to = new
InternetAddress[namesInGroup.size()];
String emailOfPerson;
for(int i=0; i<namesInGroup.size(); i++) {
emailOfPerson = (String)namesInGroup.elementAt(i);
to[i] = new InternetAddress(emailOfPerson);
message.setRecipients(Message.RecipientType.CC, to);
message.setSubject(subjectOfMessage);
String text = mailText.toString();
MimeMultipart mm = new MimeMultipart();
MimeBodyPart mbp = new MimeBodyPart();
mbp.setContent(text,"text/html");
mm.addBodyPart(mbp);
message.setContent(mm);
Transport.send(message);
// End of JavaMail code
the host is fine, ???, just didn't want to write it
there, i've been able to email one person but can't
get this to work, i get the following error:
[05/Sep/2002:15:27:03] failure (10730): Internal
error: exception thrown from the servlet service
function (uri=/WriteAndEmail.jsp):
javax.servlet.ServletException: Illegal address,
stack: javax.servlet.ServletException: Illegal
address
at
org.apache.jasper.runtime.PageContextImpl.handlePageExc
ption(PageContextImpl.java:384)
at
WriteAndEmailjsp._jspService(_WriteAndEmail_jsp.java:
91)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBa
e.java:126)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java
826)
at
com.netscape.server.http.servlet.NSServletRunner.Servic
(NSServletRunner.java:533)
, root cause: javax.mail.internet.AddressException:
Illegal address in string ``[email protected],
[email protected]''
at
javax.mail.internet.InternetAddress.<init>(InternetAddr
ss.java:66)
at
WriteAndEmailjsp._jspService(_WriteAndEmail_jsp.java:
43)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBa
e.java:126)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java
826)
at
com.netscape.server.http.servlet.NSServletRunner.Servic
(NSServletRunner.java:533)
both emails are valid.
Thank you.
try using addElement()method of the vector.
or get all the address as one string represented by _to
where _to = "[email protected], [email protected]";
//set to addresss
InternetAddress to = new InternetAddress() ;
InternetAddress [] toadd = to.parse(_to);
msg.setRecipients(Message.RecipientType.CC,toadd);
i hope this wouldhelp you
thanks and regards,
Suraj Berwal -
How to pass more than one parameter
Hello,
This is my code.
How to pass more than one parameter:
SELECT:responsibility_name responsibility_name,
LPAD(' ', 6*(LEVEL-1))
|| menu_entry.entry_sequence sequence ,
LPAD(' ', 6*(LEVEL-1))
|| menu.user_menu_name SubMenu_Description ,
LPAD(' ', 6*(LEVEL-1))
|| func.user_function_name Function_Description ,
LPAD(' ', 6*(LEVEL-1))
|| menu_entry.prompt prompt
,menu.menu_id ,
func.function_id
--menu_entry.grant_flag Grant_Flag ,
--DECODE( menu_entry.sub_menu_id , NULL, 'FUNCTION' , DECODE( menu_entry.function_id , NULL, 'SUBMENU' , 'BOTH') ) Type
FROM fnd_menu_entries_vl menu_entry ,
fnd_menus_tl menu ,
fnd_form_functions_tl func
WHERE menu_entry.sub_menu_id = menu.menu_id(+)
AND menu_entry.function_id = func.function_id(+)
AND MENU.LANGUAGE(+) = 'US'
AND FUNC.LANGUAGE(+) = 'US'
--AND func.user_function_name LIKE '%Primary Care Providers%'
AND grant_flag = 'Y'
START WITH menu_entry.menu_id =
(SELECT menu2.menu_id
FROM fnd_menus_tl menu2,apps.fnd_responsibility_vl resp
WHERE menu2.menu_id=resp.menu_id
and resp.responsibility_name= :responsibility_name
--and menu2.user_menu_name = ('ATCO HR INQ USER'
AND LANGUAGE = 'US'
CONNECT BY MENU_ENTRY.MENU_ID = PRIOR MENU_ENTRY.SUB_MENU_ID
and menu_entry.function_id not in (select func.function_id
from --fnd_form_functions_vl fnc,
apps.fnd_resp_functions exc,
apps.fnd_responsibility_vl res
where func.function_id = exc.action_id
and res.responsibility_name =:responsibility_name
and res.responsibility_id=exc.responsibility_id)
and menu_entry.sub_menu_id not in (select menu.menu_id
from --fnd_menus_vl imn,
apps.fnd_resp_functions exc,
apps.fnd_responsibility_vl res
where menu.menu_id = exc.action_id
and res.responsibility_name =:responsibility_name
and res.responsibility_id=exc.responsibility_id)
ORDER SIBLINGS BY menu_entry.entry_sequence;
Thank you for your help
ShuishenmingHi, Ming,
One way is to put the "parameters" in a table, and join to that table in your query. If you make it a Global Temporary Table, then multiple sessions can run the query at the same time, and each can be seeing different responsibilities.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all the tables involved, and the results you want from that data. Since this problem involves parameters, you should give a couple of different sets of parameters, and the results you want from the same sample data for each set.
Explain, using specific examples, how you get those results from that data.
Always say what version of Oracle you're using (e.g. 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002
Maybe you are looking for
-
How do I use rules with iCloud?
iCloud syncs between my iMac, mt Macbook Air, and iPhone and an iPad. I set up a rule (on the iMac) to reject a certain sender's (abusive) emails (move the message to junk and automatically send a response saying this address chooses not to accept
-
Problem while opening PDF attachment in Inbox
Hi all, I am sending PDF attachment through email to inbox. When am trying to open PDF attachment i am getting error- 'There was an eror opening this document.The fuile changed and couldnt be open' When i click on attachment some bytes are getting tr
-
Webgui theme not rendering toolbar, does not look like SAPgui for Win
Hello all, I just installed the ITS 6.20 Patch 20 and when I started the webgui service, the theme that was genereatd does not look like the SAPgui for Windows at all. All I've got is a gray and blue color theme. The top row is the "SAP Easy Access"
-
Using GroupMembershipListener to find primary server
Hi, We are building a HA application. We need to find out which one of the servers are the primary one. FOr that we want to use the GroupMembershipListener. Is this correct way to go? We added to a bean that implemet StreamSink also the GroupMembersh
-
More than 8 releae levels for release strategy
Hello Experts, Is it possible to have more than 8 release levels in a release strategy ? If yes can any one please let us know how? Thanks in advance.