Simple question on FileAdapter Outbound Directory
Hello,
Can I set up a dynamic outbound directory in my wsdl?
If yes, How?
In FileAdapter tutorials the outbound dyrectory is always static path...
Thank you
Andrea
Sorry, I have some problem with english...
Well, in the tutorials we receive a file, it is elaborated by the process, then it is saved in a directory...
For example ComplexStructureOutbound.wsdl::
<binding name="FileOutbound_JCABinding" type="tns:FileOutbound_PortType">
<jca:binding />
<operation name="Send">
<jca:operation
InteractionSpec = "oracle.tip.adapter.file.outbound.FileInteractionSpec"
PhysicalDirectory="/usr/local/orabpel/samples/tutorials/121.FileAdapter/ComplexStructure/outputDir"
In my process, PhysicalDirectory not have a fixed value, but variable. I receive a file and I send it to a PhysicalDirectory value that is different for each invocation of my BPEL process.
I do it with a jdev web service, but I would understand if it is possible with BPEL and its FileAdapter connector...
I hope you understand...
Thank you, Edwin
Andrea
Similar Messages
-
Load Balancing Directory Servers with Access Manager - Simple questions
Hi.
We are in the process of configuring 2 Access Manager instances (servers) accessing the same logical LDAP repository (comprising physically of two Directory Servers working together with Multi-Master Replication configured and tested) For doing this, we are following guide number 819-6258.
The guide uses BigIP load balancer for load balancing the directory servers. However, we intend to use Directory Proxy Server. Since we faced some (unresolved) issues last time that we used DPS, there are some simple questions that I would be very grateful to have answers to:
1. The guide, in section 3.2.10 (To configure Access Manager 1 with the Directory Server load balancer), talks about making changes at 4 places, and replacing the existing entry (hostname and port) with the load balancer's hostname and port (assuming that the load balancer has already been configured). It says that changes need not be made on Access Manager 2 since the LDAPs are in replication, and hence changes will be replicated at all places. However, the guide also states that changes have to be made in two files, namely AMConfig.properties, and the serverconfig.xml file. But these changes will not be reflected on Access Manager 2, since these files are local on each machine.
Question 1. Do changes have to be made in AMConfig.properties and serverconfig.xml files on the other machine hosting Access Manager 2?
Question 2: What is the purpose of putting these values here? Specifically, what is achieved by specifying the Directory server host and port in AMConfig.properties, as well as in serverconfig.xml?
Question 3. In the HTTP console, there is the option of specifying multiple primary LDAP servers, as well as multiple secondary LDAP servers. What is the purpose of these? Are secondary servers attempted when none of the list in the primary list are accessible? Also, if there are multiple entries in the primary server list, are they accessed in a round robin fashion (hereby providing rudimentary load balancing), or are other servers accessed only when the one mentioned first is not reachable etc.?
2. Since I do not have a load balancer setup yet, I tried the following deviation to the above, which, according to me, should have worked. If viewed in the HTTP console, LDAP / Membership / MSISDN and Policy configuration all pointed to the DS on host 1. When I changed all these to point to the directory server on host 2 (and made AMConfig.properties and serverconfig.xml on host 1 point to DS of host 2 as well), things should have worked fine, but apparently Access manager 1 could not be started. Error from Webserver:
[14/Aug/2006:04:30:36] info (13937): WEB0100: Loading web module in virtual server [https-machine_1_FQDN] at [search]
[14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: Exception in thread "EventService" java.lang.ExceptionInInitializerError
[14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at com.iplanet.services.ldap.event.EventServicePolling.run(EventServicePolling.java:132)
[14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at java.lang.Thread.run(Thread.java:595)
[14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: Caused by: java.lang.InterruptedException
[14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: at com.sun.identity.sm.ServiceManager.<clinit>(ServiceManager.java:74)
[14/Aug/2006:04:31:48] warning (13937): CORE3283: stderr: ... 2 more
In effect, AM on 1 did not start. On rolling back the changes, things again worked like previously.
Will be really grateful for any help / insight / experience on dealing with the above.
Thanks!Update to the above, incase anyone is reading:
We setup a similar setup in Windows, and it worked. Here is a detailed account of what was done:
1. Host 1: Start installer, install automatically, chose Directory server, Directory Administration server, Directory Proxy server, Web server, Access Manager.
All installed, and worked fine. (AMConfig.properties, serverconfig.xml, and the info in LDAP service, all pointed to HOST1:389)
2. Host 2: Start installer, install automatically, chose Directory server, Directory Administration server, Directory Proxy server, Web server, Access Manager.
All installed, and worked fine. (AMConfig.properties, serverconfig.xml, and the info in LDAP service, all pointed to HOST2:389)
3. Host 1: Started replication. Set to Master
4. Host 2: Started replication. Set to Master
5. Host 1: Setup replication agreement to Host 2
6. Host 2: Setup replication agreement to Host 1
7. Initiated the remote replica from Host 1 ----> Host 2
Note that since default installation uses abc.....xyz as the encryption key, setting this to same was not an issue.
9. Started webserver for Host 1 and logged into AM as amadmin.
10. Added Host 2 FQDN in DNS Aliases / Realms
11. Added http://HOST2_FQDN:80 in the Platform server (instance) list.
12. Started Host 2 webserver. Logged in AM on Host 2, things worked fine.
At this stage, note the following:
a) Host 1:
AMConfig.properties file has
com.iplanet.am.directory.host=host1_FQDN
and
com.iplanet.am.directory.port=389
serverconfig.xml has:
<Server name="Server1" host="host1_FQDN" port="389" type="SIMPLE" />
b) Host 2:
AMConfig.properties file has
com.iplanet.am.directory.host=host2_FQDN
and
com.iplanet.am.directory.port=389
serverconfig.xml has:
<Server name="Server1" host="host2_FQDN" port="389" type="SIMPLE" />
c) If one logs into AM, and checks LDAP servers for LDAP / Policy Configuration / Membership etc services, they all contain Host2_FQDN:389 (which makes sense, since replica 2 was initialized from 1)
Returning back to the configuations:
13. On Host 1, login into the Admin server console of the Directory server. Navigate to the DPS, and confgure the following:
a) Network Group
b) LDAP servers
c) Load Balancing
d) Change Group
e) Action on-bind
f) Allow all actions (permit modification / deletion etc.).
g) any other configuations required - Am willing to give detailed steps if someone needs them to help me / themselves! :)
So now, we have DPS configured and running on Host1:489, and distributing load to DS1 and DS2 on a 50:50 basis.
14. Now, log into AM on Host 1, and instead of Host1_fqdn:389 (for DS) in the following places, specify Host1_fqdn:489 (for the DPS)--
LDAP Authentication
MSISDN server
Membership Service
Policy configuation.
Verified that this propagated to the Policy Configuration service and the LDAP authentication service that are already registered with the default organization.
15. Log out of AM. Following the documentation, modify directory.host and directory.port in AMConfig.properties to point to Host 1_FQDN and 489 respectively. Make this change in AMConfig.properties of both Host 1 as well as 2.
16. Edit serverconfig.xml on both hosts, and instead of they pointing to their local directory servers, point both to host1_FQDN:489
17. When you start the webserver, it will refuse to start. Will spew errors such as:
[https-host1_FQDN]: Sun ONE Web Server 6.1SP5 B06/23/2005 17:36
[https-host1_FQDN]: info: CORE3016: daemon is running as super-user
[https-host1_FQDN]: info: CORE5076: Using [Java HotSpot(TM) Server VM, Version 1.5.0_04] from [Sun Microsystems Inc.]
[https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amserver]
[https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
[https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [ampassword]
[https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
[https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amcommon]
[https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [amconsole]
[https-host1_FQDN]: warning: WEB6100: locale-charset-info is deprecated, please use parameter-encoding
[https-host1_FQDN]: info: WEB0100: Loading web module in virtual server [https-host1_FQDN] at [search]
[https-host1_FQDN]: warning: CORE3283: stderr: netscape.ldap.LDAPException: error result (32); matchedDN = dc=sun,dc=com; No such object (DN changed)
[https-host1_FQDN]: warning: CORE3283: stderr: Got LDAPServiceException code=-1
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getConnection(DSConfigMgr.java:357)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewFailoverConnection(DSConfigMgr.java:314)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewConnection(DSConfigMgr.java:253)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewProxyConnection(DSConfigMgr.java:184)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.services.ldap.DSConfigMgr.getNewProxyConnection(DSConfigMgr.java:194)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.initLdapPool(DataLayer.java:1248)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.(DataLayer.java:190)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:215)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ums.DataLayer.getInstance(DataLayer.java:246)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ldap.SMSLdapObject.initialize(SMSLdapObject.java:156)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ldap.SMSLdapObject.(SMSLdapObject.java:124)
[https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
[https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
[https-host1_FQDN]: warning: CORE3283: stderr: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
[https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
[https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.Class.newInstance0(Class.java:350)
[https-host1_FQDN]: warning: CORE3283: stderr: at java.lang.Class.newInstance(Class.java:303)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.SMSEntry.(SMSEntry.java:216)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.identity.sm.ServiceSchemaManager.(ServiceSchemaManager.java:67)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.am.util.AMClientDetector.getServiceSchemaManager(AMClientDetector.java:219)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.am.util.AMClientDetector.(AMClientDetector.java:94)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.sun.mobile.filter.AMLController.init(AMLController.java:85)
[https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
[https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:322)
[https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:120)
[https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3271)
[https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3747)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
[https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
[https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
[https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
[https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
[https-host1_FQDN]: warning: CORE3283: stderr: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
[https-host1_FQDN]: warning: CORE3283: stderr: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
[https-host1_FQDN]: failure: WebModule[amserver]: WEB2783: Servlet /amserver threw load() exception
[https-host1_FQDN]: javax.servlet.ServletException: WEB2778: Servlet.init() for servlet LoginLogoutMapping threw exception
[https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)
[https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
[https-host1_FQDN]: at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3478)
[https-host1_FQDN]: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)
[https-host1_FQDN]: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
[https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
[https-host1_FQDN]: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
[https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
[https-host1_FQDN]: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
[https-host1_FQDN]: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
[https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
[https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
[https-host1_FQDN]: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
[https-host1_FQDN]: ----- Root Cause -----
[https-host1_FQDN]: java.lang.NullPointerException
[https-host1_FQDN]: at com.sun.identity.authentication.UI.LoginLogoutMapping.init(LoginLogoutMapping.java:71)
[https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
[https-host1_FQDN]: at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
[https-host1_FQDN]: at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3478)
[https-host1_FQDN]: at org.apache.catalina.core.StandardContext.start(StandardContext.java:3760)
[https-host1_FQDN]: at com.iplanet.ias.web.WebModule.start(WebModule.java:251)
[https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
[https-host1_FQDN]: at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
[https-host1_FQDN]: at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
[https-host1_FQDN]: at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
[https-host1_FQDN]: at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
[https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
[https-host1_FQDN]: at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
[https-host1_FQDN]: at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
[https-host1_FQDN]:
[https-host1_FQDN]: info: HTTP3072: [LS ls1] http://host1_FQDN:58080 [i]ready to accept requests
[https-host1_FQDN]: startup: server started successfully
Success!
The server https-host1_FQDN has started up.
The server infact, didn't start up (nothing even listening on 58080).
However, if AMConfig.properties is left as it originally was, and only serverconfig.xml files were changed as mentioned above, web servers started fine, and things worked all okay. (Alright, except for some glitches when viewed in /amconsole. If /amserver/console is accessed, all is good. Can this mean that all is still not well? I am not sure).
So far so good. Now comes the sad part. When the same is done on Solaris 9, things dont work. You continue to get the above error, OR the following error, and the web server will refuse to start:
Differences in Solaris and Windows are as follows:
1. Windows hosts have 1 IP and hostname. Solaris hosts have 3 IPs and hostnames (for DS, DPS, and webserver).
No other difference from an architectural perspective.
Any help / insight on why the above is not working (and why the hell does the documentation seem so sketchy / insecure / incorrect).
Thanks a bunch! -
Current Year and current month?simple question
How can i get four Digit current Year and two digit current month. So if is march it should get me as 03 and the Year as 2002. Please do help me, is a simple question isn't it ?. Thanks for your earliest response.
Thank you.i have a directory structre of the format
REPTS2000209/E200209-98000001
in which 2002 is current YEAR
09 is current month
and 9800001 is the code i would submit(list box) from a form
so what i need is a program that can generate the above path and open that particular PDF file
so basically E200209-98000001.pdf is the PDF file.
i am submitting it from JSP page. PLEASE HELP ME how can i program. -
Simple question about flex and AS 3.0
Hi, this might sound like a simple question so I apologize...
I have both a copy of flex 2 and 3, and i want to simply code in AS
3.0 not mxml. I referred to the help of both flex 2 and 3, and all
i could come up with is "you can add dynamic behavior to your
documents using actionscript", which means to me, you only write
your functions in AS and create instances with mxml (...ugh).
personally, i find mxml to be ugly (mainly because it looks like
html to me), and i'd rather not use it. coming from programming in
an IDE in Java, it seems like it would be nicer to have something
similar, all the while having the power and cool features of flash.
I'm not fully educated in this matter so i understand that i could
be totally wrong.
i mean, if i have to code in mxml, i will. i'm a web
programmer for a living, and if a more experience programmer said
something like "if you don't code mxml in flex, you'll never get a
job coding in flex", i would trust the advice, and learn the ugly
code. :)
yes, i do have Flash cs3, it's great but it seems like a pain
to me the way you organize classes.... i've only seen a few
tutorials, ones that explain how you cannot simply import a custom
class, you have tell your movie to link to it, put it in the same
directory, or manually name the package, it's sort of confusing.
my main point here is that i'm very eager to start building
apps in straight AS 3.0 instead of using flash cs3 (for some
projects), and it would be cool to get some help or be pointed in
the right direction.
to simplify:
can i write AS 3.0 and only as 3.0 in flex 2 or 3? how? can
you link me to a tutorial? any advise?
thanks!Hey William, thanks for the post. It's a great coincidence
because I'm reading that book as well. I'm about half way through
it, and I love it. I installed mxmlc on my linux box and am writing
pure AS 3 apps. I think that's the way to go, though I know it's
not for everybody.
My problem with mxml is that it has a weird syntax for
function calls, and it's not as 'intuitive' for a person like me,
who came from C++ and Java programming in the past. I like writing
programs in the C++ and Java style syntax, and since so many other
languages use a similar syntax, I don't see any reason to learn the
nuances of mxml, unless I was getting paid to do it. As far as I
can tell there is no benefit.
I hate using Flash to write flash apps as well, I feel like
they become messy and confusing, especially when trying to write an
OOP application. I only use it if I want to move an object in a
very specific way and can't do it with the Tween methods. -
Javac : command not found ?? A simple question.
Hello.
I need to somehow tell linux where to find javac so that I don't need
to type in /usr/local/jdk1.4/javac HelloWorldApp.java every time I need
to run javac. I have seen how to do this in windows but I don't know how to do it in Linux
I know it's a simple question, I'm just new to Linux.
Your help is appreciated.The answer depends on the shell you use.
The default on linux is bash, so do this: In your home directory there is a file with the name .bashrc. Commands in that file are performed every time you start the shell.
In that file, add the command "export PATH=/usr/local/jdk1.4/bin:$PATH". Then "source .bashrc" so that the change takes effect. You can verify that the directory has been added with "echo $PATH".
If you want to set the path for all users and not just yourself, make the change in the system startup files. This depends on your distro; the right file might be /etc/profile or /etc/profile.local or /etc/bashrc. -
Hi,
i have a simple question. Is it wise to change our actual import scenarios for input data from systems out of sap to XI?
Today we have the scenario that data from outer systems will send per ftp to a special directory. After that a report will transform the data into a batchinput. The btci will send per rfbibl into the system. Now we have a huge number of such reports. Will it now be better to change to XI, which we use perhaps for MDM?
Xi could take the file from ftp-srever maps the fields an will send per bapi to sap.
Is it a quite simple scenario or is batchinput still the better way.Hi,
If you have a scenario where you have different file formats , which needs to be converted and then send to different systems based on some conditions , then suggested is XI usage.
However, also if you already have XI installed and running for the MDM system , then you can think of routing all messages through XI. It may make sense to use one system for all routing and data conversion puposes.
Hope this view helps.
Cheerio,
Disha -
Hi all,
I think this is a simple question but new to me.
while configuring statspack on system i found that after running the spcreate.sql package we need to login to sql*plus using perfstat/pwd and then execute statspack.snap. What does this statspack.snap contains. whether it is a package which i can get in any oracle directory or i have to create such file. If i have to create then what will be the content of that.
Thanks
SwadhinHI, Ravi,
Question is Simple,.
connected / as sysdba
then I created a tablespace STATS datafile size 60m,
then i connected to sysdba user,.( Note I am already connected to sysdba)
and i try to run the script spcreate.sql,.
it is not happening,.
when i give @e:\oracle\ora90\rdbms\admin\spcreate.sql
if i give this i am not able run the script., after 1 or 2 seconds it will exit from sql mode.,
please guide me wat is the issue.,
tempfile size is 100m,.
Note : I am working all things in sysdba user only,.
: IF A PERFSTAT user is not created how u going to connect as perfstat/password., (Through spcreate.sql)
While u running a script it will create an user perfstat for ur reference., Ravi.,
I think some other issue is there please let us know, What is exact issue,. guide me,.
N Anand
[email protected] -
This might be a simple question. On those sites that do not differentiate between CRT, laptop, tablet etc. such as an iPad Mini and using the Facebook site fir example when going to post a comment and you do not have a enter button on the IPad and the speed is slow how do you get your comments to post if we do not have a enter button?
<Email Edited By Host>I don't have facebook so I cannot answer but for your personal security, I have asked the hosts to remove your e-mail address. It is very unwise to publish this.
-
A simple question on random number generation?
Hi,
This is a rather simple question and shows my newbieness quite blatantly!
I'm trying to generate a random number in a part of a test I have.
So, I have a little method which looks like this:
public int getRandomNumber(int number){
Random random = new Random(number);
return random.nextInt(number);
}And in my code I do int random = getRandomNumber(blah)...where blah is always the same number.
My problem is it always returns the same number. What am I missing here. I was under the impression that nextint(int n) was supposed to generate the number randomly!! Obviously I'm doing something wrong or not using the correct thing. Someone please point out my stupidity and point me in the right direction? TaI think the idea is that Random will generate the same pseudo-random sequence over and over if you don't supply a seed value. (The better to debug with, my dear.) When you're ready to put an app into production, the seed value should be the current system time in milliseconds to guarantee a new sequence with each run.
Do indeed move Random outside the loop. Think of it like a number factory - instantiate it once and let it pump out the random values for you as needed. -
A simple Question about % in CR Chart!
Hi, I have another simple question.
When i use SQL to storage data and wanna Crystal Report to display the data in chart using %
which data type should i use?
float or string?
and I found when i use 0.12 as 12% in database , It could not display in Crystal Report line chart normally.
What should I do??
Please Help!!!
Thank you VERY MUCH!!!If you have the datatype as string from your database then try adding the string field as a summary field in chart and select maximum instead of count and if you have them in number format then you can directly select the percentage in chart.
Regards,
Raghavendra -
Simple question about generate proxy
Hi guys...
This is a simple but a truly simple question....
When trying to create a proxy from our messages interfaces using SPROXY, i'm not able to get the Software component versions that were used from the sld...
Do I have to export them? Or import them?Hi Goncalo,
Check if it helps...
Re: SW component version not visible in SPROXY
Regards
Anand -
Simple question: I want to use iCloud as a back up disk for my documents folder. How can I do this? If I cannot do this, why am I paying for access to "the cloud?"
iCloud does not provide general file storage or backup, so you cannot back up your Documents folder using it. You will need to find a third-party alternative - this page examines some options (some are free):
http://rfwilmut.net/missing3
iCloud at basic level, with 5GB is storage, is free: you only pay anything if you want to increase the storage space. -
Simple question about JAVA path
Hi. I have a simple question , but I spent several hours trying to find an answer.
How do I know the location of the java executable which is used by Concurrent Manager.
I already know that running which java under application user will not give me the correct answerMaybe you can try like this:
public String getPath(){
Class cls=getClass();
String className=cls.getName();
String packageName=cls.getPackage().getName();
System.out.println(className);
System.out.println(packageName);
String newClassName=className.replaceAll("\\.", "/");
String resouceName=newClassName+".class";
System.out.println(resouceName);
URL url;
url=cls.getClassLoader().getResource(resouceName);
String path="";
path=url.getFile();
return path;
} -
I downloaded a You Tube downloader, and expected an icon to come up when You Tube was playing, according to a friend's advice.
Since this didn't happen I assumed the download didn't work, or was an old version that doesn't work anymore. I wanted to just get rid of it and try another downloader.
I went to Tools--> Add-ons--> and clicked on the downloaded software and saw the 2 options [Disable] and [Uninstall]. The terminology is unclear, as I've always thought once software resides on your computer you can install it or uninstall it without erasing it from the computer.
A simple question that seems obvious except to someone who wants to be very precise and sure. Basically "does [Uninstall] mean erase from the computer"?
ThanksWith Firefox extensions (Tools > Add-ons > Extensions) you have two possibilities. You can disable an extension if you do not want to use it now, but want to keep it. Or you can uninstall an extension and remove it from the computer. Note that uninstalling an extension still leaves prefs in about:config (prefs.js) and possibly files in the profile folder that will be reused in case you decide to reinstall an extension at a later time.
See also http://kb.mozillazine.org/Uninstalling_add-ons -
Compilations are breaking my heart-simple question...
OK folks, this is a simple question - so why can't i find a clear answer anywhere? I am running Itunes 8, Win XP, been running Itunes for my music for about 4 years.
Current setup 3 users running Itunes on same pC.
My problem is when I browse my lbrary each song in my compilations are showing upas different albums e.g. "O Brother where art thou" has 14 different "albums" as do some home-made compilations I have been given.
"group compilations when browsing is selected" but obviously isn;t working
It's obviously simple but not to me...help
Thanks
Message was edited by: munstershugYou mention enabling the iTunes option to *Group compilations when browsing*, but have you also set the *Part of a Compilation* flag to Yes for each track of your compilations? See my recent post on Grouping Tracks Into Albums, in particular the topic One album, too many covers.
tt2
Maybe you are looking for
-
Afraid to install iTunes 10.5
The last time I did a iTunes UPGRADE my audible.com AudioBooks stopped working and I had to contact tech support and get support on resolving the issue. I completely forgot the solution that I did as it was not on their website, and it even baffled t
-
After installing Adobe Premiere Pro product CS6 in the program is not active PlayBack
After installing Adobe Premiere Pro product CS6 in the program is not active PlayBack button setting when creating sequence. Windows 7 64-bit. Intel Xeon 2, RAM 12 MB. Mxo2
-
Imported Video on a Single Frame
Well, I imported movie speccifically a .FLV and when it imports, the whole movie sits on the timeline under the first frame. Is there any way I can get this movie to be expanded and take up the correct amount of time on the timeline? Example: If the
-
Easiest speedup--more RAM, or faster HD?
I recently got a stock 2GHz C2D Macbook--80 GB 5400 RPM HD and 1 GB memory. If you could only upgrade one, which would see a better speed boost: up the memory (to 1.5 GB using unmatched RAM), or install a 7200 RPM HD (remain at 80 GB)? 95% of the tim
-
my iphone wont recieve calls and i checked and its not in airplne mode and do not disturb is off and people have told me that its like ive declined there calls or blocked them and i checked and have not blocked anyone please help