New bie to JMX
Hi Folks,
I am a new bie to JMX , Please suggest me some url's where I can explore it , which provides some sample programs which can clear my understandings quickly..!!
Hi there,
start from the official java documentation for JMX here
http://docs.oracle.com/javase/7/docs/technotes/guides/jmx/index.html
It contains plenty of examples for you to try on
Regards
Similar Messages
-
New bie needs help on how to start...
Hi there java gurus,
I am very new to java & I have a little knowledge on the java architechture. I have some experience in web scripting languages like PHP, ASP & javascript/vbscripts etc.
I want to master java. I want to be able to create java GUI applications that connects to database and do the required stuffs. I have little experience on creating java applets.
But now I want to start with creating a GUI application to store my personal accounts. Later I want to convert that into a commercial one.
My questions are:
What free database I can use for my application?
Developing GUI application in java is advisable? ie is java GUI faster to develop than developing in MS VB & VB.net?
Can java code be protected? or it is easy to decompile? A friend of mine told something about decompiling jars.
I understand that the nice thing about java is, it is multi platform & a well organised programming language.
Please give me whatever advise is necessary for this new-bie to get going quickly.
Note: I have just installed netbeans as java development IDE which comes with the latest java. Is this a good choice or there are any other choices?
Thanks
HameedWhat free database I can use for my application?You can use any database which support JDBC. I know Mysql and Postgresql supports it.
Developing GUI application in java is advisable? ie
is java GUI faster to develop than developing in MS
VB & VB.net?I dont think GUI programming is easier than VB in Java although i want to. There are some layouts (gridbaglayout) to specify the positions of your components in a platform independent way but they are not much easy.
You have two choice (i think) if you dont want to work with those managers:
1. You can set your layout to null and use absolute positions of the components to layout as in VB. There are some specific layouts in some IDEs to do this too. (AbsoluteLayout in Netbeans)
2. You can wait for the new layout manager which is very powerfull for designing form like GUIs as far as i see. There is a java.net project for it. Unfortunately i dont remeber its name.
In fact i am using Matisse(http://www.netbeans.org/kb/articles/matisse.html) in development builds of Netbeans. I reccomend you to use it for just practicing since you will not be able to open the forms designed with experimental Matisse in the stable release!
>
Can java code be protected? or it is easy to
decompile? A friend of mine told something about
decompiling jars.Yes the pure java classes can be decompiled perfectly. You need to use an obfuscator if you want to protect your code.
Here is an example: http://www.retrologic.com/
Note: I have just installed netbeans as java
development IDE which comes with the latest java. Is
this a good choice or there are any other choices?I think it is the best choice. But Eclipse and IntelliJ IDEA are also widely used.
Thanks
HameedGood luck. -
Hi, I am new in JSP.
Currently I am a C# programmer (ASP.net) and want to migrate to Java.
Is there any free tutorial for beginner?
Oh, one thing in ASP.net, I use Model View Controller as my architecture. But dunno if jsp support this model. Any suggestion what kind of architecture is suitable for JSP?
Thanks in advance
YonscunI am sorry there was a typo in my title.
The right one is
JSP New Bie
Sorry for typo :P -
New Bie - Starting with JSP and Servlets
Hello fellow members,
It's my pleasure to be a part of such a wonderful forum. Today, I am here to learn JSP, Servlets, and related tech/frameworks.
I'd be thankful to any member who can guide me in the right direction.
I have good working knowledge of Core java.
I have a licensed copy of weblogic 9.2, though I have no idea how it works :).
Looking forward for some good pointers to start with. If anyone can hand hold me and tell me exercises I should do every day, there is nothing like that. I can dedicate in excess of 6 hrs daily to learn these new technologies.
Thanks in advance,Sonia_31 wrote:
I planned to start with tomcat. Tomcat is a good choice.
I am using my cousins laptop which already has BEA weblogic 9.2 installed. He used to work as software engineer. So I thought it was better start with weblogic, than going for something else.Apparently his company is using Weblogic.
As I am serious about the whole thing weblogic is a better option. You have application servers and application servers. When I say that Weblogic is commonly only used in "real" production environments, I do not mean that "real" production environments only use Weblogic. You can use any self-respected application server to your taste. Either freeware or payware. That you're using a payware one to start with just made my eyebrows raise.
Looking for some info to get started. I have downloaded the pdf you have mentioned and started studying. I'll post my questions soon.Good luck. -
New Bie Question: Emulators and Application Installation on Mobile
Hello, I am new to J2ME and doing requirement analysis. Client wants that the application should run on following mobile phones:
Audiovox VI600
LG 5350
Samsung VI660
Samsung A500
Samsung A600
Samsung N400
Samsung VGA1000
Samsung VI660
Samsung VM-A680
Sanyo 4900
Sanyo 5300
Sanyo 6400
Sanyo PM-8100
Sanyo PM-8200
Sanyo RL2000
Sanyo RL2500
Sanyo VM-4500
My question is, from where to get emulator for these phones ? Also, when I am done with J2ME application development, how would I get that application installed on the above listed phones ? Do I need to buy any connectors from PC-to-Mobile to transfer the application ?
Any help would be greately appreciated.
Thanks,
LomeshHi,
You can try with device manufacturers website, they will provide the emulators. after completing the development process you can upload the application to the device through the following methods.
1. Infra red
2. OTA
3. cable connection.
Check your device manual to find out the supported feature. -
Weblogic 8.1 -- New bie
Hi Just I have installed weblogic 8.1 evalution version.
Can u pls help me how to start and stop it? In which folder I have starter?
Where can I keep my web application? can I keep my folder directly in weblogic81 folder?
Thanks,
MuraliSup, im also new to weblogic. i suggest you start by starting the weblogic workshop. go to tools/weblogic server/configuration wizard. select create a new weblogic configuration and click next. i suggest u choose a basic weblogic server domain and click next again, u can then either choose express or custom on the next screen. ill assume that you choose custom. click next, enter the admin user name and password and a description. click on next, you can choose whether you want to use Sun's SDk or bea's Jrockit sdk or any other. i suggest that you stick to suns because its recommended for development. click next. this is the final page for the weblogic configuration, choose a configuration name and also click on the browse button to choose the location of the folder where you want your configuration files to be sored. i suggest u select an easy to locate location. click on create and the 1st part is complete. Now u have two options when it comes to creating applications and deploying them and starting the server. The 1st approach is using the weblogic workshop IDE to build your application (eg. jsp pages), you can create a new application by going to file/new/application. follow the instructions, chose a location to stor you application, choose a name for it and where it seys server, click on browse and select the server u just made a few mins ago. then click on create. yo can modify your application using the IDE. when you start the server using the IDE, it is automatically deployed. to start the server, go to Tools/Weblogic Server/StartWeblogic Server. after the server has started running, you can test your application with your browser. NOTE: the default http port is 7001. The other way you can deploy your applications is by manually starting the server, your can do this by going to the folder which you chose to save your configuration files. there should be a file named StartWebLogic.sh (linux) or StartWeblogic.bat (windows). run the file to start the server. to deploy your application, you can open the admin console tru your browser. the url by default is http://localhost:7001/console
enter the user name and password that you used when you were configuring the server. click on the application link on the right frame under the YOUR DEPLOYED RESOURCES heading. you will see the current applications running on your server and to deploy a new application, click on Deploy new application. browse to locate the application and click on condtinue. the application does not need to have been built using the weblogic workshop, it can even be a ear file. on the next page, enter the name of the application and then click deploy. you can now view your application tru ur web browser. Hope my answer helps a little. im also new to weblogic. CHEERS -
New Bie help with MySQL & servlet
Hi,
I am trying to execute a small action... some how my code does not work. All it shows is a blank page with no error....
Can any one help me to optimize this code so that it works?
* To change this template, choose Tools | Templates
* and open the template in the editor.
package oneword;
import com.mysql.jdbc.Connection;
import com.mysql.jdbc.Statement;
import java.io.IOException;
import java.io.PrintWriter;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.util.Random;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Register extends HttpServlet {
private String name = null;
private String emailID = null;
private String nameDB = "jdbc:mysql://localhost:3306/register";
private String mysqlUser = "root";
private String mysqlPassword = "abc";
private String mySqlJdbcDriver = "com.mysql.jdbc.Driver";
private Connection conn = null;
* Processes requests for both HTTP <code>GET</code> and <code>POST</code> methods.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
protected void processRequest(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException, ClassNotFoundException, SQLException {
response.setContentType("text/html;charset=UTF-8");
PrintWriter out = response.getWriter();
name = request.getParameter("_name");
emailID = request.getParameter("_email");
try {
Random generator = new Random();
int activationPassword = generator.nextInt(100000);
Class.forName(mySqlJdbcDriver);
conn = (Connection) DriverManager.getConnection(nameDB,mysqlUser,mysqlPassword);
Statement statement = (Statement) conn.createStatement();
String sqlCommand = "INSERT INTO userdata(name, email, validation, " +
"banned, activatepassword, password)values("+name+", "+emailID+", 0, 0,"+activationPassword+", 'ddd')";
statement.executeQuery(sqlCommand);
out.println(name);
out.println("<br>"+emailID);
out.println("rows affected:");
conn.close();
} catch (SQLException ex) {
// handle any errors
System.out.println("SQLException: " + ex.getMessage());
System.out.println("SQLState: " + ex.getSQLState());
System.out.println("VendorError: " + ex.getErrorCode());
} finally {
out.close();
// <editor-fold defaultstate="collapsed" desc="HttpServlet methods. Click on the + sign on the left to edit the code.">
* Handles the HTTP <code>GET</code> method.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (ClassNotFoundException ex) {
Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);
} catch (SQLException ex) {
Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);
* Handles the HTTP <code>POST</code> method.
* @param request servlet request
* @param response servlet response
* @throws ServletException if a servlet-specific error occurs
* @throws IOException if an I/O error occurs
@Override
protected void doPost(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
try {
processRequest(request, response);
} catch (ClassNotFoundException ex) {
Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);
} catch (SQLException ex) {
Logger.getLogger(Register.class.getName()).log(Level.SEVERE, null, ex);
}Thank youA blank page usually indicate that an exception is been thrown but cannot be displayed because the response is already started/committed/processed. Just read the appserver's logs as usual for the details.
Your servlet class does way too much. You're mingling all the processing steps together in one class. This is simply asking for trouble. Use a DAO class for accessing the DB. Use a JSP file for presentation. Use a business object to process the input/output data. Use a servlet for controlling the request. To start off, you may get some ideas out of this article and the JSP/Servlet follow-up: [http://balusc.blogspot.com/2008/07/dao-tutorial-data-layer.html].
Oh, your JDBC code is not safe against SQL injection attacks either. -
Hello.
I am pretty new to B1i. I could sucessfully install the B1i in the system but facing problems in configuring it.
I am entering the details of B1i instance, but when i test the connection i get this error...
<b>
com.sap.b1i.xcellerator.XcelleratorException: XCE001
Nested exception: java.lang.Exception: com.sap.b1i.xcellerator.XcelleratorException: XCE001 Nested exception: java.lang.RuntimeException: java.lang.ClassNotFoundException: com.sap.smb.sbo.api.SBOCOMUtil
</b>
problem is in the details i entered or installation of any of the components (like JCO etc..)
thanks,
Lakshman.Lakshman,
Did you install the DI API (JCO) for the SAP Business One client? Also, look at the other posts in this forum as there are many on Business One to Business One integration using B1i as this is not a "Business Scenario" that come "out-of-the-box". You should also look at these articles as it will they will assist you with the customizations and setup that you will need to do for B1i in General.
SAP Business One Integration for SAP NetWeaver (B1iSN) [original link is broken]
HTH,
Eddy -
i am die hard fan of flash.....and admiring it 4 quite a long
time.....
i hv looked for some books and tried some of them....but none
of them helped that lot.....
can u please suggest me the road to flash learning....i want
to learn it....
actually i want to do web design with flash......
plzz
reply soon....take a look around www.flashkit.com or www.utrashock.com
download some of
the .fla files and work thru' the tutorials. Don't forget
that the help menu
is one of the most important aspects of any piece of
software.
Then there's Google
http://www.google.com/search?q=flash+tutorials&rls=com.microsoft:*:IE-SearchBox&ie=UTF-8&o e=UTF-8&sourceid=ie7&rlz=1I7ADBF
Have fun, play about with it. The more you do it the more fun
it becomes.
Learn Photoshop as well. They go really nice together.
"akshaysaxena" <[email protected]> wrote in
message
news:f3oe0k$k02$[email protected]..
>i am die hard fan of flash.....and admiring it 4 quite a
long time.....
>
> i hv looked for some books and tried some of them....but
none of them
> helped
> that lot.....
>
> can u please suggest me the road to flash learning....i
want to learn
> it....
>
> actually i want to do web design with flash......
> plzz
>
> reply soon....
>
> -
Datagaurd..question (new bie)
Hi everyone,
I am trying to practice datagaurd (how to implement it). Can i implement the datagaurd in the same oracle home?
I mean..
datagaurd implementation with ..
/same oracle home for both production and stand by database
/and that 2 databases on the same machine
(just for practicing ..to see how the archives apply from production to standy)
could some one suggest me some simple docs on these please....
sorry if this is a easy question to ask in this forum..
Thanks
phaninothing tricky within same box there is no different steps for DG implementation within the same node or diffrent node,excpet in 9i there you have to specify lock_name_space parameter when you want to open a copy database with the same DB_NAME on the same machine as the source database.
but in 10g new DB_UNIQUE_NAME attribute is introduced to clearly identify the relationship between a primary and standby databases.
Khurram -
Hi,
I am a newbie - found some books on Flash - did the
examples. But i am working on an elearning proj - want to create
some quick lessons in Flash - Are there any places to look out for
.fla files that i could see , edit and learn from?
Creating layers , for 10/15 slides is difficult to undo,redo
while adjusting the timing , effect etc
Ones on Text.
Thanx in advance.
Regards,
ReshmaIn step 6 he clearly explains how to convert to a symbol -
then the effects become available for the
instance.
You would benefit greatly by hitting F1 (help docs) and
searching for animation, tweening, symbols,
etc...) learn the basics (will take an hour or less) and then
the Hillman Curtis example will be
even easier - but his tutorial really does explain everything
you need to know - perhaps you skipped
this step?
Chris Georgenes
Animator
http://www.mudbubble.com
http://www.keyframer.com
Adobe Community Expert
*\^^/*
(OO)
<---->
luwieus wrote:
> hi guys am new to flash n working on a small project of
converting text into a
> graphic object.however after doing so and creating my
tweens. i want to start
> animating it.however when i try to use the effects panel
in the properties
> inspector ,its deactivated.what do you think i need to
do to get it active.i am
> tryin out the hillman curtis project of macromedia
shockzone using flash 8
> please help.coz i want to learn: confused;
> -
hi ,
i am relatively newbie to ejb, i have been learing ejb for last week , having going through some stuff in ejb 2.1/3.0 versions i am relatively confused of difference ejb stuff here.
what is the possible better version to start the ejb with, and can someone tell me the some differences in ejb 3.0 and ejb 2.1 stuffs.
thanks in advance.If you're new to the technology you should definitely start with EJB 3.0. EJB 3.0 takes a POJO approach to writing ejb components so there are many fewer classes/interfaces to write and the rules for writing
them are much simpler than before. There is also a much better API for handling persistent data called
the Java Persistence API. Java Persistence API entities are not EJB components, but they can be
used from EJB components (session beans, message-driven beans) as well as from other Java EE
components.
The Java EE 5 Tutorial is a good place to start :
http://java.sun.com/javaee/5/docs/tutorial/doc/
We also have an EJB FAQ and some simple examples here :
https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
https://glassfish.dev.java.net/javaee5/ejb/EJB30.html
--ken -
New Bie Question: Doing Flex Salesforce integration for the first time
Dear Friends,
I want to connect to Salesforce using Flex API and I have tried two-three approaches but all in vain.
It give me an error 'INVALID_LOGIN: Invalid username, password, security token; or user locked out.'
PLEASE HELP ME TO FIX THIS .
Also, I would like the highlight the fact that my username and password work only for 'test.salesforce.com' and not for ' login.salesforce.com'. Could it be reason for login failure. I have used the token as suggested.
I have also tried setting different serverURL like ''serverUrl=https://test.salesforce.com/services/Soap/u/9.0 and https://login.salesforce.com/services/Soap/u/9.0 .
Below are two of the techniques I have used.
(1) Using AIR API.
For this I have done as mentioned in 'http://wiki.developerforce.com/index.php/Force.com_Flex_Quick_Start_Tutorial'.
(2) Trying to tun the below code, that I found in one of the quick start tutorial.
<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication
xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="
library://ns.adobe.com/flex/spark" xmlns:mx="
library://ns.adobe.com/flex/mx" xmlns:salesforce="http://www.salesforce.com/">
<fx:Declarations>
<salesforce:AIRConnection id="force"/>
<!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
<mx:DataGrid id="dgSolutions" right="10" top="10" left="10" bottom="10" />
<fx:Script>
<![CDATA[
import com.salesforce.AsyncResponder;
import com.salesforce.objects.LoginRequest;
import com.salesforce.results.LoginResult;
import com.salesforce.results.QueryResult;
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.rpc.AsyncRequest;
private function init():void {
var lr:LoginRequest = new LoginRequest();lr.username =
'myusername'; // I have given my username herelr.password =
'mypassword'; // I have given my password herelr.callback =
new AsyncResponder(loadGrid);force.login(lr);
private function loadGrid(lr:LoginResult):void {Alert.show(
'Hi');force.query(
"Select Id, FirstName, LastName From Contact",
new AsyncResponder( function (qr:QueryResult):void {dgSolutions.dataProvider = qr.records;
]]>
</fx:Script>
</s:WindowedApplication>
ANYHELP IN THIS REGARD WOULD BE REALLY APPRECIATED.
THANKS IN ADVANCE.do we need to go the server route to have all these features even though none of it will go though the internet?
"need"? no, but you might prefer to do so.
Let me explain.
First off, there's nothing in Mac OS X Server, per se, that says it's designed for internet-facing applications. Sure, some of the services are internet-leaning, but don't think that internet/non-internet is the deciding factor of whether to use Server over client.
The fact is that much of what you describe can be done via Mac OS X Client, but it can be done much easier with Mac OS X Server. You might find that the hours you save, and the productivity you gain far outweighs the cost of Mac OS X Server.
Case in point, you have three workstations, right? Is each one used by an individual? or are they shared?
If they're shared, would it be easier for any user to be able to log on at any workstation and get their normal desktop environment, preferences, etc? That's something that's easy to do with Mac OS X Server, but not via Mac OS X Client.
You've already touched on shared iCal and contacts, neither of which are part of Mac OS X client, so you'll have to decide how much they're worth to you.
At the end of the day, you'll have to decide for yourself. Of course, you could take the easy option and defer until Mac OS X 10.7 (Lion) comes later in the summer, in which case the server functions are included as optional installs for no additional cost (i.e. buy client and get the Server for free). -
Hi,
I am new to BOBJ.
Just want to ask a few general things :
1. Do BOBJ only provide front end tools like Bex tools ? Or, do BOBJ also have an underlying database so that can use as data warehouse similar to BW ?
2. Can we connect crystal report directly to ECC table ?
3. What is Universe for ?
Thank you.Hi,
1. Generell - yes. SAP BO doesnt has any datastorage solution. We use the DBs of the generell vendors
2. Yes
3. The Universe is a semantic layer between some of the BO Tools and your Datasource. For some Tools a Universe is required like f.e. WebIntelligence. For Crystal Reports a Universe is not needed.
Regards
-Seb. -
New bie problem System in read
freinds i recently downloaded an ebook n I HAVE 1 QUERY IF any of U COULD DEBUG THAT TOO I would REALLY BE A HAPPY MAN
friends WITH BELOW MENTIONED CODE, PROBLEM IS THAT WHEN USER ENTERS SUPPOSE 1,48 AUTOMATICALLY GETS ADDED TO IT N WHEN I SUBTRACT 48 FROM USERS RESPONSE,AGAINT THEN WHEN 48 IS ENTERED IT AUTOMATICALLY MAKES IT 4 WHICH IS KINDA GETTING ON MY NERVES
KINDLY HELP
class forex{
public static void main(String args[])
throws java.io.IOException{
int a,b;
int c;
//Clrscr();
System.out.println("enter any no &press enter \n");
c = System.in.read();
System.out.println("u entered\n"+c);
for(a=1;a<=c;a++)
for(b=1;b<=a;b++)System.out.print("*");
System.out.print("\n");
}c = System.in.read();This does not return the number the user entered. It returns the character code of the character that was entered (i.e., the ASCII code).
Please learn how to use your keyboard properly, do not type ALL CAPS and watch your spelling.
Maybe you are looking for
-
Problems with my computer (USB 3.0 and LAN)
Hi there, A few months ago i have built my own computer. I selected the parts and asked if it will work together with no problems. After I built it and installed Windows 8.1 I detected that almost everything worked. Only the USB 3.0 did not work prop
-
Migo on purchase order and wm tab
Hello When I receive goods on a purchase order in a wm managed storage location the WM tab appears where I can overwrite the material master proposal for number of storage units calculation. However, in the TO creation the system does not take the ne
-
Dear Community, Anyone besides me get an annoying popup that cannot be deleted/closed reading: FaceTime Password Please enter your password for "my e-mail account name" It happened to me today for the first time since upgrading to Mavericks 10.9.3, n
-
Nokia 5800 in bar where should been displayed date...
Hello, i have problem with my Nokia 5800, in bar where should been displayed date is displayed profile name. Where can i change to date instead of profile name. help.
-
Non-varying variable in Constrained Nonlinear Optimization
I have built a labview VI so as to execute an optimization problem that I had previously solved using Matlab's fmincon. The transition wasn't difficult and the VI mostly works except for one variable. The VI is expected to optimize an array of four v