Java (JMX) vs WLST (Please Reply.. Its Urgent!)
HI,
I know that there are two ways to admin weblogic server. One way is by WLST scripts which we write in WLST console. Second way is by JMX which we write in JAVA language.
I know that java language gives more flexibility but still all the scripts present in my companies Weblogic servers are WLST scripts.
Can anyone tell me about all the benefits and advantages I can have if I change them to Java (JMX) code.
One of the Flexibility is that I can implement multithreading and start multiple AdminServer (in multiple domain) at same time.
Thanks
Nitish Kumar
Doublepost: http://forum.java.sun.com/thread.jspa?threadID=5192841
Crosspost: http://forum.java.sun.com/thread.jspa?threadID=5192927
Like I said in your former topic: just debug it. Run the debugger or put some simple System.out.println() lines to check if the array has a length, if the array elements are not null, if the final SQL statement is correct, etcetera.
By the way, with putting pressure by shouting "please reply its urgent" you don't gain that much respect from our side. Some will refuse to reply. Urgency is your issue, not ours.
Similar Messages
-
it is only wokring when i only assign value to sub1 variableassign
<html>
<body>
<%@ page language="java" import="java.sql.*" %>
<%
String[] list=request.getParameterValues("list");
// String list=request.getParameter("list");
int i;
String sub1;
for(i=0;i<list.length;i++)
try
sub1=list;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:dsn1","","");
Statement stmt=con.createStatement();
stmt.execute("delete from mes where sub='"+sub1+"'");
out.println(sub1);
stmt.close();
con.close();
catch(Exception e)
{out.println(e);}
%>
Click here
</body>
</html>Doublepost: http://forum.java.sun.com/thread.jspa?threadID=5192841
Crosspost: http://forum.java.sun.com/thread.jspa?threadID=5192927
Like I said in your former topic: just debug it. Run the debugger or put some simple System.out.println() lines to check if the array has a length, if the array elements are not null, if the final SQL statement is correct, etcetera.
By the way, with putting pressure by shouting "please reply its urgent" you don't gain that much respect from our side. Some will refuse to reply. Urgency is your issue, not ours. -
Failed to initialize the orb--please reply its urgent
hi im using a stand alone java application to access a jndi data source configured on websphere 6.1
im getting the following error
failed to initialize the ORB...
most of the solutions i got suggest to change from sun jdk to ibm jdk.BUT BUT how do we do that and what are the steps to be followed.
he code im using is given below:
//WebsphereJNDI.java
import java.sql.*;
import java.util.*;
import javax.sql.*;
import javax.naming.*;
import javax.rmi.*;
public class WebSphereJNDI
private String websphere_server;
private String jndi_datasource;
private String sql_query;
WebSphereJNDI(String serverpath, String jndiname, String query)
websphere_server = serverpath;
jndi_datasource = jndiname;
sql_query = query;
public ResultSet get_data() throws Exception
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.websphere.naming.WsnInitialContextFactory");
env.put(Context.PROVIDER_URL, websphere_server);
InitialContext ctx = new InitialContext(env);
DataSource ds = (DataSource) ctx.lookup(jndi_datasource);
Connection conn = ds.getConnection();
Statement stm = conn.createStatement();
ResultSet res = stm.executeQuery(sql_query);
// moving cursor to first row
res.next();
return res;
// ResultSetTester.java
import java.sql.*;
import java.util.*;
import javax.sql.*;
import javax.naming.*;
import javax.rmi.*;
public class ResultSetTester {
public static void main(String[] args) throws Exception {
WebSphereJNDI test = new WebSphereJNDI(
"http://hostname:port no.", "jdbc/mydatasource",
"SELECT * FROM pubs.dbo.authors");
System.out.println(dump_data(test.get_data()));
public static String dump_data(java.sql.ResultSet rs)
throws Exception {
int rowCount = 0;
String result = "";
result += "<P ALIGN='center'><TABLE BORDER=1>";
ResultSetMetaData rsmd = rs.getMetaData();
int columnCount = rsmd.getColumnCount();
// table header
result += "<TR>";
for (int i = 0; i < columnCount; i++) {
result += "<TH>" +
rsmd.getColumnLabel(i + 1) + "</TH>";
result += "</TR>";
// the data
while (rs.next()) {
rowCount++;
result += "<TR>";
for (int i = 0; i < columnCount; i++) {
result += "<TD>" +
rs.getString(i + 1) + "</TD>";
result += "</TR>";
result += "</TABLE></P>";
return result;
Im an amateur...Please help its urgentThanks Anuj.
We use OSB apps (exported as jars only).
We place the jars in domain/lib to be available for all services in this domain.
Is there another place we can put our jars in it?? and how can we solve the problem of soa infra with using Spring 3.2 ??
Thanks in advance. -
Sql Query . Please help its urgent.
Suppose in table EMP there are 2 columns (Roll_no and Name)
Roll NO Name
00001 A
00002 B
00010 X
My requirement is to trunc preceding Zero's. For ex : for Roll no: 00001 the output should be 1 and for 00002 --> 2 .
Please help its very urgent.try this
select
to_number(roll_no) roll_no,
name
from
emp;
Regards
Singh -
Nobody answering my question,Please reply its very urgent???
Hello Experts,
I want to fecth the Supplier information from SAP server to PDM server (non sap) using RFC call.But the LFA1 have some customised fields..
1) I want the RFC or BAPI which Gives the supplier details with customised fields in LFA1.
2) How Can I code In the PDM server??I mean How can I call In the PDM script??
Please send me how to write a script and code of the script??
I know that Bapi_vendor_getdetails,but it will not give the customized LFA1..
Please Help...
Thanks In Advance
Preethihi,
try fm TABLE_ENTRIES_GET_VIA_RFC
look here
/people/gregor.wolf3/blog/2004/09/05/access-sap-r3-from-external
A.
Message was edited by:
Andreas Mann -
Sql tuning advisor is timing out please hel its urgent
when i schedule sql tunning addvisor its timing out.
i trried ti increase the time limit then also its timming out
Please help me in resolving thisuser975118 wrote:
I came across this old forum while searching for advice on a similar issue.
I've got to ask, why are you so rude?
The reply:
This is a volunteer forum where paid professionals offer up their free time to assist others.
Do you honestly think you have a right to ask them to drop what they are doing and give urgent attention to your problem?
If your problem is truly urgent, file a Service Request (SR) with Oracle Support - that is what paid support is there for.
The question didn't justify this type of response. Where does the person ask you to drop what you are doing? This is just a post for assistance, how does it oblige you to interrupt your current work for a response? The "Do you honestly think you have the right" response is extremely overblown. I only comment because I see this frequently in database forums, someone asks a simple question and those holding knowledge to assist either reprimand the person or reply in the rudest way possible. If you want to help someone, just help them. If not, don't even reply, go about your business and don't make their day any tougher than it already is for no good reason at all.Thank you for your invaluable contribution to the forum. It is interesting that you think it is wrong to point out that someone is being rude and abusing the terms and conditions of these forums, yet you think there is nothing wrong with berating the forum volunteers for trying to discourage this unacceptable and abusive behavior?
I am not sure how you reconcile these illogical and contradictory opinions.
http://www.oracle.com/html/terms.html
>
4. Use of Community Services
Community Services are provided as a convenience to users and Oracle is not obligated to provide any technical support for, or participate in, Community Services. While Community Services may include information regarding Oracle products and services, including information from Oracle employees, they are not an official customer support channel for Oracle.
You may use Community Services subject to the following: (a) Community Services may be used solely for your personal, informational, noncommercial purposes; (b) Content provided on or through Community Services may not be redistributed; and (c) personal data about other users may not be stored or collected except where expressly authorized by Oracle -
PLEASE HELP ITS URGENT (PROBLEM IN INCLUDE)
IF I EXECUTE IN 4.6C ITS NOT GIVIN NY ERROR BUT THE SAME CODE IN 6.0 IS GIVING ERROR
IF NOT ( ( text_flag = 'X' AND tcode_level > 0 ) OR
( text_flag_level0 = 'X' AND
tcode_level = 0 AND ) ).
ERROR IS:
Incorrect logical expression: "AND" or "OR" must be preceded by an
expression (e.g. a comparison).
PLZ HELP ME AS IT IS VERY URGENT.
THANX IN ADVANCEHi anit,
1. minor mistake
2. remove this AND in bold.
IF NOT ( ( text_flag = 'X' AND tcode_level > 0 ) OR
( text_flag_level0 = 'X' AND
tcode_level = 0 <b>AND</b> ) ).
regards,
amit m. -
Problem with client side printing, please help its urgent
hi ,
am using struts and jasper reports on my project, now i was having problem that whenever i try to print the report , the printer dialogue box was appearing on server machine, i want it on client end, how to solve this problem, please any one know help me, it was urgent,
my code was like this
JasperCompileManager.compileReportToFile("c:/report/test.jrxml","c:/report/test.jasper");
JasperPrint jasperPrint = JasperFillManager.fillReport("c:/report/test.jasper"),parameters,con);
List l=jasperPrint.getPages();
if(l.size() != 0){
jasperPrint.setOrientation(JasperReport.ORIENTATION_PORTRAIT);
jasperPrint.setPageHeight(877);
jasperPrint.setPageWidth(963);
JasperPrintManager.printPages(jasperPrint,0,l.size()-1,true);
}thanks in advance,Double post.
-
Iphone 5 troubles, please help, its urgent!
I got this new iphone 5, but i wanted my music and photos to go on it from my ipod 4th generation, so i connected my ipod to my computer and itunes and backed it up, when i plugged in my iphone, its said to back it up (hoping my files would transfer like it intended it would, i did so) .. except it turned my iphone 5 into an ipod, they layout was the same, the settings were the same, please i need help and i want to see my iphone back to the way i had it when i got it earlier today. I've tried all the resets and it still won't work
Download the ipsw for your iphone, then open itunes and press shift (on windows) or option (on Mac), while holding that button click on restore, then you can selecte where to restore from, select the file you just downloaded, make sure is the latest version, and check if your phone is CDMA or GSM before downloading the file.
You might be able to find the ispw on google -
Please Help its Urgent ***POPUP at the time of MIGO Posting*****
Hi all,
Please help me on this issue,
I want to display one popup at the time of migo posting and that popup ask to user that " How much labels you wants to print?" and in next of that i want one text box or input field in that user inputs the number of labels he wants to print.
I have tried using various POPUP functions but i have not got any FM which fulfill my requirement so please help me on this issue?
Kind Regards
Sudarshan GaikwadThe standart POPUP* function modules seem to either give an option to output descriptive text, or ask for a dictionary based field as an input. As you want both in one popup you may need to write your own custom pop-up.
Create a function group with a Z function module and add a dialog screen with the required text and input field to this function group.
Take a look at function POPUP_GET_VALUES as an example - A custom written one could be a lot simpler.
Then call this function from your user exit.
Andrew -
Balance leave carryfwd - Please reply me :: urgent
Dear Friends ,
Please help me to solve the below issue #
a) Carryforwrad leave from 2006 to 2007 - 10 leaves , used - 5
b) Annual Leave -10 leaves,used nothing.
in pe03 - LVMAX capping is 20 ( we can carryforward only 20 to next year ).
now the issue is .
1) as per the above scenario how many leaves will get carry fwd to 2008 by running the program RPTPBSR0 .
2) By end 2007, must clear 2006 ( carryfwd from 2006 to 2007 )annual leave and allowed to carry only 2007 balnce . how to clear.
3) what should i give in the parameter 'Quota type'
inthe program RPTPBSR0 .i am giving only 10(annual leave ) but it brings 11(carryfwd ) also .
please help .
Thanks,
Deeps.
Edited by: Deepika on Dec 30, 2007 8:06 AM
Edited by: Deepika on Dec 30, 2007 8:07 AMYou could try adding the filter then, if your using ADF this would be the following code:
<filter>
<filter-name>ADFBindingFilter</filter-name>
<filter-class>oracle.adf.model.servlet.ADFBindingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>windows-1252</param-value>
</init-param>
</filter>
You can change the encoding to any form you want. -
GIVE ME QUICK REPLY ITS URGENT.
hi,
Is there any performance problem if i keep select single <f1> from <table> into <itab> where <condition> in loop.plz give me example code if it is problem.
thanking you.
ex:
LOOP AT ITADR2.
SELECT SINGLE VKONT FROM FKKVKP INTO ITADR2-VKONTO
WHERE ADRNB EQ ITADR2-ADDRNUMBER.
SELECT SINGLE COKEY FROM EVER INTO ITADR2-COKEY
WHERE VKONTO EQ ITADR2-VKONTO AND COKEY IN S_COKEY.
IF SY-SUBRC EQ 0.
IF ITADR2-ADDRNUMBER NE ' '.
MOVE ITADR2 TO ITADR2FT.
IF ITADR2FT-TEL_EXTENS EQ 'SMS'.
ITADR2FT-MLIND = 'M'.
APPEND ITADR2FT.
ELSE.
ITADR2FT-MLIND = 'L'.
APPEND ITADR2FT.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.Hi,
select <f1> from <table> into <itab> where <condition>
if not itab[] is initial.
select VKONT FROM FKKVKP into table t_vkont for all entries in itab
WHERE ADRNB EQ itab-ADDRNUMBER.
SELECT COKEY FROM EVER INTO t_cokey for all entries in itab
WHERE VKONTO EQ itab-VKONTO AND COKEY IN S_COKEY.
endif.
Loop at itab.
read table t_vkont key ADRNB = itab-addrnumber.
read table t_cokey key vkonto = itab-vkonto.
Your logic if sy-subrc is true.
endloop.
Please reward if useful.
regards,
sachin -
RegEx Error for Huge File .. Please help , Its Urgent
Hi all,
I am getting following exception,
does anyone know about it
java.lang.IndexOutOfBoundsException: No group 1
at java.util.regex.Matcher.group(Matcher.java:355)
at java.util.regex.Matcher.appendReplacement(Matcher.java:585)
at java.util.regex.Matcher.replaceFirst(Matcher.java:701)
at XSLT_OnlyJava.<init>(XSLT_OnlyJava.java:84)
at XSLT_OnlyJava.main(XSLT_OnlyJava.java:93)
Exception in thread "main"
I am parsing huge file with regex and replacing some part
Thanks,
Vinayaksorry for late
This is my code
text = contents.toString();
String regex = "<tu.*?/tu>";
Matcher matcher = Pattern.compile(regex,Pattern.CASE_INSENSITIVE|Pattern.DOTALL).matcher(text);
while(matcher.find()){
tuvSegment = matcher.group();
String segRegex = "<seg>.*?</seg>";
Matcher segMatcher = Pattern.compile(segRegex,Pattern.CASE_INSENSITIVE|Pattern.DOTALL).matcher(tuvSegment);
if(segMatcher.find()){
SegVal = segMatcher.group();
String ReplsegRegex = "<seg />";
Matcher ReplsegMatcher = Pattern.compile(ReplsegRegex,Pattern.CASE_INSENSITIVE|Pattern.DOTALL).matcher(tuvSegment);
text = ReplsegMatcher.replaceFirst(SegVal);
The text string contains teh .tmx file
Thanks,
Vinayak -
and to randomly acces it...
If i read the file line by line using GZIPInputStream it takes lot of time...
My requirement is to pick some line (say 35000) randomly......
Please suggest any alternative.....use this code to unzip a .gzip file:
try {
// Open the compressed file
String inFilename = "infile.gzip";
GZIPInputStream in = new GZIPInputStream(new FileInputStream(inFilename));
// Open the output file
String outFilename = "outfile";
OutputStream out = new FileOutputStream(outFilename);
// Transfer bytes from the compressed file to the output file
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
// Close the file and stream
in.close();
out.close();
} catch (IOException e) {
} -
hi,
I have one issue i:e I have one selection screen with fields company code and plant.If i give plnt as m001 and company code as 'renl' then display two more selection screen input fields verna and ' vernr' and after giving this i have to display all these things .how can i hide these 2 fields on selection screen?any body send me sample code.plzzzzzzzz.Hi
See the sample code
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: pa_file TYPE rlgrap-filename MODIF ID abc,
pa_lifnr TYPE lfa1-lifnr MODIF ID abc,
pa_vkorg TYPE vbak-vkorg MODIF ID abc.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS: pa_kunnr TYPE vbak-kunnr MODIF ID def.
SELECT-OPTIONS: s_lifnr FOR gs_lfa1-lifnr MODIF ID def,
s_date FOR gs_lfa1-erdat MODIF ID def,
s_augru FOR gs_vbak-augru MODIF ID def,
s_vbeln FOR gs_vbak-vbeln MODIF ID def.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pa_upd RADIOBUTTON GROUP g1 USER-COMMAND uc01 DEFAULT 'X'."#EC *
SELECTION-SCREEN COMMENT 3(60) text-004 FOR FIELD pa_upd.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN BEGIN OF LINE.
PARAMETERS: pa_rep RADIOBUTTON GROUP g1 ."#EC *
SELECTION-SCREEN COMMENT 3(60) text-005 FOR FIELD pa_rep.
SELECTION-SCREEN END OF LINE.
SELECTION-SCREEN END OF BLOCK b3.
IF pa_rep EQ gc_x.
LOOP AT SCREEN.
IF screen-group1 = gc_abc.
screen-input = gc_zero_num.
ELSEIF screen-group1 = gc_def.
screen-active = gc_one_num.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
ELSEIF pa_upd EQ gc_x.
*For Reprocessing
LOOP AT SCREEN.
IF screen-group1 = gc_def.
screen-input = gc_zero_num.
ELSEIF screen-group1 = gc_abc.
screen-active = gc_one_num.
ENDIF.
MODIFY SCREEN.
CLEAR pa_upd.
ENDLOOP.
ENDIF.
REPORT zrich_001.
PARAMETERS: p_rad1 RADIOBUTTON GROUP grp1 DEFAULT 'X'
user-command chk,
p_rad2 RADIOBUTTON GROUP grp1.
SELECT-OPTIONS: s_datum1 FOR sy-datum MODIF ID d1,
s_datum2 FOR sy-datum MODIF ID d2.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF p_rad1 = 'X'
AND screen-group1 = 'D2'.
screen-active = '0'.
ENDIF.
IF p_rad2 = 'X'
AND screen-group1 = 'D1'.
screen-active = '0'.
ENDIF.
MODIFY SCREEN.
ENDLOOP.
Reward points for useful Answers
Regards
Anji
Maybe you are looking for
-
How do I upload photos to Facebook in High Resolution using my iPhone. Do I need an app? Which ones are best for the job? (I know how to do it on a PC )
-
ISight suddenly not working in iChat
Hi, My iSight has always worked and i've never had a problem until just now. I just got off a Skype video call with a friend on a PC. my iChat was running and now I realize that it only has the 'phone' icon next to my picture. I checked the preferenc
-
How to Copy from Billing document F2 to Credit or Debit memo?
Hello, I know the Menu path for copy control of billing document to billing document which is as follows SPROIMG-Sales and Distribution-BillingBilling Documents-Maintain Copy Control of Billing document--Copy COntrol: Billing Document to Billing Doc
-
Time format in 'Write To Measurement File' express vi
Hi, I'm using the 'Write To Measurement File' express vi to save data acquired using a PCI-6221 board and the DAQmx vi s. The acquisition is continuous. When I set the 'number of samples per channel' property of the DAQmx Read.vi to -1 (ie, read all
-
Why MBP will change back to 32 bit from 64 bit?
While use command sudo nvram boot-args="arch=x86_64″, and reboot, I found 64 bit support YES in about, but sometimes later, check about again, 64 bit support is NO, I do nothing, just play music in iTunes. 2010 Mid 13' MBP, 10.6.8